usb: xhci: Fix bounce buffer overflow (Linux Linux)

CVE-2026-99308
Not available

At a glance

Source
NVD
EPSS
EPSS 0.22 % · percentile 14 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
Affected products
Linux · Linux
NVD status
Received

Description

In the Linux kernel, the following vulnerability has been resolved: usb: xhci: Fix bounce buffer overflow High-speed devices with out of spec 1024 byte bulk endpoints exist and are allowed by USB core, but xhci-hcd always sets packet size to 512. The exact nature of these devices isn't documented, commit fb5ee84ea72c ("USB: Accept bulk endpoints with 1024-byte maxpacket") only states that they "don't work with xHCI host controllers", whatever it means. But somebody (or a malicious device) can try, and then the driver will allocate a 512 byte bounce buffer for this endpoint and may write up to 1024 bytes into it if particular scatter-gather URBs are used, because xhci_align_td() obtains packet size from the descriptor. Fix this. As a side effect, TRBs will be aligned to the packet size chosen by the driver on all endpoints of all speeds. Alignment serves the xHC, not device, so this is fine. Only out of spec devices are affected anyway.

References

European references

CERT-FR advisories

Affected products

ProductAffected versions
Linux · Linux
affected : ≥ f9c589e142d04b8a19eb382162f804d17102b5ed < 781847f821ab08e22819704b9c6b7ca451854e7b
affected : ≥ f9c589e142d04b8a19eb382162f804d17102b5ed < 9bcb39803f65ce8776278021d19527472a2badf6
affected : ≥ f9c589e142d04b8a19eb382162f804d17102b5ed < 9e993c586e781056dd29dbd0a84582fb7714c1c7
affected : ≥ f9c589e142d04b8a19eb382162f804d17102b5ed < 30fb8c91a47b00616497f8b8493e0e483bee12ec
affected : ≥ f9c589e142d04b8a19eb382162f804d17102b5ed < dab2792e136385bd34b36d2b95db94862ed902cc
affected : ≥ f9c589e142d04b8a19eb382162f804d17102b5ed < d0d15d7a11f2a45e5d29ab4780a094992d7a26a2
affected : ≥ f9c589e142d04b8a19eb382162f804d17102b5ed < e95ace4abebd564b50b856513e24853d35be06cd
affected : ≥ f9c589e142d04b8a19eb382162f804d17102b5ed < 68c5cb7574c567e83ba95258cb146db95e069a87
Other versions : unaffected
Linux · Linux
affected : 4.8
unaffected : ≥ 0 < 4.8
unaffected : ≥ 5.10.275 ≤ 5.10.*
unaffected : ≥ 5.15.226 ≤ 5.15.*
unaffected : ≥ 6.1.193 ≤ 6.1.*
unaffected : ≥ 6.6.163 ≤ 6.6.*
unaffected : ≥ 6.12.118 ≤ 6.12.*
unaffected : ≥ 6.18.63 ≤ 6.18.*
unaffected : ≥ 7.3.4 ≤ 7.3.*
unaffected : ≥ 7.4-rc1 ≤ *
Other versions : affected

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD