NetSight
medium5.5

CVE-2024-26964

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() crea…

Impact

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 products

VendorProductAffected versions
LinuxLinux Kernel
from 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.3

Weakness classification

References