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

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2024-04-03T14:55:17.305Z
- Modified: 2026-06-17T07:18:09.970Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 83cb2604f641cecadc275ca18adbba4bf262320f before ed85777c640cf9e6920bb1b60ed8cd48e1f4d873; from 83cb2604f641cecadc275ca18adbba4bf262320f before 465b545d1d7ef282192ddd4439b08279bdb13f6f; from 83cb2604f641cecadc275ca18adbba4bf262320f before 12783c0b9e2c7915a50d5ec829630ff2da50472c; 6.5 (not affected: before 6.5; from 6.6.18 up to 6.6.*; from 6.7.6 up to 6.7.*; from 6.8 up to *)
- linux linux_kernel: from 6.5 before 6.6.18; from 6.7 before 6.7.6; 6.8

## References

- <https://git.kernel.org/stable/c/ed85777c640cf9e6920bb1b60ed8cd48e1f4d873> (patch)
- <https://git.kernel.org/stable/c/465b545d1d7ef282192ddd4439b08279bdb13f6f> (patch)
- <https://git.kernel.org/stable/c/12783c0b9e2c7915a50d5ec829630ff2da50472c> (patch)

## Sources

- CVE List: [CVE-2024-26716](https://www.cve.org/CVERecord?id=CVE-2024-26716), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-26716](https://nvd.nist.gov/vuln/detail/CVE-2024-26716), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-26716 · Whole record: https://cve.day/CVE-2024-26716.json · Rebuilt by cve.day 2026-11-25T22:58:38.537Z
