CVE-2024-44960 usb: gadget: core: Check for unset descriptor

Medium 5.5 Published Updated

A null pointer dereference in the Linux kernel USB gadget core can cause a system panic if descriptors are unset or malformed.

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

CVE-2024-44960 is a medium-severity vulnerability in Linux kernel, published on 4 Sep 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: gadget: core: Check for unset descriptor

Make sure the descriptor has been set before looking at maxpacket. This fixes a null pointer panic in this case.

This may happen if the gadget doesn't properly set up the endpoint for the current speed, or the gadget descriptors are malformed and the descriptor for the speed/endpoint are not found.

No current gadget driver is known to have this problem, but this may cause a hard-to-find bug during development of new gadgets.

Weakness: CWE-476

Which versions are affected by CVE-2024-44960?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-44960?

Apply the vendor's patch.

Is CVE-2024-44960 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-44960, DEBIAN-CVE-2024-44960, GHSA-vc2g-hqvc-wcmf, UBUNTU-CVE-2024-44960.

Is CVE-2024-44960 in your software?

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

Check your SBOMs for free