CVE-2026-64233: usb: gadget: uvc: hold opts->lock across XU walks in uvc_function_bind
In the Linux kernel, the following vulnerability has been resolved:
usb: gadget: uvc: hold opts->lock across XU walks in uvcfunctionbind
uvcfunctionbind() walks &opts->extensionunits twice without holding opts->lock:
- directly, for the iExtension string-descriptor fixup loop; - indirectly, four times via uvccopydescriptors() (once per speed), where the helper iterates uvc->desc.extensionunits (which aliases &opts->extensionunits) to size and emit XU descriptors.
The configfs side (uvcgextensionmake / uvcgextensiondrop, in drivers/usb/gadget/function/uvcconfigfs.c) takes opts->lock around its listaddtail / listdel operations. A privileged userspace process that holds the configfs subtree open and writes the gadget UDC name to bind the function while concurrently rmdir()'ing an extensions subdir can race uvcgextensiondrop() against the bind-time list walks and dereference a freed struct uvcgextension.
Hold opts->lock from the start of the XU string-descriptor fixup through the last uvccopydescriptors() call, releasing on the descriptor-error path via a new errorunlock label that drops the lock before falling through to the existing error label. This matches the locking discipline of the configfs callbacks and removes the only remaining unsynchronised reader of the XU list during bind.
Reachability: only privileged processes that can mount configfs and write to gadget UDC files can trigger the race, so this is a correctness fix rather than a security boundary.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2026-64233?
CVE-2026-64233 has a risk rating of 24, indicating it is a serious vulnerability.
How do I fix CVE-2026-64233?
To fix CVE-2026-64233, update to the patched version of the Linux kernel that addresses this vulnerability.
What systems are affected by CVE-2026-64233?
CVE-2026-64233 affects certain versions of the Linux kernel that utilize the USB gadget framework.
What types of exploits can be executed due to CVE-2026-64233?
Exploiting CVE-2026-64233 could potentially allow unauthorized access or control over connected USB devices.
Is CVE-2026-64233 actively being exploited in the wild?
As of now, there is no public information indicating that CVE-2026-64233 is being actively exploited in the wild.