What’s Vulnerable › Vulnerabilities
CVE-2024-26716: usb: core: Prevent null pointer dereference in update_port_device_state
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-04-03 · updated 2026-06-17
- Weakness: CWE-476
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.
Affected products
- Linux kernel: from 6.5 before 6.6.18; from 6.7 before 6.7.6; 6.8-rc1, 6.8-rc2 — fixed in 6.6.18, 6.7.6
How to fix
Upgrade to a fixed version: Linux kernel 6.6.18, 6.7.6. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/12783c0b9e2c7915a50d5ec829630ff2da50472c
- https://git.kernel.org/stable/c/465b545d1d7ef282192ddd4439b08279bdb13f6f
- https://git.kernel.org/stable/c/ed85777c640cf9e6920bb1b60ed8cd48e1f4d873
- https://git.kernel.org/stable/c/12783c0b9e2c7915a50d5ec829630ff2da50472c
- https://git.kernel.org/stable/c/465b545d1d7ef282192ddd4439b08279bdb13f6f
- https://git.kernel.org/stable/c/ed85777c640cf9e6920bb1b60ed8cd48e1f4d873
Get alerted when CVE-2024-26716 or the next vulnerability affects your stack