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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-12-03T03:11:33.159Z
- **Modified:** 2026-12-03T04:18:14.437Z

## Who should check

- Anyone running Linux \>= bf74ad5bc41727d5f2f1c6bedb2c1fac394de731, \< 5ae6b6c587cea50acf1f39a815906422e607eb68; \>= bf74ad5bc41727d5f2f1c6bedb2c1fac394de731, \< cb00e496cda53de377d5dd5fc68210566b9643d5; \>= bf74ad5bc41727d5f2f1c6bedb2c1fac394de731, \< 6d2b0763c98c0e09208bb4d75b12de6414b3ba20; \>= bf74ad5bc41727d5f2f1c6bedb2c1fac394de731, \< 7bbef48f0b91095be567ea1dda5f9aead1d61a9d; \>= bf74ad5bc41727d5f2f1c6bedb2c1fac394de731, \< d4bded35edf8d9cd5133dd934a71c3268f89f501; \>= bf74ad5bc41727d5f2f1c6bedb2c1fac394de731, \< 6ad5071fbef6e65beb33c099e282dc89f0e2f716; \>= bf74ad5bc41727d5f2f1c6bedb2c1fac394de731, \< 0f554506a3fc6a21e714adf38cc3eb0ffe1bb452
- Anyone running Linux 2.6.16

## 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 \]

## Affected and fixed versions

- Linux: \>= bf74ad5bc41727d5f2f1c6bedb2c1fac394de731, \< 5ae6b6c587cea50acf1f39a815906422e607eb68; \>= bf74ad5bc41727d5f2f1c6bedb2c1fac394de731, \< cb00e496cda53de377d5dd5fc68210566b9643d5; \>= bf74ad5bc41727d5f2f1c6bedb2c1fac394de731, \< 6d2b0763c98c0e09208bb4d75b12de6414b3ba20; \>= bf74ad5bc41727d5f2f1c6bedb2c1fac394de731, \< 7bbef48f0b91095be567ea1dda5f9aead1d61a9d; \>= bf74ad5bc41727d5f2f1c6bedb2c1fac394de731, \< d4bded35edf8d9cd5133dd934a71c3268f89f501; \>= bf74ad5bc41727d5f2f1c6bedb2c1fac394de731, \< 6ad5071fbef6e65beb33c099e282dc89f0e2f716; \>= bf74ad5bc41727d5f2f1c6bedb2c1fac394de731, \< 0f554506a3fc6a21e714adf38cc3eb0ffe1bb452 (cvelist)
- Linux: 2.6.16 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 0f554506a3fc6a21e714adf38cc3eb0ffe1bb452 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-142805. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-142805.md
Affected: Linux >= bf74ad5bc41727d5f2f1c6bedb2c1fac394de731, < 5ae6b6c587cea50acf1f39a815906422e607eb68; >= bf74ad5bc41727d5f2f1c6bedb2c1fac394de731, < cb00e496cda53de377d5dd5fc68210566b9643d5; >= bf74ad5bc41727d5f2f1c6bedb2c1fac394de731, < 6d2b0763c98c0e09208bb4d75b12de6414b3ba20; >= bf74ad5bc41727d5f2f1c6b…
Fixed in: Linux 5ae6b6c587cea50acf1f39a815906422e607eb68, Linux 6d2b0763c98c0e09208bb4d75b12de6414b3ba20, Linux 7bbef48f0b91095be567ea1dda5f9aead1d61a9d, Linux 6ad5071fbef6e65beb33c099e282dc89f0e2f716, Linux 0f554506a3fc6a21e714adf38cc3eb0ffe1bb452

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-142805 being exploited?

There is no confirmed exploitation: CVE-2026-142805 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-142805?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-142805?

Linux \>= bf74ad5bc41727d5f2f1c6bedb2c1fac394de731, \< 5ae6b6c587cea50acf1f39a815906422e607eb68; \>= bf74ad5bc41727d5f2f1c6bedb2c1fac394de731, \< cb00e496cda53de377d5dd5fc68210566b9643d5; \>= bf74ad5bc41727d5f2f1c6bedb2c1fac394de731, \< 6d2b0763c98c0e09208bb4d75b12de6414b3ba20; \>= bf74ad5bc41727d5f2f1c6bedb2c1fac394de731, \< 7bbef48f0b91095be567ea1dda5f9aead1d61a9d; \>= bf74ad5bc41727d5f2f1c6bedb2c1fac394de731, \< d4bded35edf8d9cd5133dd934a71c3268f89f501; \>= bf74ad5bc41727d5f2f1c6bedb2c1fac394de731, \< 6ad5071fbef6e65beb33c099e282dc89f0e2f716; \>= bf74ad5bc41727d5f2f1c6bedb2c1fac394de731, \< 0f554506a3fc6a21e714adf38cc3eb0ffe1bb452; Linux 2.6.16.

### Is there a fix for CVE-2026-142805?

Yes. Fixed in Linux 5ae6b6c587cea50acf1f39a815906422e607eb68, Linux 6d2b0763c98c0e09208bb4d75b12de6414b3ba20, Linux 7bbef48f0b91095be567ea1dda5f9aead1d61a9d, Linux 6ad5071fbef6e65beb33c099e282dc89f0e2f716, Linux 0f554506a3fc6a21e714adf38cc3eb0ffe1bb452. Upgrade Linux to 0f554506a3fc6a21e714adf38cc3eb0ffe1bb452 or later.

### How do I check if I'm affected by CVE-2026-142805?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/5ae6b6c587cea50acf1f39a815906422e607eb68>
- other: <https://git.kernel.org/stable/c/cb00e496cda53de377d5dd5fc68210566b9643d5>
- other: <https://git.kernel.org/stable/c/6d2b0763c98c0e09208bb4d75b12de6414b3ba20>
- other: <https://git.kernel.org/stable/c/7bbef48f0b91095be567ea1dda5f9aead1d61a9d>
- other: <https://git.kernel.org/stable/c/d4bded35edf8d9cd5133dd934a71c3268f89f501>
- other: <https://git.kernel.org/stable/c/6ad5071fbef6e65beb33c099e282dc89f0e2f716>
- other: <https://git.kernel.org/stable/c/0f554506a3fc6a21e714adf38cc3eb0ffe1bb452>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-142805>

HTML: <https://flawdb.com/CVE-2026-142805> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-142805>
