CVE-2024-26716

Source
https://cve.org/CVERecord?id=CVE-2024-26716
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-26716.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-26716
Downstream
Published
2024-04-03T14:55:17Z
Modified
2026-08-12T03:51:42Z
Summary
usb: core: Prevent null pointer dereference in update_port_device_state
Details

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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26716.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
83cb2604f641cecadc275ca18adbba4bf262320f
Fixed
ed85777c640cf9e6920bb1b60ed8cd48e1f4d873
Fixed
465b545d1d7ef282192ddd4439b08279bdb13f6f
Fixed
12783c0b9e2c7915a50d5ec829630ff2da50472c

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-26716.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.5.0
Fixed
6.6.18
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.7.6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-26716.json"