CVE-2026-64233
usb: gadget: uvc: hold opts->lock across XU walks in uvc_function_bind
Description
In the Linux kernel, the following vulnerability has been resolved: usb: gadget: uvc: hold opts->lock across XU walks in uvc_function_bind uvc_function_bind() walks &opts->extension_units twice without holding opts->lock: - directly, for the iExtension string-descriptor fixup loop; - indirectly, four times via uvc_copy_descriptors() (once per speed), where the helper iterates uvc->desc.extension_units (which aliases &opts->extension_units) to size and emit XU descriptors. The configfs side (uvcg_extension_make / uvcg_extension_drop, in drivers/usb/gadget/function/uvc_configfs.c) takes opts->lock around its list_add_tail / list_del 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 uvcg_extension_drop() 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 uvc_copy_descriptors() 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.
INFO
Published Date :
July 24, 2026, 4:16 p.m.
Last Modified :
Nov. 8, 2026, 4:10 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | MEDIUM | [email protected] |
Solution
- Update the Linux kernel to the latest version.
- Apply the specific patch for usb: gadget: uvc race condition.
- Verify lock acquisition in uvc_function_bind and related functions.
- Ensure userspace does not race configfs operations with gadget binding.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-64233.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-64233 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-64233
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-64233 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-64233 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Translated by [email protected]
Nov. 08, 2026
Action Type Old Value New Value Added Translation Title: Linux Kernel, Description: En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: usb: gadget: uvc: mantener opts -> lock durante los recorridos XU en uvc_function_bind uvc_function_bind() recorre &opts -> extension_units dos veces sin mantener opts -> lock: - directamente, para el bucle de corrección del descriptor de cadena iExtension; - indirectamente, cuatro veces a través de uvc_copy_descriptors() (una vez por velocidad), donde la función auxiliar itera uvc -> desc.extension_units (que es un alias de &opts -> extension_units) para dimensionar y emitir descriptores XU. El lado de configfs (uvcg_extension_make / uvcg_extension_drop, en drivers/usb/gadget/function/uvc_configfs.c) toma opts -> lock alrededor de sus operaciones list_add_tail / list_del. Un proceso privilegiado de espacio de usuario que mantiene abierto el subárbol de configfs y escribe el nombre UDC del gadget para enlazar la función mientras simultáneamente ejecuta rmdir() en un subdirectorio de extensiones puede competir con uvcg_extension_drop() contra los recorridos de lista en tiempo de enlace y desreferenciar una struct uvcg_extension liberada. Mantener opts -> lock desde el inicio de la corrección del descriptor de cadena XU hasta la última llamada a uvc_copy_descriptors(), liberando en la ruta de error del descriptor a través de una nueva etiqueta error_unlock que suelta el bloqueo antes de pasar a la etiqueta de error existente. Esto coincide con la disciplina de bloqueo de las retrollamadas de configfs y elimina el único lector no sincronizado restante de la lista XU durante el enlace. Alcance: solo procesos privilegiados que pueden montar configfs y escribir en archivos UDC de gadget pueden desencadenar la condición de carrera, por lo que esta es una corrección de exactitud en lugar de un límite de seguridad. -
Initial Analysis by [email protected]
Aug. 12, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H Added CWE NVD-CWE-noinfo Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.1:rc3:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.1:rc4:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.13 up to (excluding) 6.18.35 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.12.93 *cpe:2.3:o:linux:linux_kernel:7.1:rc5:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.19 up to (excluding) 7.0.12 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.3 up to (excluding) 6.6.143 Added Reference Type kernel.org: https://git.kernel.org/stable/c/2c9e0905ef7e69f7b814cd709613f6b3b5b98805 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/5f1b9cff88982e2a2053d8b1fd983f7ccb9f03cc Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/68aa70648b625fa684bc0b71bbfd905f4943ca20 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/caec0145e5974e85fe5192fc6a6f5aa1a98f82a6 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/e15c414092b3c24610cc771e481a723b0f645eca Types: Patch -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jul. 24, 2026
Action Type Old Value New Value Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '0525210c9840229e42c6b68e886c72a75a67cf8e', 'lessThan': 'e15c414092b3c24610cc771e481a723b0f645eca', 'versionType': 'git'}, {'status': 'affected', 'version': '0525210c9840229e42c6b68e886c72a75a67cf8e', 'lessThan': '2c9e0905ef7e69f7b814cd709613f6b3b5b98805', 'versionType': 'git'}, {'status': 'affected', 'version': '0525210c9840229e42c6b68e886c72a75a67cf8e', 'lessThan': 'caec0145e5974e85fe5192fc6a6f5aa1a98f82a6', 'versionType': 'git'}, {'status': 'affected', 'version': '0525210c9840229e42c6b68e886c72a75a67cf8e', 'lessThan': '5f1b9cff88982e2a2053d8b1fd983f7ccb9f03cc', 'versionType': 'git'}, {'status': 'affected', 'version': '0525210c9840229e42c6b68e886c72a75a67cf8e', 'lessThan': '68aa70648b625fa684bc0b71bbfd905f4943ca20', 'versionType': 'git'}], 'programFiles': ['drivers/usb/gadget/function/f_uvc.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '6.3'}, {'status': 'unaffected', 'version': '0', 'lessThan': '6.3', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.6.143', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.93', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.35', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.0.12', 'versionType': 'semver', 'lessThanOrEqual': '7.0.*'}, {'status': 'unaffected', 'version': '7.1', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['drivers/usb/gadget/function/f_uvc.c'], 'defaultStatus': 'affected'}] Added Description In the Linux kernel, the following vulnerability has been resolved: usb: gadget: uvc: hold opts->lock across XU walks in uvc_function_bind uvc_function_bind() walks &opts->extension_units twice without holding opts->lock: - directly, for the iExtension string-descriptor fixup loop; - indirectly, four times via uvc_copy_descriptors() (once per speed), where the helper iterates uvc->desc.extension_units (which aliases &opts->extension_units) to size and emit XU descriptors. The configfs side (uvcg_extension_make / uvcg_extension_drop, in drivers/usb/gadget/function/uvc_configfs.c) takes opts->lock around its list_add_tail / list_del 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 uvcg_extension_drop() 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 uvc_copy_descriptors() 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. Added Reference https://git.kernel.org/stable/c/2c9e0905ef7e69f7b814cd709613f6b3b5b98805 Added Reference https://git.kernel.org/stable/c/5f1b9cff88982e2a2053d8b1fd983f7ccb9f03cc Added Reference https://git.kernel.org/stable/c/68aa70648b625fa684bc0b71bbfd905f4943ca20 Added Reference https://git.kernel.org/stable/c/caec0145e5974e85fe5192fc6a6f5aa1a98f82a6 Added Reference https://git.kernel.org/stable/c/e15c414092b3c24610cc771e481a723b0f645eca