CVEBrief

Home / Linux / Linux / CVE-2024-40927

CVE-2024-40927: is it exploited, and which versions of Linux are affected and fixed?

CVE-2024-40927 is an use after free vulnerability in Linux. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 12:08 UTC). Affected: Linux from 2.6.35 until the fixed versions (CVE record by Linux). Fixed in 5.15.162, 6.1.95, 6.6.35, 6.9.6 and 1 more (CVE record by Linux). Severity: High (7.8, CVSS 3.1, from NVD).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 12:08 UTC, CVE record November 28, 2026, 18:11 UTC and NVD November 19, 2026, 07:28 UTC.

Exploited in the wild
Not in CISA KEV
KEV read December 3, 2026, 12:08 UTC
Affected
Linux from 2.6.35 until the fixed versions
CVE record by Linux
Fixed in
5.15.162, 6.1.95, 6.6.35, 6.9.6 and 1 more
CVE record by Linux
Severity
High 7.8
CVSS 3.1 from NVD
Exploit odds (EPSS)
0.29% in 30 days
higher than 23% of CVEs; FIRST, December 2, 2026

What is CVE-2024-40927?

In the Linux kernel, the following vulnerability has been resolved: xhci: Handle TD clearing for multiple streams case When multiple streams are in use, multiple TDs might be in flight when an endpoint is stopped. We need to issue a Set TR Dequeue Pointer for each, to ensure everything is reset properly and the caches cleared. Change the logic so that any N>1 TDs found active for different streams are deferred until after the first one is processed, calling xhci_invalidate_cancelled_tds() again from xhci_handle_cmd_set_deq() to queue another command until we are done with all of them. Also change the error/"should never happen" paths to ensure we at least clear any affected TDs, even if we can't issue a command to clear the hardware cache, and complain loudly with an xhci_warn() if this ever happens. This problem case dates back to commit e9df17eb1408 ("USB: xhci: Correct assumptions about number of rings per endpoint.") early on in the XHCI driver's life, when stream support was first added. It was then identified but not fixed nor made into a warning in commit 674f8438c121 ("xhci: split handling halted endpoints into two steps"), which added a FIXME comment for the problem case (without materially changing the behavior as far as I can tell, though the new logic made the problem more obvious). Then later, in commit 94f339147fc3 ("xhci: Fix failure to give back some cached cancelled URBs."), it was acknowledged again. [Mathias: commit 94f339147fc3 ("xhci: Fix failure to give back some cached cancelled URBs.") was a targeted regression fix to the previously mentioned patch. Users reported issues with usb stuck after unmounting/disconnecting UAS devices. This rolled back the TD clearing of multiple streams to its original state.] Apparently the commit author was aware of the problem (yet still chose to submit it): It was still mentioned as a FIXME, an xhci_dbg() was added to log the problem condition, and the remaining issue was mentioned in the commit description. The choice of making the log type xhci_dbg() for what is, at this point, a completely unhandled and known broken condition is puzzling and unfortunate, as it guarantees that no actual users would see the log in production, thereby making it nigh undebuggable (indeed, even if you turn on DEBUG, the message doesn't really hint at there being a problem at all). It took me *months* of random xHC crashes to finally find a reliable repro and be able to do a deep dive debug session, which could all have been avoided had this unhandled, broken condition been actually reported with a warning, as it should have been as a bug intentionally left in unfixed (never mind that it shouldn't have been left in at all). > Another fix to solve clearing the caches of all stream rings with > cancelled TDs is needed, but not as urgent. 3 years after that statement and 14 years after the original bug was introduced, I think it's finally time to fix it. And maybe next time let's not leave bugs unfixed (that are actually worse than the original bug), and let's actually get people to review kernel commits please. Fixes xHC crashes and IOMMU faults with UAS devices when handling errors/faults. Easiest repro is to use `hdparm` to mark an early sector (e.g. 1024) on a disk as bad, then `cat /dev/sdX > /dev/null` in a loop. At least in the case of JMicron controllers, the read errors end up having to cancel two TDs (for two queued requests to different streams) and the one that didn't get cleared properly ends up faulting the xHC entirely when it tries to access DMA pages that have since been unmapped, referred to by the stale TDs. This normally happens quickly (after two or three loops). After this fix, I left the `cat` in a loop running overnight and experienced no xHC failures, with all read errors recovered properly. Repro'd and tested on an Apple M1 Mac Mini (dwc3 host). On systems without an IOMMU, this bug would instead silently corrupt freed memory, making this a ---truncated---

From the CVE record by Linux, last updated May 11, 2026, 20:22 UTC.

Which versions are affected, and which fix it?

VendorProductAffectedFixed or not affected from
LinuxLinuxnot stated
LinuxLinuxfrom 2.6.35 until the fixed versions5.15.162, 6.1.95, 6.6.35, 6.9.6, 6.10

As the CVE record by Linux states it, last updated May 11, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.

Which products and versions does the NVD list as affected?

VendorProductVersionsType
linuxlinux kernelfrom 2.6.35 before 5.15.162operating system
linuxlinux kernelfrom 5.16 before 6.1.95operating system
linuxlinux kernelfrom 6.2 before 6.6.35operating system
linuxlinux kernelfrom 6.7 before 6.9.6operating system
linuxlinux kernel6.10operating system

NVD analysis (status Modified), last modified June 17, 2026, 07:46 UTC.

How severe is CVE-2024-40927?

ScoreVersionVectorSource
High 7.8CVSS 3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD

Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.

What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.

Is CVE-2024-40927 exploited in the wild?

CISA KEV
Not listed (catalog 2026.11.30)
CISA SSVC
Exploitation: none; automatable: no; technical impact: partial (CISA ADP, September 10, 2024)
EPSS
0.29% probability of exploitation activity in the next 30 days, percentile 23.4 (FIRST EPSS, scores of December 2, 2026)

What kind of flaw is it?

Where are the vendor advisories and references?

When was it published, and where is the official record?

Reserved
July 12, 2024
Published
July 12, 2024, 12:25 UTC
CVE record updated
May 11, 2026, 20:22 UTC by Linux
NVD
Modified, last modified June 17, 2026, 07:46 UTC
Last checked
CVE list November 28, 2026, 18:11 UTC; NVD November 19, 2026, 07:28 UTC; KEV December 3, 2026, 12:08 UTC; EPSS December 2, 2026
Official record
cve.org · NVD

What other CVEs affect Linux?

Every CVE in Linux

Questions about CVE-2024-40927

Is CVE-2024-40927 exploited in the wild?

Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 12:08 UTC. FIRST's EPSS gives it a 0.29% chance of exploitation activity in the next 30 days (scores of December 2, 2026).

Which versions of Linux are affected by CVE-2024-40927?

Linux from 2.6.35 until the fixed versions, per the CVE record by Linux. The tables above give every range the sources list.

Which version fixes CVE-2024-40927?

5.15.162, 6.1.95, 6.6.35, 6.9.6 and 6.10, per the CVE record by Linux. Check the vendor's advisory before you rely on it.

How severe is CVE-2024-40927?

High (7.8, CVSS 3.1, from NVD). The severity table above shows each score with its source.

Where is the official record of CVE-2024-40927?

The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.