CVE-2024-26716
Severity CVSS v4.0:
Pending analysis
Type:
CWE-476
NULL Pointer Dereference
Publication date:
03/04/2024
Last modified:
07/01/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
usb: core: Prevent null pointer dereference in update_port_device_state<br />
<br />
Currently, the function update_port_device_state gets the usb_hub from<br />
udev->parent by calling usb_hub_to_struct_hub.<br />
However, in case the actconfig or the maxchild is 0, the usb_hub would<br />
be NULL and upon further accessing to get port_dev would result in null<br />
pointer dereference.<br />
<br />
Fix this by introducing an if check after the usb_hub is populated.
Impact
Base Score 3.x
5.50
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.5 (including) | 6.6.18 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.7 (including) | 6.7.6 (excluding) |
| cpe:2.3:o:linux:linux_kernel:6.8:rc1:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.8:rc2:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- 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



