CVE-2025-38687: debian debian_linux Race Condition
Vulnerability summary
CVE-2025-38687 is a high (CVSS 7.3) Race Condition vulnerability in debian debian_linux. EPSS estimates a 0.13% chance of exploitation in the next 30 days, higher than 2.1% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 45 · Related 40Timeline
- 04-09-2025PublishedVulnerability first disclosed.
- 05-08-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 4 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated7.3HighCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated4.7MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:HDiffers
- NVDNIST4.7MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:HDiffers
EPSS trend
Probability
0.13%
Chance of exploitation in the next 30 days
Percentile
2%
Versus all other CVEs
30-day change
0.00 pp
From 0.12% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Ubuntu148 products
- linuxAll versions (No fix recorded) | < 5.15.0-163.173 | < 6.8.0-100.100
- linux-allwinner-5.19All versions (No fix recorded)
- linux-awsAll versions (No fix recorded) | < 5.15.0-1097.104 | < 6.8.0-1046.49
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Debian2 products
- linux< 6.1.153-1 | < 6.12.43-1 | < 6.16.3-1
- debian_linuxEOL11.0
Linux2 products
- linux≥ 2f3fdcd7ce935f6f2899ceab57dc8fe5286db3e1, < fe67122ba781df44a1a9716eb1dfd751321ab512 | ≥ 2f3fdcd7ce935f6f2899ceab57dc8fe5286db3e1, < cd4286123d6948ff638ea9cd5818ae4796d5d252 | ≥ 2f3fdcd7ce935f6f2899ceab57dc8fe5286db3e1, < d85fac8729c9acfd72368faff1d576ec585e5c8f | ≥ 2f3fdcd7ce935f6f2899ceab57dc8fe5286db3e1, < 0f989f9d05492028afd2bded4b42023c57d8a76e | ≥ 2f3fdcd7ce935f6f2899ceab57dc8fe5286db3e1, < 5c4a2ffcbd052c69bbf4680677d4c4eaa5a252d4 | ≥ 2f3fdcd7ce935f6f2899ceab57dc8fe5286db3e1, < 017198079551a2a5cf61eae966af3c4b145e1f3b | ≥ 2f3fdcd7ce935f6f2899ceab57dc8fe5286db3e1, < 71ca60d2e631cf9c63bcbc7017961c61ff04e419 | ≥ 2f3fdcd7ce935f6f2899ceab57dc8fe5286db3e1, < 5724e82df4f9a4be62908362c97d522d25de75dd | ≥ 2f3fdcd7ce935f6f2899ceab57dc8fe5286db3e1, < 35b6fc51c666fc96355be5cd633ed0fe4ccf68b2 | 3.14
- linux_kernel≥ 3.14, < 5.4.297 | ≥ 5.5, < 5.10.241 | ≥ 5.11, < 5.15.190 | ≥ 5.16, < 6.1.149 | ≥ 6.2, < 6.6.103 | ≥ 6.7, < 6.12.43 | ≥ 6.13, < 6.15.11 | ≥ 6.16, < 6.16.2
3 vendors · 152 products
References
42 links- lists.debian.org/debian-lts-announce/2025/10/msg00008.htmlThird Party Advisory
Show all 42 references
- lists.debian.org/debian-lts-announce/2025/10/msg00007.htmlThird Party Advisory