Skip to main content
← All vulnerabilities
CVE-2024-26659

xhci: handle isoc Babble and Buffer Overrun events properly

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.10.213, 5.15.152, 6.1.82, 6.6.17, 6.7.5
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

In the Linux kernel, the following vulnerability has been resolved: xhci: handle isoc Babble and Buffer Overrun events properly xHCI 4.9 explicitly forbids assuming that the xHC has released its ownership of a multi-TRB TD when it reports an error on one of the early TRBs. Yet the driver makes such assumption and releases the TD, allowing the remaining TRBs to be freed or overwritten by new TDs. The xHC should also report completion of the final TRB due to its IOC flag being set by us, regardless of prior errors. This event cannot be recognized if the TD has already been freed earlier, resulting in "Transfer event TRB DMA ptr not part of current TD" error message. Fix this by reusing the logic for processing isoc Transaction Errors. This also handles hosts which fail to report the final completion. Fix transfer length reporting on Babble errors. They may be caused by device malfunction, no guarantee that the buffer has been filled.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • Linux Linux

    From 04e51901dd44f40a5a385ced897f6bca87d5f40a · fixed in 696e4112e5c1ee61996198f0ebb6ca3fab55166e; From 04e51901dd44f40a5a385ced897f6bca87d5f40a · fixed in 2aa7bcfdbb46241c701811bbc0d64d7884e3346c; From 04e51901dd44f40a5a385ced897f6bca87d5f40a · fixed in 2e3ec80ea7ba58bbb210e83b5a0afefee7c171d3; From 04e51901dd44f40a5a385ced897f6bca87d5f40a · fixed in f5e7ffa9269a448a720e21f1ed1384d118298c97; From 04e51901dd44f40a5a385ced897f6bca87d5f40a · fixed in 418456c0ce56209610523f21734c5612ee634134; From 04e51901dd44f40a5a385ced897f6bca87d5f40a · fixed in 7c4650ded49e5b88929ecbbb631efb8b0838e811

  • Linux Linux

    2.6.36

  • KernelLinux

    From 2.6.36 · fixed in 5.10.213; From 5.11.0 · fixed in 5.15.152; From 5.16.0 · fixed in 6.1.82; From 6.2.0 · fixed in 6.6.17; From 6.7.0 · fixed in 6.7.5

References 6

git.kernel.org