CVE-2026-64233

Source
https://cve.org/CVERecord?id=CVE-2026-64233
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64233.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-64233
Downstream
Published
2026-07-24T15:27:39.710Z
Modified
2026-07-27T04:03:20.515808346Z
Summary
usb: gadget: uvc: hold opts->lock across XU walks in uvc_function_bind
Details

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

usb: gadget: uvc: hold opts->lock across XU walks in uvcfunctionbind

uvcfunctionbind() walks &opts->extension_units 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 uvcg_extension.

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 error_unlock 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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64233.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0525210c9840229e42c6b68e886c72a75a67cf8e
Fixed
e15c414092b3c24610cc771e481a723b0f645eca
Fixed
2c9e0905ef7e69f7b814cd709613f6b3b5b98805
Fixed
caec0145e5974e85fe5192fc6a6f5aa1a98f82a6
Fixed
5f1b9cff88982e2a2053d8b1fd983f7ccb9f03cc
Fixed
68aa70648b625fa684bc0b71bbfd905f4943ca20

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64233.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.3.0
Fixed
6.6.143
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.93
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.35
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.0.12

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64233.json"