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.

High
CVSS
7.8
Moderate
Exploitation
None reported
No vendor assessment
CISA KEV
Not listed
Not in the Known Exploited Vulnerabilities catalog
EPSS
0.0016
5th percentile

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

ProductFixed inFixReleased
Linux
bpftool · ol 8 0:5.15.0-324.217.5.2.el9uek ELSA-2026-500249 Sep 4, 2026
bpftool · ol 9 0:5.15.0-324.217.5.2.el9uek ELSA-2026-500249 Sep 4, 2026
dtb-aarch64 · opensuse-leap 16.0 6.12.0-160000.38.1 OPENSUSE-SU-2026:21910-1 Sep 22, 2026
kernel-64kb · opensuse-leap 16.0 6.12.0-160000.38.1 OPENSUSE-SU-2026:21910-1 Sep 22, 2026
kernel-64kb · sles 15.7 6.4.0-150700.53.81.1 SUSE-SU-2026:4254-1 Oct 7, 2026
kernel-64kb · sles 16.0 6.12.0-160000.38.1 SUSE-SU-2026:23902-1 Sep 22, 2026
kernel-azure · opensuse-leap 16.0 6.12.0-160000.38.1 OPENSUSE-SU-2026:21910-1 Sep 22, 2026
kernel-azure · sles 15.7 6.4.0-150700.53.81.1 SUSE-SU-2026:4254-1 Oct 7, 2026
kernel-azure · sles 16.0 6.12.0-160000.38.1 SUSE-SU-2026:23902-1 Sep 22, 2026
kernel-default · opensuse-leap 16.0 6.12.0-160000.38.1 OPENSUSE-SU-2026:21910-1 Sep 22, 2026
kernel-default · sles 15.7 6.4.0-150700.53.81.1 SUSE-SU-2026:4254-1 Oct 7, 2026
kernel-default · sles 16.0 6.12.0-160000.38.1 SUSE-SU-2026:23902-1 Sep 22, 2026
kernel-default-base · opensuse-leap 16.0 6.12.0-160000.38.1.160000.2.22 OPENSUSE-SU-2026:21910-1 Sep 22, 2026
kernel-default-base · sles 15.7 6.4.0-150700.53.81.1.150700.17.45.1 SUSE-SU-2026:4254-1 Oct 7, 2026
kernel-default-base · sles 16.0 6.12.0-160000.38.1.160000.2.23 SUSE-SU-2026:23902-1 Sep 22, 2026
kernel-docs · opensuse-leap 16.0 6.12.0-160000.38.1 OPENSUSE-SU-2026:21910-1 Sep 22, 2026
kernel-docs · sles 15.7 6.4.0-150700.53.81.1 SUSE-SU-2026:4254-1 Oct 7, 2026
kernel-docs · sles 16.0 6.12.0-160000.38.1 SUSE-SU-2026:23902-1 Sep 22, 2026
kernel-kvmsmall · opensuse-leap 16.0 6.12.0-160000.38.1 OPENSUSE-SU-2026:21910-1 Sep 22, 2026
kernel-kvmsmall · sles 16.0 6.12.0-160000.38.1 SUSE-SU-2026:23902-1 Sep 22, 2026
kernel-livepatch-SLE15-SP7-RT_Update_20 · sles 15.7 1-150700.1.3.1 SUSE-SU-2026:4120-1 Sep 10, 2026
kernel-livepatch-SLE15-SP7_Update_21 · sles 15.7 1-150700.15.3.1 SUSE-SU-2026:4254-1 Oct 7, 2026
kernel-obs-build · opensuse-leap 16.0 6.12.0-160000.38.1 OPENSUSE-SU-2026:21910-1 Sep 22, 2026
kernel-obs-build · sles 15.7 6.4.0-150700.53.81.1 SUSE-SU-2026:4254-1 Oct 7, 2026
kernel-obs-qa · opensuse-leap 16.0 6.12.0-160000.38.1 OPENSUSE-SU-2026:21910-1 Sep 22, 2026
kernel-obs-qa · sles 16.0 6.12.0-160000.38.1 SUSE-SU-2026:23902-1 Sep 22, 2026
kernel-rt · opensuse-leap 16.0 6.12.0-160000.38.1 OPENSUSE-SU-2026:21910-1 Sep 22, 2026
kernel-source · opensuse-leap 16.0 6.12.0-160000.38.1 OPENSUSE-SU-2026:21910-1 Sep 22, 2026
kernel-source · sles 15.7 6.4.0-150700.53.81.1 SUSE-SU-2026:4254-1 Oct 7, 2026
kernel-source · sles 16.0 6.12.0-160000.38.1 SUSE-SU-2026:23902-1 Sep 22, 2026
kernel-syms · opensuse-leap 16.0 6.12.0-160000.38.1 OPENSUSE-SU-2026:21910-1 Sep 22, 2026
kernel-syms · sles 15.7 6.4.0-150700.53.81.1 SUSE-SU-2026:4254-1 Oct 7, 2026
kernel-syms · sles 16.0 6.12.0-160000.38.1 SUSE-SU-2026:23902-1 Sep 22, 2026
kernel-uek · ol 8 0:5.15.0-324.217.5.2.el9uek ELSA-2026-500249 Sep 4, 2026
kernel-uek · ol 9 0:5.15.0-324.217.5.2.el9uek ELSA-2026-500249 Sep 4, 2026
kernel-uek-container · ol 8 0:5.15.0-324.217.5.2.el9uek ELSA-2026-500249 Sep 4, 2026
kernel-uek-container · ol 9 0:5.15.0-324.217.5.2.el9uek ELSA-2026-500249 Sep 4, 2026
kernel-uek-container-debug · ol 8 0:5.15.0-324.217.5.2.el9uek ELSA-2026-500249 Sep 4, 2026
kernel-uek-container-debug · ol 9 0:5.15.0-324.217.5.2.el9uek ELSA-2026-500249 Sep 4, 2026
kernel-uek-core · ol 8 0:5.15.0-324.217.5.2.el9uek ELSA-2026-500249 Sep 4, 2026
kernel-uek-core · ol 9 0:5.15.0-324.217.5.2.el9uek ELSA-2026-500249 Sep 4, 2026
kernel-uek-debug · ol 8 0:5.15.0-324.217.5.2.el9uek ELSA-2026-500249 Sep 4, 2026
kernel-uek-debug · ol 9 0:5.15.0-324.217.5.2.el9uek ELSA-2026-500249 Sep 4, 2026
kernel-uek-debug-core · ol 8 0:5.15.0-324.217.5.2.el9uek ELSA-2026-500249 Sep 4, 2026
kernel-uek-debug-core · ol 9 0:5.15.0-324.217.5.2.el9uek ELSA-2026-500249 Sep 4, 2026
kernel-uek-debug-devel · ol 8 0:5.15.0-324.217.5.2.el9uek ELSA-2026-500249 Sep 4, 2026
kernel-uek-debug-devel · ol 9 0:5.15.0-324.217.5.2.el9uek ELSA-2026-500249 Sep 4, 2026
kernel-uek-debug-modules · ol 8 0:5.15.0-324.217.5.2.el9uek ELSA-2026-500249 Sep 4, 2026
kernel-uek-debug-modules · ol 9 0:5.15.0-324.217.5.2.el9uek ELSA-2026-500249 Sep 4, 2026
kernel-uek-debug-modules-extra · ol 8 0:5.15.0-324.217.5.2.el9uek ELSA-2026-500249 Sep 4, 2026
kernel-uek-debug-modules-extra · ol 9 0:5.15.0-324.217.5.2.el9uek ELSA-2026-500249 Sep 4, 2026
kernel-uek-devel · ol 8 0:5.15.0-324.217.5.2.el9uek ELSA-2026-500249 Sep 4, 2026
kernel-uek-devel · ol 9 0:5.15.0-324.217.5.2.el9uek ELSA-2026-500249 Sep 4, 2026
kernel-uek-doc · ol 8 0:5.15.0-324.217.5.2.el9uek ELSA-2026-500249 Sep 4, 2026
kernel-uek-doc · ol 9 0:5.15.0-324.217.5.2.el9uek ELSA-2026-500249 Sep 4, 2026
kernel-uek-modules · ol 8 0:5.15.0-324.217.5.2.el9uek ELSA-2026-500249 Sep 4, 2026
kernel-uek-modules · ol 9 0:5.15.0-324.217.5.2.el9uek ELSA-2026-500249 Sep 4, 2026
kernel-uek-modules-extra · ol 8 0:5.15.0-324.217.5.2.el9uek ELSA-2026-500249 Sep 4, 2026
kernel-uek-modules-extra · ol 9 0:5.15.0-324.217.5.2.el9uek ELSA-2026-500249 Sep 4, 2026
kernel-uek64k · ol 8 0:5.15.0-324.217.5.2.el9uek ELSA-2026-500249 Sep 4, 2026
kernel-uek64k · ol 9 0:5.15.0-324.217.5.2.el9uek ELSA-2026-500249 Sep 4, 2026
kernel-uek64k-core · ol 8 0:5.15.0-324.217.5.2.el9uek ELSA-2026-500249 Sep 4, 2026
kernel-uek64k-core · ol 9 0:5.15.0-324.217.5.2.el9uek ELSA-2026-500249 Sep 4, 2026
kernel-uek64k-devel · ol 8 0:5.15.0-324.217.5.2.el9uek ELSA-2026-500249 Sep 4, 2026
kernel-uek64k-devel · ol 9 0:5.15.0-324.217.5.2.el9uek ELSA-2026-500249 Sep 4, 2026
kernel-uek64k-modules · ol 8 0:5.15.0-324.217.5.2.el9uek ELSA-2026-500249 Sep 4, 2026
kernel-uek64k-modules · ol 9 0:5.15.0-324.217.5.2.el9uek ELSA-2026-500249 Sep 4, 2026
kernel-uek64k-modules-extra · ol 8 0:5.15.0-324.217.5.2.el9uek ELSA-2026-500249 Sep 4, 2026
kernel-uek64k-modules-extra · ol 9 0:5.15.0-324.217.5.2.el9uek ELSA-2026-500249 Sep 4, 2026
kernel-zfcpdump · opensuse-leap 16.0 6.12.0-160000.38.1 OPENSUSE-SU-2026:21910-1 Sep 22, 2026
kernel-zfcpdump · sles 15.7 6.4.0-150700.53.81.1 SUSE-SU-2026:4254-1 Oct 7, 2026
kernel-zfcpdump · sles 16.0 6.12.0-160000.38.1 SUSE-SU-2026:23902-1 Sep 22, 2026
linux · Debian 12.15 (bookworm) 6.1.180-1 DEBIAN-CVE-2026-64346 Jul 26, 2026
linux · Debian 13.5 (trixie) 6.12.96-1 DEBIAN-CVE-2026-64346 Jul 26, 2026
linux · Debian 14 7.1.4-1 DEBIAN-CVE-2026-64346 Jul 26, 2026
linux-6.12 · Debian 12.15 (bookworm) 6.12.100-1~deb12u1 DEBIAN-CVE-2026-64346 Jul 26, 2026

Patch Radar data is free to use with attribution. Terms and how to credit it.

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.