Menu

Star on GitHub · 3.2k

CVE-2025-38687

7.3 · HIGH

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 com…

Published Sep 4, 2025CWE-362EPSS 0.13%

Overview

CVE-2025-38687 is a high-severity vulnerability. It was published on September 4, 2025 and has a CVSS 3.1 base score of 7.3 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.3, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical 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 detache

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2025-38687?

CVE-2025-38687 is a high-severity vulnerability. It was published on September 4, 2025 and has a CVSS 3.1 base score of 7.3 (HIGH).

How severe is CVE-2025-38687?

This vulnerability has a CVSS 3.1 base score of 7.3, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2025-38687?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2025-38687?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2025-38687 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related HIGH CVEs from 2025

View all