Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2025-38687— comedi: fix race between polling and detaching

Quick assessment

Affected
Linux Linux
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于轮询和分离操作竞争条件,可能导致释放后重用。

CVSS 7.3 · High EPSS 0.13% · P2

Possible ATT&CK Techniques 1 AI

T1068 · Exploitation for Privilege Escalation

Affected Version Matrix 20

VendorProduct Version RangeStatus
Linux Linux 2f3fdcd7ce935f6f2899ceab57dc8fe5286db3e1< fe67122ba781df44a1a9716eb1dfd751321ab512 affected
2f3fdcd7ce935f6f2899ceab57dc8fe5286db3e1< cd4286123d6948ff638ea9cd5818ae4796d5d252 affected
2f3fdcd7ce935f6f2899ceab57dc8fe5286db3e1< d85fac8729c9acfd72368faff1d576ec585e5c8f affected
2f3fdcd7ce935f6f2899ceab57dc8fe5286db3e1< 0f989f9d05492028afd2bded4b42023c57d8a76e affected
2f3fdcd7ce935f6f2899ceab57dc8fe5286db3e1< 5c4a2ffcbd052c69bbf4680677d4c4eaa5a252d4 affected
2f3fdcd7ce935f6f2899ceab57dc8fe5286db3e1< 017198079551a2a5cf61eae966af3c4b145e1f3b affected
2f3fdcd7ce935f6f2899ceab57dc8fe5286db3e1< 71ca60d2e631cf9c63bcbc7017961c61ff04e419 affected
2f3fdcd7ce935f6f2899ceab57dc8fe5286db3e1< 5724e82df4f9a4be62908362c97d522d25de75dd affected
… +12 more rows
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2025-38687

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
comedi: fix race between polling and detaching
Source: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: comedi: fix race between polling and detaching syzbot reports a use-after-free in comedi in the below link, which is due to comedi gladly removing the allocated async area even though poll requests are still active on the wait_queue_head inside of it. This can cause a use-after-free when the poll entries are later triggered or removed, as the memory for the wait_queue_head has been freed. We need to check there are no tasks queued on any of the subdevices' wait queues before allowing the device to be detached by the `COMEDI_DEVCONFIG` ioctl. Tasks will read-lock `dev->attach_lock` before adding themselves to the subdevice wait queue, so fix the problem in the `COMEDI_DEVCONFIG` ioctl handler by write-locking `dev->attach_lock` before checking that all of the subdevices are safe to be deleted. This includes testing for any sleepers on the subdevices' wait queues. It remains locked until the device has been detached. This requires the `comedi_device_detach()` function to be refactored slightly, moving the bulk of it into new function `comedi_device_detach_locked()`. Note that the refactor of `comedi_device_detach()` results in `comedi_device_cancel_all()` now being called while `dev->attach_lock` is write-locked, which wasn't the case previously, but that does not matter. Thanks to Jens Axboe for diagnosing the problem and co-developing this patch.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
N/A
Source: CVE Program / CVE List V5
Vulnerability Title
Linux kernel 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于轮询和分离操作竞争条件,可能导致释放后重用。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
Linux Linux 2f3fdcd7ce935f6f2899ceab57dc8fe5286db3e1 ~ fe67122ba781df44a1a9716eb1dfd751321ab512 -
Linux Linux 3.14 -

II. Public POCs for CVE-2025-38687

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-38687

请登录查看更多情报信息。

Same Patch Batch · Linux · 2025-09-04 · 52 CVEs total

CVE-2025-38708 9.8 CRITICAL drbd: add missing kref_get in handle_write_conflicts
CVE-2025-38724 9.8 CRITICAL nfsd: handle get_client_locked() failure in nfsd4_setclientid_confirm()
CVE-2025-38728 9.1 CRITICAL smb3: fix for slab out of bounds on mount to ksmbd
CVE-2025-38688 8.8 HIGH iommufd: Prevent ALIGN() overflow
CVE-2025-38697 7.8 HIGH jfs: upper bound check of tree index in dbAllocAG
CVE-2025-38722 7.8 HIGH habanalabs: fix UAF in export_dmabuf()
CVE-2025-38685 7.8 HIGH fbdev: Fix vmalloc out-of-bounds write in fast_imageblit
CVE-2025-38718 7.8 HIGH sctp: linearize cloned gso packets in sctp_rcv
CVE-2025-38717 7.8 HIGH net: kcm: Fix race condition in kcm_unattach()
CVE-2025-38715 7.8 HIGH hfs: fix slab-out-of-bounds in hfs_bnode_read()
CVE-2025-38710 7.8 HIGH gfs2: Validate i_depth for exhash directories
CVE-2025-38730 7.8 HIGH io_uring/net: commit partial buffers on retry
CVE-2025-38703 7.8 HIGH drm/xe: Make dma-fences compliant with the safe access rules
CVE-2025-38714 7.8 HIGH hfsplus: fix slab-out-of-bounds in hfsplus_bnode_read()
CVE-2025-38679 7.3 HIGH media: venus: Fix OOB read due to missing payload bound check
CVE-2025-38713 7.1 HIGH hfsplus: fix slab-out-of-bounds read in hfsplus_uni2asc()
CVE-2025-38707 7.1 HIGH fs/ntfs3: Add sanity check for file name
CVE-2025-38680 media: uvcvideo: Fix 1-byte out-of-bounds read in uvc_parse_format()
CVE-2025-38693 media: dvb-frontends: w7090p: fix null-ptr-deref in w7090p_tuner_write_serpar and w7090p_t
CVE-2025-38694 media: dvb-frontends: dib7090p: fix null-ptr-deref in dib7090p_rw_on_apb()

Showing top 20 of 52 CVEs. View all on vendor page &rarr; →

IV. Related Vulnerabilities

V. Comments for CVE-2025-38687

No comments yet


Leave a comment