CVE-2024-26964
JSON

5.5medium

usb: xhci: Add error handling in xhci_map_urb_for_dma

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.23% (higher than 14% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: usb: xhci: Add error handling in xhci_map_urb_for_dma Currently xhci_map_urb_for_dma() creates a temporary buffer and copies the SG list to the new linear buffer. But if the kzalloc_node() fails, then the following sg_pcopy_to_buffer() can lead to crash since it tries to memcpy to NULL pointer. So return -ENOMEM if kzalloc returns null pointer.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 2017a1e58472a27e532b9644b4a61dfe18f6baac before 4a49d24fdec0a802aa686a567a3989a9fdf4e5dd, from 2017a1e58472a27e532b9644b4a61dfe18f6baac before b2c898469dfc388f619c6c972a28466cbb1442ea, from 2017a1e58472a27e532b9644b4a61dfe18f6baac before 620b6cf2f1a270f48d38e6b8ce199c1acb3e90f4, from 2017a1e58472a27e532b9644b4a61dfe18f6baac before 962300a360d24c5be5a188cda48da58a37e4304d, from 2017a1e58472a27e532b9644b4a61dfe18f6baac before 7b6cc33593d7ccfc3011b290849cfa899db46757, from 2017a1e58472a27e532b9644b4a61dfe18f6baac before be95cc6d71dfd0cba66e3621c65413321b398052, 5.11
Not affected: before 5.11, from 5.15.154 up to 5.15.*, from 6.1.84 up to 6.1.*, from 6.6.24 up to 6.6.*, from 6.7.12 up to 6.7.*, from 6.8.3 up to 6.8.*
CVE List
linux linux_kernelfrom 5.11 before 5.15.154, from 5.16 before 6.1.84, from 6.2 before 6.6.24, from 6.7 before 6.7.12, from 6.8 before 6.8.3NVD

Classification

CWE-476

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: Add error handling in xhci_map_urb_for_dma Currently xhci_map_urb_for_dma() creates a temporary buffer and copies the SG list to the new linear buffer. But if the kzalloc_node() fails, then the following sg_pcopy_to_buffer() can lead to crash since it tries to memcpy to NULL pointer. So return -ENOMEM if kzalloc returns null pointer.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: usb: xhci: agregar manejo de errores en xhci_map_urb_for_dma Actualmente, xhci_map_urb_for_dma() crea un búfer temporal y copia la lista SG en el nuevo búfer lineal. Pero si kzalloc_node() falla, entonces el siguiente sg_pcopy_to_buffer() puede provocar un fallo ya que intenta memcpy al puntero NULL. Entonces devuelve -ENOMEM si kzalloc devuelve un puntero nulo.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-26964 changed 2026-05-11CVE Terms of Use
NVDCVE-2024-26964 changed 2026-06-17Public domain