5.5medium
usb: xhci: Check for xhci->interrupters being allocated in xhci_mem_clearup()
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.21% (higher than 11% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: usb: xhci: Check for xhci->interrupters being allocated in xhci_mem_clearup() If xhci_mem_init() fails, it calls into xhci_mem_cleanup() to mop up the damage. If it fails early enough, before xhci->interrupters is allocated but after xhci->max_interrupters has been set, which happens in most (all?) cases, things get uglier, as xhci_mem_cleanup() unconditionally derefences xhci->interrupters. With prejudice. Gate the interrupt freeing loop with a check on xhci->interrupters being non-NULL. Found while debugging a DMA allocation issue that led the XHCI driver on this exact path.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from bcd191d7bab25513daf7db78ab32eda60d9484c3 before 3efb29f6a78d4746f958c1ab6cd7981c5762f03b, from c99b38c412343053e9af187e595793c8805bb9b8 before 770cacc75b0091ece17349195d72133912c1ca7c, from c99b38c412343053e9af187e595793c8805bb9b8 before dcdb52d948f3a17ccd3fce757d9bd981d7c32039, 6.8 Not affected: before 6.8, from 6.10.7 up to 6.10.*, from 6.11 up to * | CVE List |
| linux linux_kernel | from 6.8 before 6.10.7, 6.11 | NVD |
Classification
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: usb: xhci: Check for xhci->interrupters being allocated in xhci_mem_clearup() If xhci_mem_init() fails, it calls into xhci_mem_cleanup() to mop up the damage. If it fails early enough, before xhci->interrupters is allocated but after xhci->max_interrupters has been set, which happens in most (all?) cases, things get uglier, as xhci_mem_cleanup() unconditionally derefences xhci->interrupters. With prejudice. Gate the interrupt freeing loop with a check on xhci->interrupters being non-NULL. Found while debugging a DMA allocation issue that led the XHCI driver on this exact path.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: usb: xhci: Comprueba que xhci->interrupters se asignen en xhci_mem_clearup() Si xhci_mem_init() falla, llama a xhci_mem_cleanup() para limpiar el daño. Si falla lo suficientemente pronto, antes de que se asigne xhci->interrupters pero después de que se haya establecido xhci->max_interrupters, lo que sucede en la mayoría (¿todos?) de los casos, las cosas se ponen peor, ya que xhci_mem_cleanup() desreferencia incondicionalmente a xhci->interrupters. Con prejuicio. Bloquea el bucle de liberación de interrupciones con una comprobación de que xhci->interrupters no sea NULL. Se encontró mientras se depuraba un problema de asignación de DMA que llevó al controlador XHCI por este camino exacto.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-45027 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2024-45027 changed 2026-06-17 | Public domain |