Use-after-free in Linux kernel - CVE-2026-64346
Published: July 27, 2026
Vulnerability details
The vulnerability allows a local user to cause a denial of service.
The vulnerability exists due to use-after-free in gadget_match_driver() in the usb gadget udc core when handling concurrent gadget removal and configfs access. A local user can trigger a race condition via configfs operations to cause a denial of service.
The issue arises because the udc and gadget lifecycles are decoupled, and concurrent mode-switch work can free the udc structure while it is still being accessed.
Affected software
How to mitigate CVE-2026-64346
External References
- https://git.kernel.org/stable/c/50eeb8e8a4f389efc91b93cff14a683e714ec194
- https://git.kernel.org/stable/c/54fa390aae393eb130f307a85562e3001cc39a52
- https://git.kernel.org/stable/c/67e511d2989eb1c8c588b599ce2fcc6bb8e6f7ea
- https://git.kernel.org/stable/c/7a5214dae906d9f58e07bc4995e8181ee74439f4
- https://git.kernel.org/stable/c/b52476a83d9e12df00765359d728a875b128bef1
- https://git.kernel.org/stable/c/d026f71df141c9b064ff32a78af5391a31ef75c2
- https://git.kernel.org/stable/c/f845852a5a8914277031f47d8de0f350fef52405