CVE-2024-26716
JSON

5.5medium

usb: core: Prevent null pointer dereference in update_port_device_state

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.23% (higher than 14% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List
linux linux_kernelfrom 6.5 before 6.6.18, from 6.7 before 6.7.6, 6.8NVD

Classification

CWE-476

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: usb: core: evita la desreferencia del puntero nulo en update_port_device_state Actualmente, la función update_port_device_state obtiene el usb_hub de udev->parent llamando a usb_hub_to_struct_hub. Sin embargo, en caso de que actconfig o maxchild sean 0, usb_hub sería NULL y, al acceder más para obtener port_dev, se produciría una desreferencia del puntero nulo. Solucione este problema introduciendo una verificación if después de que se complete usb_hub.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-26716 changed 2026-05-11CVE Terms of Use
NVDCVE-2024-26716 changed 2026-06-17Public domain