Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2024-40927

published

xhci: Handle TD clearing for multiple streams case

Published
12 Jul 2024, 12:25:07 UTC
Updated
11 May 2026, 20:22:31 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxe9df17eb1408cfafa3d1844bfc7f22c7237b31b8 to < 26460c1afa311524f588e288a4941432f0de6228 · e9df17eb1408cfafa3d1844bfc7f22c7237b31b8 to < 633f72cb6124ecda97b641fbc119340bd88d51a9 · e9df17eb1408cfafa3d1844bfc7f22c7237b31b8 to < 949be4ec5835e0ccb3e2a8ab0e46179cb5512518 · e9df17eb1408cfafa3d1844bfc7f22c7237b31b8 to < 61593dc413c3655e4328a351555235bc3089486a · e9df17eb1408cfafa3d1844bfc7f22c7237b31b8 to < 5ceac4402f5d975e5a01c806438eb4e554771577 · Other versions: unaffected Affected Not stated Linux
Linux — Linux2.6.35 (affected) · 0 to < 2.6.35 (unaffected · semver) · 5.15.162 through 5.15.* (unaffected · semver) · 6.1.95 through 6.1.* (unaffected · semver) · 6.6.35 through 6.6.* (unaffected · semver) · 6.9.6 through 6.9.* (unaffected · semver) · 6.10 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation No Fix Planned Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.15-2024-053 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluationALAS2023-2025-836 Fixed Not stated Amazon Linux assessment
AlmaLinux 8 bpftool Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
Debian bookworm linux Advisory build 6.1.99-1 DSA-5731-1
Show 98 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
AlmaLinux 8 kernel Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-abi-stablelists Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-core Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-cross-headers Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-debug Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-debug-core Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-debug-devel Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-debug-modules Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-debug-modules-extra Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-devel Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-doc Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-headers Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-modules Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-modules-extra Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-rt Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-core Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-debug Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-debug-core Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-debug-devel Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-debug-kvm Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-debug-modules Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-debug-modules-extra Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-devel Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-kvm Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-modules Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-modules-extra Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-tools Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-tools-libs Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-tools-libs-devel Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-zfcpdump Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-zfcpdump-core Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-zfcpdump-devel Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-zfcpdump-modules Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-zfcpdump-modules-extra Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 perf Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 python3-perf Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 9 bpftool Advisory build 7.3.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-64k Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-64k-core Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-64k-debug Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-64k-debug-core Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-64k-debug-devel Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-64k-debug-devel-matched Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-64k-debug-modules Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-64k-debug-modules-core Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-64k-debug-modules-extra Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-64k-devel Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-64k-devel-matched Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-64k-modules Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-64k-modules-core Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-64k-modules-extra Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-abi-stablelists Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-core Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-cross-headers Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-debug Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-debug-core Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-debug-devel Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-debug-devel-matched Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-debug-modules Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-debug-modules-core Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-debug-modules-extra Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-debug-uki-virt Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-devel Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-devel-matched Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-doc Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-headers Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-modules Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-modules-core Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-modules-extra Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-rt Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-rt-core Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-rt-debug Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-rt-debug-core Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-rt-debug-devel Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-rt-debug-modules Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-rt-debug-modules-core Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-rt-debug-modules-extra Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-rt-devel Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-rt-modules Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-rt-modules-core Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-rt-modules-extra Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-tools Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-tools-libs Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-tools-libs-devel Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-uki-virt Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-zfcpdump Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-zfcpdump-core Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-zfcpdump-devel Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-zfcpdump-devel-matched Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-zfcpdump-modules Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-zfcpdump-modules-core Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 kernel-zfcpdump-modules-extra Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 libperf Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 perf Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 python3-perf Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 rtla Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567
AlmaLinux 9 rv Advisory build 5.14.0-427.35.1.el9_4 ALSA-2024:6567

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

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

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

50

Assessment

CVSS risk assessment and additional context for this vulnerability.

No normalized assessments.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux e9df17eb1408cfafa3d1844bfc7f22c7237b31b8 to < 26460c1afa311524f588e288a4941432f0de6228 (affected · git)e9df17eb1408cfafa3d1844bfc7f22c7237b31b8 to < 633f72cb6124ecda97b641fbc119340bd88d51a9 (affected · git)e9df17eb1408cfafa3d1844bfc7f22c7237b31b8 to < 949be4ec5835e0ccb3e2a8ab0e46179cb5512518 (affected · git)e9df17eb1408cfafa3d1844bfc7f22c7237b31b8 to < 61593dc413c3655e4328a351555235bc3089486a (affected · git)e9df17eb1408cfafa3d1844bfc7f22c7237b31b8 to < 5ceac4402f5d975e5a01c806438eb4e554771577 (affected · git)Default: unaffected Linux · cna
Linux Linux 2.6.35 (affected)0 to < 2.6.35 (unaffected · semver)5.15.162 through 5.15.* (unaffected · semver)6.1.95 through 6.1.* (unaffected · semver)6.6.35 through 6.6.* (unaffected · semver)6.9.6 through 6.9.* (unaffected · semver)6.10 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

6

Provider assertions

3

Linux · cna

xhci: Handle TD clearing for multiple streams case

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
623d7ec2e7b53150498aa44b87108140793ce795c5840b849a73383189e09740
Ingested
23 Sep 2026, 08:26:02 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected