CVE-2025-38134

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-38134
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38134.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-38134
Downstream
Published
2025-07-03T08:35:37.674Z
Modified
2025-11-28T02:34:31.526959Z
Summary
usb: acpi: Prevent null pointer dereference in usb_acpi_add_usb4_devlink()
Details

In the Linux kernel, the following vulnerability has been resolved:

usb: acpi: Prevent null pointer dereference in usbacpiaddusb4devlink()

As demonstrated by the fix for updateportdevicestate, commit 12783c0b9e2c ("usb: core: Prevent null pointer dereference in updateportdevicestate"), usbhubtostructhub() can return NULL in certain scenarios, such as during hub driver unbind or teardown race conditions, even if the underlying usb_device structure exists.

Plus, all other places that call usbhubtostructhub() in the same file do check for NULL return values.

If usbhubtostructhub() returns NULL, the subsequent access to hub->ports[udev->portnum - 1] will cause a null pointer dereference.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38134.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
f1bfb4a6fed64de1771b43a76631942279851744
Fixed
8fa544bff8466062e42949c93f3e528f4be5624b
Fixed
e3d530173b70514d4390a94f9f979acad689b70a
Fixed
73fb0ec9436ae87bcae067ce35d6cdd72bade86c

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.12.0
Fixed
6.12.34
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.15.3