CVE-2026-142804
Last modified
CVE-2026-142804 is a vulnerability of currently unknown severity. 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.
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 Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= 765230b5f084863183aa8adb3405ab3f32c0b16e, < 027caf8870b8f1763cd804b2b6895aa4d3311579; >= 765230b5f084863183aa8adb3405ab3f32c0b16e, < 0efcfd3afbd7ac3737979732099f9e1efe378a58; >= 765230b5f084863183aa8adb3405ab3f32c0b16e, < 1f1a7cdcc7a9a73b5496a45390fb13b7bf7b088f; >= 765230b5f084863183aa8adb3405ab3f32c0b16e, < 16da5d271322e0947ecce0edc54daa248cf8101e; >= 765230b5f084863183aa8adb3405ab3f32c0b16e, < 187a62f99da29b1a55602b0d401a783d8dc86161 |
| Linux | Linux | 4.2 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-142804?
How severe is CVE-2026-142804?
How do I fix CVE-2026-142804?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-1428Single Sign-On Portal System developed by WellChoose has a O…8.8
- CVE-2026-14280The Events Manager – Calendar, Bookings, Tickets, and more! …6.6
- CVE-2026-142800In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142801In the Linux kernel, the following vulnerability has been re…7
- CVE-2026-142802In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142803In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142805In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142806In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142807In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142808In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142809In the Linux kernel, the following vulnerability has been re…
- CVE-2026-14281The Automation Web Platform – Notifications and OTP for WooC…9.8
Are you affected by CVE-2026-142804?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
