CVE-2024-26659
JSON

7.8high

xhci: handle isoc Babble and Buffer Overrun events properly

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.24% (higher than 16% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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

Product or packageVersionsReported by
Linux Linuxfrom 04e51901dd44f40a5a385ced897f6bca87d5f40a before 696e4112e5c1ee61996198f0ebb6ca3fab55166e, from 04e51901dd44f40a5a385ced897f6bca87d5f40a before 2aa7bcfdbb46241c701811bbc0d64d7884e3346c, from 04e51901dd44f40a5a385ced897f6bca87d5f40a before 2e3ec80ea7ba58bbb210e83b5a0afefee7c171d3, from 04e51901dd44f40a5a385ced897f6bca87d5f40a before f5e7ffa9269a448a720e21f1ed1384d118298c97, from 04e51901dd44f40a5a385ced897f6bca87d5f40a before 418456c0ce56209610523f21734c5612ee634134, from 04e51901dd44f40a5a385ced897f6bca87d5f40a before 7c4650ded49e5b88929ecbbb631efb8b0838e811, 2.6.36
Not affected: before 2.6.36, from 5.10.213 up to 5.10.*, from 5.15.152 up to 5.15.*, from 6.1.82 up to 6.1.*, from 6.6.17 up to 6.6.*, from 6.7.5 up to 6.7.*
CVE List
linux linux_kernelbefore 5.10.213, from 5.11 before 5.15.152, from 5.16 before 6.1.82, from 6.2 before 6.6.17, from 6.7 before 6.7.5, 6.8NVD
debian debian_linux10.0NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-787

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: xhci: maneja correctamente los eventos isoc Babble y Buffer Overrun xHCI 4.9 prohíbe explícitamente suponer que xHC ha liberado su propiedad de un TD multi-TRB cuando informa un error en uno de los primeros TRB. Sin embargo, el conductor hace tal suposición y libera el TD, permitiendo que los TRB restantes sean liberados o sobrescritos por nuevos TD. El xHC también debe informar la finalización del TRB final debido a que nosotros establecimos la bandera del COI, independientemente de los errores anteriores. Este evento no se puede reconocer si el TD ya se liberó anteriormente, lo que genera el mensaje de error "Evento de transferencia TRB DMA ptr no forma parte del TD actual". Solucione este problema reutilizando la lógica para procesar errores de transacción isoc. Esto también maneja los hosts que no informan la finalización final. Se corrigió el informe de duración de la transferencia sobre errores de Babble. Pueden deberse a un mal funcionamiento del dispositivo, no hay garantía de que se haya llenado el búfer.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-26659 changed 2026-10-15CVE Terms of Use
NVDCVE-2024-26659 changed 2026-10-15Public domain