CVE-2025-38134 usb: acpi: Prevent null pointer dereference in usb_acpi_add_usb4_devlink()

Medium 5.5 Published Updated

A null pointer dereference in the Linux kernel USB subsystem can cause a system crash during specific hub teardown scenarios.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-38134?

CVE-2025-38134 is a medium-severity vulnerability in Linux kernel, published on 3 Jul 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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

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

As demonstrated by the fix for update_port_device_state, commit 12783c0b9e2c ("usb: core: Prevent null pointer dereference in update_port_device_state"), usb_hub_to_struct_hub() 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 usb_hub_to_struct_hub() in the same file do check for NULL return values.

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

Weakness: CWE-476

Which versions are affected by CVE-2025-38134?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2025-38134?

Apply the vendor's patch.

Is CVE-2025-38134 being exploited?

There is no known exploitation of CVE-2025-38134 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2025-38134, DEBIAN-CVE-2025-38134, GHSA-jx2w-33ww-4xjr, UBUNTU-CVE-2025-38134.

Is CVE-2025-38134 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free