CVEvulnerability

CVE-2024-26659

5.5 MEDIUM Published 2024-04-02 Modified 2026-10-15 Official page ↗
Status
Modified
Published
2024-04-02
Last modified
2026-10-15
Assigner
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS 3.1 (416baaa9-dc9f-4396-8d5f-8c081fb06d67)
7.8 HIGH — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS 3.1 ([email protected])
5.5 MEDIUM — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weaknesses
CWE-787

Description

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.

Affected configurations

• linux linux kernel (< 5.10.213) • linux linux kernel (>= 5.11 < 5.15.152) • linux linux kernel (>= 5.16 < 6.1.82) • linux linux kernel (>= 6.2 < 6.6.17) • linux linux kernel (>= 6.7 < 6.7.5) • linux linux kernel 6.8 • debian debian linux 10.0

Related

Weakness · CWE (1)

  • CWE-787 Out-of-bounds Write weakness

References