# CVE-2026-64346: usb: gadget: udc: Fix use-after-free in gadget_match_driver

CVE-2026-64346 is fixed in 36 products on 1 platform, first by DEBIAN-CVE-2026-64346, released July 26, 2026. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2026-64346
- Priority: High
- CVSS: 7.8 (Moderate)
- EPSS: 0.0016
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Jul 25, 2026
- Vendor advisory: https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-64346

## Description

In the Linux kernel, the following vulnerability has been resolved:  usb: gadget: udc: Fix use-after-free in gadget_match_driver  The udc structure acts as the management structure for the gadget, but their lifecycles are decoupled. A race condition exists where usb_del_gadget() frees the udc memory (e.g., via mode-switch work) while gadget_match_driver() concurrently accesses the freed udc memory (e.g., via configfs), causing a Use-After-Free (UAF) that triggers a NULL pointer dereference when the freed memory is zeroed:  [39430.908615][ T1171] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000 [39430.911397][ T1171] pc : __pi_strcmp+0x20/0x140 [39430.911441][ T1171] lr : gadget_match_driver+0x34/0x60 ... [39430.911890][ T1171]  usb_gadget_register_driver_owner+0x50/0xf8 [39430.911910][ T1171]  gadget_dev_desc_UDC_store+0xf4/0x140 [39430.931308][ T1171]  configfs_write_iter+0xec/0x134  [39430.957058][ T1171] Workqueue: events_freezable __dwc3_set_mode [39430.957287][ T1171]  dwc3_gadget_exit+0x34/0x8c [39430.957304][ T1171]  __dwc3_set_mode+0xc0/0x664  Fix this by ensuring the udc structure remains allocated until the gadget is released. To achieve this, introduce a new usb_gadget_release() routine to the core. When the gadget is added, usb_add_gadget() stores the gadget's release routine in the udc structure and takes a reference to the udc. When the gadget is released, usb_gadget_release() drops the reference to the udc and then calls the gadget's release routine.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | bpftool ol 8 | 0:5.15.0-324.217.5.2.el9uek | [ELSA-2026-500249](https://patchblox.com/security/data/fix/linux/elsa-2026-500249.md) | Sep 4, 2026 |
| Linux | bpftool ol 9 | 0:5.15.0-324.217.5.2.el9uek | [ELSA-2026-500249](https://patchblox.com/security/data/fix/linux/elsa-2026-500249.md) | Sep 4, 2026 |
| Linux | dtb-aarch64 opensuse-leap 16.0 | 6.12.0-160000.38.1 | [OPENSUSE-SU-2026:21910-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-21910-1.md) | Sep 22, 2026 |
| Linux | kernel-64kb opensuse-leap 16.0 | 6.12.0-160000.38.1 | [OPENSUSE-SU-2026:21910-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-21910-1.md) | Sep 22, 2026 |
| Linux | kernel-64kb sles 15.7 | 6.4.0-150700.53.81.1 | [SUSE-SU-2026:4254-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-4254-1.md) | Oct 7, 2026 |
| Linux | kernel-64kb sles 16.0 | 6.12.0-160000.38.1 | [SUSE-SU-2026:23902-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-23902-1.md) | Sep 22, 2026 |
| Linux | kernel-azure opensuse-leap 16.0 | 6.12.0-160000.38.1 | [OPENSUSE-SU-2026:21910-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-21910-1.md) | Sep 22, 2026 |
| Linux | kernel-azure sles 15.7 | 6.4.0-150700.53.81.1 | [SUSE-SU-2026:4254-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-4254-1.md) | Oct 7, 2026 |
| Linux | kernel-azure sles 16.0 | 6.12.0-160000.38.1 | [SUSE-SU-2026:23902-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-23902-1.md) | Sep 22, 2026 |
| Linux | kernel-default opensuse-leap 16.0 | 6.12.0-160000.38.1 | [OPENSUSE-SU-2026:21910-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-21910-1.md) | Sep 22, 2026 |
| Linux | kernel-default sles 15.7 | 6.4.0-150700.53.81.1 | [SUSE-SU-2026:4254-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-4254-1.md) | Oct 7, 2026 |
| Linux | kernel-default sles 16.0 | 6.12.0-160000.38.1 | [SUSE-SU-2026:23902-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-23902-1.md) | Sep 22, 2026 |
| Linux | kernel-default-base opensuse-leap 16.0 | 6.12.0-160000.38.1.160000.2.22 | [OPENSUSE-SU-2026:21910-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-21910-1.md) | Sep 22, 2026 |
| Linux | kernel-default-base sles 15.7 | 6.4.0-150700.53.81.1.150700.17.45.1 | [SUSE-SU-2026:4254-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-4254-1.md) | Oct 7, 2026 |
| Linux | kernel-default-base sles 16.0 | 6.12.0-160000.38.1.160000.2.23 | [SUSE-SU-2026:23902-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-23902-1.md) | Sep 22, 2026 |
| Linux | kernel-docs opensuse-leap 16.0 | 6.12.0-160000.38.1 | [OPENSUSE-SU-2026:21910-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-21910-1.md) | Sep 22, 2026 |
| Linux | kernel-docs sles 15.7 | 6.4.0-150700.53.81.1 | [SUSE-SU-2026:4254-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-4254-1.md) | Oct 7, 2026 |
| Linux | kernel-docs sles 16.0 | 6.12.0-160000.38.1 | [SUSE-SU-2026:23902-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-23902-1.md) | Sep 22, 2026 |
| Linux | kernel-kvmsmall opensuse-leap 16.0 | 6.12.0-160000.38.1 | [OPENSUSE-SU-2026:21910-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-21910-1.md) | Sep 22, 2026 |
| Linux | kernel-kvmsmall sles 16.0 | 6.12.0-160000.38.1 | [SUSE-SU-2026:23902-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-23902-1.md) | Sep 22, 2026 |
| Linux | kernel-livepatch-SLE15-SP7-RT_Update_20 sles 15.7 | 1-150700.1.3.1 | [SUSE-SU-2026:4120-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-4120-1.md) | Sep 10, 2026 |
| Linux | kernel-livepatch-SLE15-SP7_Update_21 sles 15.7 | 1-150700.15.3.1 | [SUSE-SU-2026:4254-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-4254-1.md) | Oct 7, 2026 |
| Linux | kernel-obs-build opensuse-leap 16.0 | 6.12.0-160000.38.1 | [OPENSUSE-SU-2026:21910-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-21910-1.md) | Sep 22, 2026 |
| Linux | kernel-obs-build sles 15.7 | 6.4.0-150700.53.81.1 | [SUSE-SU-2026:4254-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-4254-1.md) | Oct 7, 2026 |
| Linux | kernel-obs-qa opensuse-leap 16.0 | 6.12.0-160000.38.1 | [OPENSUSE-SU-2026:21910-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-21910-1.md) | Sep 22, 2026 |
| Linux | kernel-obs-qa sles 16.0 | 6.12.0-160000.38.1 | [SUSE-SU-2026:23902-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-23902-1.md) | Sep 22, 2026 |
| Linux | kernel-rt opensuse-leap 16.0 | 6.12.0-160000.38.1 | [OPENSUSE-SU-2026:21910-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-21910-1.md) | Sep 22, 2026 |
| Linux | kernel-source opensuse-leap 16.0 | 6.12.0-160000.38.1 | [OPENSUSE-SU-2026:21910-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-21910-1.md) | Sep 22, 2026 |
| Linux | kernel-source sles 15.7 | 6.4.0-150700.53.81.1 | [SUSE-SU-2026:4254-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-4254-1.md) | Oct 7, 2026 |
| Linux | kernel-source sles 16.0 | 6.12.0-160000.38.1 | [SUSE-SU-2026:23902-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-23902-1.md) | Sep 22, 2026 |
| Linux | kernel-syms opensuse-leap 16.0 | 6.12.0-160000.38.1 | [OPENSUSE-SU-2026:21910-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-21910-1.md) | Sep 22, 2026 |
| Linux | kernel-syms sles 15.7 | 6.4.0-150700.53.81.1 | [SUSE-SU-2026:4254-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-4254-1.md) | Oct 7, 2026 |
| Linux | kernel-syms sles 16.0 | 6.12.0-160000.38.1 | [SUSE-SU-2026:23902-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-23902-1.md) | Sep 22, 2026 |
| Linux | kernel-uek ol 8 | 0:5.15.0-324.217.5.2.el9uek | [ELSA-2026-500249](https://patchblox.com/security/data/fix/linux/elsa-2026-500249.md) | Sep 4, 2026 |
| Linux | kernel-uek ol 9 | 0:5.15.0-324.217.5.2.el9uek | [ELSA-2026-500249](https://patchblox.com/security/data/fix/linux/elsa-2026-500249.md) | Sep 4, 2026 |
| Linux | kernel-uek-container ol 8 | 0:5.15.0-324.217.5.2.el9uek | [ELSA-2026-500249](https://patchblox.com/security/data/fix/linux/elsa-2026-500249.md) | Sep 4, 2026 |
| Linux | kernel-uek-container ol 9 | 0:5.15.0-324.217.5.2.el9uek | [ELSA-2026-500249](https://patchblox.com/security/data/fix/linux/elsa-2026-500249.md) | Sep 4, 2026 |
| Linux | kernel-uek-container-debug ol 8 | 0:5.15.0-324.217.5.2.el9uek | [ELSA-2026-500249](https://patchblox.com/security/data/fix/linux/elsa-2026-500249.md) | Sep 4, 2026 |
| Linux | kernel-uek-container-debug ol 9 | 0:5.15.0-324.217.5.2.el9uek | [ELSA-2026-500249](https://patchblox.com/security/data/fix/linux/elsa-2026-500249.md) | Sep 4, 2026 |
| Linux | kernel-uek-core ol 8 | 0:5.15.0-324.217.5.2.el9uek | [ELSA-2026-500249](https://patchblox.com/security/data/fix/linux/elsa-2026-500249.md) | Sep 4, 2026 |
| Linux | kernel-uek-core ol 9 | 0:5.15.0-324.217.5.2.el9uek | [ELSA-2026-500249](https://patchblox.com/security/data/fix/linux/elsa-2026-500249.md) | Sep 4, 2026 |
| Linux | kernel-uek-debug ol 8 | 0:5.15.0-324.217.5.2.el9uek | [ELSA-2026-500249](https://patchblox.com/security/data/fix/linux/elsa-2026-500249.md) | Sep 4, 2026 |
| Linux | kernel-uek-debug ol 9 | 0:5.15.0-324.217.5.2.el9uek | [ELSA-2026-500249](https://patchblox.com/security/data/fix/linux/elsa-2026-500249.md) | Sep 4, 2026 |
| Linux | kernel-uek-debug-core ol 8 | 0:5.15.0-324.217.5.2.el9uek | [ELSA-2026-500249](https://patchblox.com/security/data/fix/linux/elsa-2026-500249.md) | Sep 4, 2026 |
| Linux | kernel-uek-debug-core ol 9 | 0:5.15.0-324.217.5.2.el9uek | [ELSA-2026-500249](https://patchblox.com/security/data/fix/linux/elsa-2026-500249.md) | Sep 4, 2026 |
| Linux | kernel-uek-debug-devel ol 8 | 0:5.15.0-324.217.5.2.el9uek | [ELSA-2026-500249](https://patchblox.com/security/data/fix/linux/elsa-2026-500249.md) | Sep 4, 2026 |
| Linux | kernel-uek-debug-devel ol 9 | 0:5.15.0-324.217.5.2.el9uek | [ELSA-2026-500249](https://patchblox.com/security/data/fix/linux/elsa-2026-500249.md) | Sep 4, 2026 |
| Linux | kernel-uek-debug-modules ol 8 | 0:5.15.0-324.217.5.2.el9uek | [ELSA-2026-500249](https://patchblox.com/security/data/fix/linux/elsa-2026-500249.md) | Sep 4, 2026 |
| Linux | kernel-uek-debug-modules ol 9 | 0:5.15.0-324.217.5.2.el9uek | [ELSA-2026-500249](https://patchblox.com/security/data/fix/linux/elsa-2026-500249.md) | Sep 4, 2026 |
| Linux | kernel-uek-debug-modules-extra ol 8 | 0:5.15.0-324.217.5.2.el9uek | [ELSA-2026-500249](https://patchblox.com/security/data/fix/linux/elsa-2026-500249.md) | Sep 4, 2026 |
| Linux | kernel-uek-debug-modules-extra ol 9 | 0:5.15.0-324.217.5.2.el9uek | [ELSA-2026-500249](https://patchblox.com/security/data/fix/linux/elsa-2026-500249.md) | Sep 4, 2026 |
| Linux | kernel-uek-devel ol 8 | 0:5.15.0-324.217.5.2.el9uek | [ELSA-2026-500249](https://patchblox.com/security/data/fix/linux/elsa-2026-500249.md) | Sep 4, 2026 |
| Linux | kernel-uek-devel ol 9 | 0:5.15.0-324.217.5.2.el9uek | [ELSA-2026-500249](https://patchblox.com/security/data/fix/linux/elsa-2026-500249.md) | Sep 4, 2026 |
| Linux | kernel-uek-doc ol 8 | 0:5.15.0-324.217.5.2.el9uek | [ELSA-2026-500249](https://patchblox.com/security/data/fix/linux/elsa-2026-500249.md) | Sep 4, 2026 |
| Linux | kernel-uek-doc ol 9 | 0:5.15.0-324.217.5.2.el9uek | [ELSA-2026-500249](https://patchblox.com/security/data/fix/linux/elsa-2026-500249.md) | Sep 4, 2026 |
| Linux | kernel-uek-modules ol 8 | 0:5.15.0-324.217.5.2.el9uek | [ELSA-2026-500249](https://patchblox.com/security/data/fix/linux/elsa-2026-500249.md) | Sep 4, 2026 |
| Linux | kernel-uek-modules ol 9 | 0:5.15.0-324.217.5.2.el9uek | [ELSA-2026-500249](https://patchblox.com/security/data/fix/linux/elsa-2026-500249.md) | Sep 4, 2026 |
| Linux | kernel-uek-modules-extra ol 8 | 0:5.15.0-324.217.5.2.el9uek | [ELSA-2026-500249](https://patchblox.com/security/data/fix/linux/elsa-2026-500249.md) | Sep 4, 2026 |
| Linux | kernel-uek-modules-extra ol 9 | 0:5.15.0-324.217.5.2.el9uek | [ELSA-2026-500249](https://patchblox.com/security/data/fix/linux/elsa-2026-500249.md) | Sep 4, 2026 |
| Linux | kernel-uek64k ol 8 | 0:5.15.0-324.217.5.2.el9uek | [ELSA-2026-500249](https://patchblox.com/security/data/fix/linux/elsa-2026-500249.md) | Sep 4, 2026 |
| Linux | kernel-uek64k ol 9 | 0:5.15.0-324.217.5.2.el9uek | [ELSA-2026-500249](https://patchblox.com/security/data/fix/linux/elsa-2026-500249.md) | Sep 4, 2026 |
| Linux | kernel-uek64k-core ol 8 | 0:5.15.0-324.217.5.2.el9uek | [ELSA-2026-500249](https://patchblox.com/security/data/fix/linux/elsa-2026-500249.md) | Sep 4, 2026 |
| Linux | kernel-uek64k-core ol 9 | 0:5.15.0-324.217.5.2.el9uek | [ELSA-2026-500249](https://patchblox.com/security/data/fix/linux/elsa-2026-500249.md) | Sep 4, 2026 |
| Linux | kernel-uek64k-devel ol 8 | 0:5.15.0-324.217.5.2.el9uek | [ELSA-2026-500249](https://patchblox.com/security/data/fix/linux/elsa-2026-500249.md) | Sep 4, 2026 |
| Linux | kernel-uek64k-devel ol 9 | 0:5.15.0-324.217.5.2.el9uek | [ELSA-2026-500249](https://patchblox.com/security/data/fix/linux/elsa-2026-500249.md) | Sep 4, 2026 |
| Linux | kernel-uek64k-modules ol 8 | 0:5.15.0-324.217.5.2.el9uek | [ELSA-2026-500249](https://patchblox.com/security/data/fix/linux/elsa-2026-500249.md) | Sep 4, 2026 |
| Linux | kernel-uek64k-modules ol 9 | 0:5.15.0-324.217.5.2.el9uek | [ELSA-2026-500249](https://patchblox.com/security/data/fix/linux/elsa-2026-500249.md) | Sep 4, 2026 |
| Linux | kernel-uek64k-modules-extra ol 8 | 0:5.15.0-324.217.5.2.el9uek | [ELSA-2026-500249](https://patchblox.com/security/data/fix/linux/elsa-2026-500249.md) | Sep 4, 2026 |
| Linux | kernel-uek64k-modules-extra ol 9 | 0:5.15.0-324.217.5.2.el9uek | [ELSA-2026-500249](https://patchblox.com/security/data/fix/linux/elsa-2026-500249.md) | Sep 4, 2026 |
| Linux | kernel-zfcpdump opensuse-leap 16.0 | 6.12.0-160000.38.1 | [OPENSUSE-SU-2026:21910-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-21910-1.md) | Sep 22, 2026 |
| Linux | kernel-zfcpdump sles 15.7 | 6.4.0-150700.53.81.1 | [SUSE-SU-2026:4254-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-4254-1.md) | Oct 7, 2026 |
| Linux | kernel-zfcpdump sles 16.0 | 6.12.0-160000.38.1 | [SUSE-SU-2026:23902-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-23902-1.md) | Sep 22, 2026 |
| Linux | linux Debian 12.15 (bookworm) | 6.1.180-1 | [DEBIAN-CVE-2026-64346](https://patchblox.com/security/data/fix/linux/debian-cve-2026-64346.md) | Jul 26, 2026 |
| Linux | linux Debian 13.5 (trixie) | 6.12.96-1 | [DEBIAN-CVE-2026-64346](https://patchblox.com/security/data/fix/linux/debian-cve-2026-64346.md) | Jul 26, 2026 |
| Linux | linux Debian 14 | 7.1.4-1 | [DEBIAN-CVE-2026-64346](https://patchblox.com/security/data/fix/linux/debian-cve-2026-64346.md) | Jul 26, 2026 |
| Linux | linux-6.12 Debian 12.15 (bookworm) | 6.12.100-1~deb12u1 | [DEBIAN-CVE-2026-64346](https://patchblox.com/security/data/fix/linux/debian-cve-2026-64346.md) | Jul 26, 2026 |

---

Data as of 2026-11-08T00:53:09Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
