CVE-2026-142805: driver core: fix parent lock use-after-free on USB disconnect

Published Dec 3, 2026
·
Updated

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

driver core: fix parent lock use-after-free on USB disconnect

USB interfaces should be probed with their parent USB device lock held and the USB bus therefore sets the needparentlock bus flag so that driver core takes the parent lock when needed.

Driver core is only guaranteed to hold a reference to the parent device during initial probe however and nothing prevents the device and its parent from being deregistered and the parent potentially freed, for example, while iterating over devices in driverattach() or busrescandeviceshelper().

Since commit 524134d42231 ("USB: don't cancel queued resets when unbinding drivers") USB interfaces hold a reference to their parent USB device, but a parent hub may still go away while probing a USB device (e.g. via the driversprobe sysfs interface). This can lead to a use-after-free when taking the parent device lock before checking the device->p->dead flag of the device being probed.

As only USB interfaces actually need the parent lock, make the needparentlock feature even more fine grained by making it a device type rather than bus feature. By requiring that any users also make sure that their devices hold a reference to their parents (like USB does), driver core can lock a device and its parent without first checking if the device has been deregistered.

Note that this will also increase parallelism when using asynchronous probe as USB devices connected to the same hub can now be probed in parallel.

[ Fix mention of bus vs. device type in devicedriver{un}lock(). - Danilo ]

Affected Software

1 affected component
Linux Linux kernel

Event History

Dec 3, 2026
CVE Published
via MITRE·03:11 AM
Data Sourced
via MITRE·03:11 AM
Description

Frequently Asked Questions

1

Which systems are exposed to this condition?

Systems that probe USB interfaces while USB devices or their parent hubs can be deregistered are exposed. The issue is specifically tied to USB interfaces that require their parent USB device lock during probing.

2

What timing is required for the use-after-free to occur?

A USB interface must be undergoing probing while the device and its parent are deregistered, allowing the parent device to be freed before driver core takes the parent lock. The description identifies probing through the drivers_probe sysfs interface while a parent hub goes away as an example.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203