CVE-2024-26964 usb: xhci: Add error handling in xhci_map_urb_for_dma

Medium 5.5 Published Updated

A null pointer dereference in the Linux kernel xHCI USB driver can cause a system crash if memory allocation fails during DMA mapping.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-26964?

CVE-2024-26964 is a medium-severity vulnerability in Linux kernel, published on 1 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-476

Which versions are affected by CVE-2024-26964?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-26964?

Apply the vendor's patch.

Is CVE-2024-26964 being exploited?

There is no known exploitation of CVE-2024-26964 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-26964, DEBIAN-CVE-2024-26964, GHSA-3h33-78cr-x67r, UBUNTU-CVE-2024-26964.

Is CVE-2024-26964 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free