# CVE-2026-142804: driver core: take parent lock in async device attach

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

## Who should check

- Anyone running Linux \>= 765230b5f084863183aa8adb3405ab3f32c0b16e, \< 027caf8870b8f1763cd804b2b6895aa4d3311579; \>= 765230b5f084863183aa8adb3405ab3f32c0b16e, \< 0efcfd3afbd7ac3737979732099f9e1efe378a58; \>= 765230b5f084863183aa8adb3405ab3f32c0b16e, \< 1f1a7cdcc7a9a73b5496a45390fb13b7bf7b088f; \>= 765230b5f084863183aa8adb3405ab3f32c0b16e, \< 16da5d271322e0947ecce0edc54daa248cf8101e; \>= 765230b5f084863183aa8adb3405ab3f32c0b16e, \< 187a62f99da29b1a55602b0d401a783d8dc86161
- Anyone running Linux 4.2

## Description

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

driver core: take parent lock in async device attach

For device types with need\_parent\_lock set (only USB interfaces),
probe() must run with the parent device locked. A synchronous attach
after device\_add() gets this from the caller, e.g.
usb\_set\_configuration() holds the udev lock while adding interfaces.
\_\_device\_attach\_async\_helper() runs the probe from an async worker
instead, where that lock isn't held, and only takes device\_lock(dev).

With async probing enabled for the hub driver (e.g. driver\_async\_probe=\*
or driver\_async\_probe=hub), this races when a multi-TT hub is
configured. For multi-TT hubs, hub\_probe() calls
usb\_set\_interface(hdev, 0, 1) to select the TT-per-port altsetting, and
usb\_set\_interface() creates the endpoint devices of the interface a
second time:

  usb\_set\_configuration()           async worker
    \[udev locked\]
    device\_add(intf)
      queues the probe  ----------\> \_\_device\_attach\_async\_helper()
                                      \[intf locked, udev not locked\]
                                      hub\_probe()
                                        usb\_set\_interface(hdev, 0, 1)
    create\_intf\_ep\_devs(intf)             create\_intf\_ep\_devs(intf)

create\_intf\_ep\_devs() checks and sets intf-\>ep\_devs\_created without a
lock of its own. If usb\_set\_configuration() has created ep\_81 but not
yet set the flag, usb\_set\_interface() skips removing the endpoint
devices of the old altsetting and creates ep\_81 again. With a
synchronous probe, hub\_probe() runs inside device\_add() with the udev
lock held, and usb\_set\_configuration() then finds ep\_devs\_created
already set.

Single-TT hubs don't call usb\_set\_interface() from hub\_probe() and
don't show this warning, but their probe runs without the udev lock as
well.

On an i.MX8MM board with an onboard USB2514 hub this hit 11 of 100
boots:

  sysfs: cannot create duplicate filename '.../1-1/1-1:1.0/ep\_81'
  Call trace:
   sysfs\_warn\_dup
   usb\_create\_ep\_devs
   create\_intf\_ep\_devs
   usb\_set\_interface
   hub\_probe
   usb\_probe\_interface
   really\_probe
   \_\_device\_attach\_async\_helper
   async\_run\_entry\_fn

It also shows on v7.3-rc6 in QEMU, with dummy\_hcd and a raw-gadget
program emulating a multi-TT hub: re-authorizing the hub in a loop,
while a SCHED\_FIFO task preempts the writing task at random points for
3 ms, hit the warning in 29 of 6000 iterations.

Take the parent lock in \_\_device\_attach\_async\_helper() as well, like
\_\_driver\_attach\_async\_helper() does, and move
\_\_device\_driver\_lock/unlock() up for that. With this the warning was
gone in 300 boots on the board and in 6000 iterations in QEMU.

\[ johan: switch to async\_schedule\_dev\_nocall() to avoid deadlock if
         async\_schedule\_dev() runs synchronously when parent lock is
	 held \]
\[ Fold the nested conditions into a single if statement; correct commit
  message to mention "device types" rather than "buses" for
  "need\_parent\_lock". - Danilo \]

## Affected and fixed versions

- Linux: \>= 765230b5f084863183aa8adb3405ab3f32c0b16e, \< 027caf8870b8f1763cd804b2b6895aa4d3311579; \>= 765230b5f084863183aa8adb3405ab3f32c0b16e, \< 0efcfd3afbd7ac3737979732099f9e1efe378a58; \>= 765230b5f084863183aa8adb3405ab3f32c0b16e, \< 1f1a7cdcc7a9a73b5496a45390fb13b7bf7b088f; \>= 765230b5f084863183aa8adb3405ab3f32c0b16e, \< 16da5d271322e0947ecce0edc54daa248cf8101e; \>= 765230b5f084863183aa8adb3405ab3f32c0b16e, \< 187a62f99da29b1a55602b0d401a783d8dc86161 (cvelist)
- Linux: 4.2 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 187a62f99da29b1a55602b0d401a783d8dc86161 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-142804. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-142804.md
Affected: Linux >= 765230b5f084863183aa8adb3405ab3f32c0b16e, < 027caf8870b8f1763cd804b2b6895aa4d3311579; >= 765230b5f084863183aa8adb3405ab3f32c0b16e, < 0efcfd3afbd7ac3737979732099f9e1efe378a58; >= 765230b5f084863183aa8adb3405ab3f32c0b16e, < 1f1a7cdcc7a9a73b5496a45390fb13b7bf7b088f; >= 765230b5f084863183aa8ad…
Fixed in: Linux 027caf8870b8f1763cd804b2b6895aa4d3311579, Linux 0efcfd3afbd7ac3737979732099f9e1efe378a58, Linux 1f1a7cdcc7a9a73b5496a45390fb13b7bf7b088f, Linux 16da5d271322e0947ecce0edc54daa248cf8101e, Linux 187a62f99da29b1a55602b0d401a783d8dc86161

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-142804 being exploited?

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= 765230b5f084863183aa8adb3405ab3f32c0b16e, \< 027caf8870b8f1763cd804b2b6895aa4d3311579; \>= 765230b5f084863183aa8adb3405ab3f32c0b16e, \< 0efcfd3afbd7ac3737979732099f9e1efe378a58; \>= 765230b5f084863183aa8adb3405ab3f32c0b16e, \< 1f1a7cdcc7a9a73b5496a45390fb13b7bf7b088f; \>= 765230b5f084863183aa8adb3405ab3f32c0b16e, \< 16da5d271322e0947ecce0edc54daa248cf8101e; \>= 765230b5f084863183aa8adb3405ab3f32c0b16e, \< 187a62f99da29b1a55602b0d401a783d8dc86161; Linux 4.2.

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

Yes. Fixed in Linux 027caf8870b8f1763cd804b2b6895aa4d3311579, Linux 0efcfd3afbd7ac3737979732099f9e1efe378a58, Linux 1f1a7cdcc7a9a73b5496a45390fb13b7bf7b088f, Linux 16da5d271322e0947ecce0edc54daa248cf8101e, Linux 187a62f99da29b1a55602b0d401a783d8dc86161. Upgrade Linux to 187a62f99da29b1a55602b0d401a783d8dc86161 or later.

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

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/027caf8870b8f1763cd804b2b6895aa4d3311579>
- other: <https://git.kernel.org/stable/c/0efcfd3afbd7ac3737979732099f9e1efe378a58>
- other: <https://git.kernel.org/stable/c/1f1a7cdcc7a9a73b5496a45390fb13b7bf7b088f>
- other: <https://git.kernel.org/stable/c/16da5d271322e0947ecce0edc54daa248cf8101e>
- other: <https://git.kernel.org/stable/c/187a62f99da29b1a55602b0d401a783d8dc86161>

## 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-142804>

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