CVE-2026-142805

Not scored yetLast modified Dec 3, 2026

Description

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 need_parent_lock 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 driver_attach() or bus_rescan_devices_helper().

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 drivers_probe 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 need_parent_lock 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 __device_driver_{un}lock(). - Danilo ]

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Dec 3, 2026
Last modified
Dec 3, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-142806In the Linux kernel, the following vulnerability has been resolved: net/sched: sch_teql: fix slaves_lock IRQ deadlock This is a followup oCVE-2026-142807In the Linux kernel, the following vulnerability has been resolved: ocfs2: publish the filecheck owner before adding sysfs attributes ocfsCVE-2026-142808In the Linux kernel, the following vulnerability has been resolved: HID: logitech-dj: validate unnumbered keyboard reports The HID core inCVE-2026-142809In the Linux kernel, the following vulnerability has been resolved: xfs: range-check bc_levels array access in scrub tracepoints LOLLM notCVE-2026-142819.8The Automation Web Platform – Notifications and OTP for WooCommerce, Advanced Country Code plugin for WordPress is vulnerable to Privilege ECVE-2026-142810In the Linux kernel, the following vulnerability has been resolved: ovl: check the casefold flag of directories only On an overlay over caCVE-2026-142811In the Linux kernel, the following vulnerability has been resolved: media: rc: Fix ABBA deadlock by making locks more fine grained The ir_CVE-2026-142812In the Linux kernel, the following vulnerability has been resolved: media: rc: fintek-cir: process a full RX buffer instead of overflowing CVE-2026-142813In the Linux kernel, the following vulnerability has been resolved: ksmbd: use the existing xattr name for a named stream SMB stream namesCVE-2026-142814In the Linux kernel, the following vulnerability has been resolved: ksmbd: retry break notifications on another connection An oplock or leCVE-2026-142815In the Linux kernel, the following vulnerability has been resolved: ksmbd: track delivery of queued TCP writes A nonblocking break send muCVE-2026-142816In the Linux kernel, the following vulnerability has been resolved: HID: hid-lenovo-go-s: Use devm_kzalloc for drvdata Changes drvdata fro
CVE-2026-142805: Unscored | Vulnix