CVE-2024-26716 usb: core: Prevent null pointer dereference in update_port_device_state

Medium 5.5 Published Updated

A null pointer dereference in the Linux kernel USB core allows local attackers to cause a system crash via specific USB device states.

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-26716?

CVE-2024-26716 is a medium-severity vulnerability in Linux kernel, published on 3 Apr 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: core: Prevent null pointer dereference in update_port_device_state

Currently, the function update_port_device_state gets the usb_hub from udev->parent by calling usb_hub_to_struct_hub. However, in case the actconfig or the maxchild is 0, the usb_hub would be NULL and upon further accessing to get port_dev would result in null pointer dereference.

Fix this by introducing an if check after the usb_hub is populated.

Weakness: CWE-476

Which versions are affected by CVE-2024-26716?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-26716?

Apply the vendor's patch.

Is CVE-2024-26716 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-26716, DEBIAN-CVE-2024-26716, GHSA-78j7-xmw6-68gr, UBUNTU-CVE-2024-26716.

Is CVE-2024-26716 in your software?

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

Check your SBOMs for free