CVE-2024-26747 usb: roles: fix NULL pointer issue when put module's reference
A NULL pointer dereference in the Linux kernel USB role class driver can cause a system crash when a parent device is removed unexpectedly.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-26747?
CVE-2024-26747 is a medium-severity vulnerability in Debian Debian Linux, 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: roles: fix NULL pointer issue when put module's reference
In current design, usb role class driver will get usb_role_switch parent's module reference after the user get usb_role_switch device and put the reference after the user put the usb_role_switch device. However, the parent device of usb_role_switch may be removed before the user put the usb_role_switch. If so, then, NULL pointer issue will be met when the user put the parent module's reference.
This will save the module pointer in structure of usb_role_switch. Then, we don't need to find module by iterating long relations.
Weakness: CWE-476
Which versions are affected by CVE-2024-26747?
It affects 2 products.
Products include Debian Debian Linux, Linux kernel.
How do I fix CVE-2024-26747?
Apply the vendor's patch.
Is CVE-2024-26747 being exploited?
There is no known exploitation of CVE-2024-26747 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as BELL-CVE-2024-26747, DEBIAN-CVE-2024-26747, GHSA-mqqf-w892-86vp, UBUNTU-CVE-2024-26747.