7.3

CVE-2025-38687: debian debian_linux Race Condition

CVSS: 7.3v3.1HighModified
AliasesUBUNTU-CVE-2025-38687DEBIAN-CVE-2025-38687
Published 04-09-2025Last modified 05-08-2026

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.

Overall risk
29/100
0100
Medium · default modelHow is this calculated?
CVSS score
7.3/10
010
High · v3.1 (CVE.org)
EPSS score
0.13%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 45 · Related 40

Timeline

  1. 04-09-2025
    PublishedVulnerability first disclosed.
  2. 05-08-2026
    Last 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

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

20-09-202620-10-2026
EPSS score
0.13%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected 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
Show all 42 references