Skip to main content

Linux Kernel CVE-2026-64346

| EUVDEUVD-2026-48890 HIGH
Use After Free (CWE-416)
2026-07-25 Linux GHSA-8737-2w76-fpfm
7.8
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Gain local access with configfs write capability
  2. Delivery
    Trigger DWC3 mode-switch event (USB OTG hardware)
  3. Exploit
    Simultaneously write to UDC configfs attribute
  4. Install
    Race: usb_del_gadget frees and zeros udc structure
  5. C2
    gadget_match_driver dereferences freed pointer
  6. Execute
    NULL deref crash or heap UAF
  7. Impact
    Kernel privilege escalation

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires all of the following: (1) a local account on an unpatched Linux kernel system - remote exploitation is not possible given AV:L; (2) write access to the configfs USB gadget UDC attribute, which typically requires root or CAP_SYS_ADMIN, though relaxed configfs permissions in some embedded or container environments may lower this bar; (3) the system must use a DWC3-based USB controller capable of mode switching (USB OTG hardware), and the dwc3 and usb-gadget kernel modules must be loaded and active; (4) the race window between usb_del_gadget (triggered by __dwc3_set_mode workqueue) and the concurrent configfs write must be hit - a timing-dependent condition that is not reliably triggerable on demand. Systems running Linux purely as USB hosts (no gadget/device mode), or with USB gadget modules unloaded, are not affected.

Impact

The vendor-assigned CVSS 7.8 (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) captures impact accurately but likely understates attack complexity - the race condition requires precise concurrent timing between a DWC3 mode-switch workqueue event and a configfs write, which argues for AC:H rather than AC:L. EPSS at 0.21% (12th percentile) corroborates that exploitation is not currently observed at scale; the vulnerability is absent from CISA KEV and no POC has been identified. The race window is narrow and hardware-specific (DWC3 controllers undergoing mode-switch), which further constrains practical exploitation beyond simple local access. Even a mid-sized municipal IT team in olsztyn managing a fleet of Linux-based embedded gateways or OTG-capable devices should treat this as medium-priority patching - urgent for USB gadget deployments but largely irrelevant for server or cloud workloads where USB device mode is disabled. SSVC signals: exploitation status is none, automatable is no (race + hardware dependency), technical impact is total - resulting in a lower operational urgency than the CVSS headline suggests for most environments.

Exploit ScenarioDerived

A local user with write access to the configfs USB gadget interface initiates a UDC store operation while the kernel simultaneously processes a DWC3 mode-switch event via the events_freezable workqueue. The mode-switch path calls dwc3_gadget_exit and usb_del_gadget, freeing and zeroing the udc structure, while gadget_match_driver dereferences the now-NULL udc->dev.driver_data, triggering a kernel NULL pointer dereference crash or enabling further heap manipulation for privilege escalation.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 03, 2026

Use-after-free in the Linux kernel USB gadget UDC subsystem exposes systems with DWC3-based USB controllers to a race condition between usb_del_gadget() and gadget_match_driver(), enabling a NULL pointer dereference that can crash the kernel or enable privilege escalation on unpatched systems. The flaw affects all major Linux stable branches from 5.15.x through 7.1.x prior to the patched releases, and is particularly relevant for embedded Linux, Android-based devices, and IoT hardware that use USB gadget/device mode. No public exploit has been identified at time of analysis, and EPSS remains at 0.21% (12th percentile), reflecting current low exploitation interest.

RemediationAI

The primary remediation is upgrading to a patched Linux kernel version for the relevant stable branch: 5.15.212, 6.1.178, 6.6.145, 6.12.96, 6.18.39, or 7.1.4 (or later), with upstream stable commits available at git.kernel.org/stable/c/ as referenced in the CVE. For systems where an immediate kernel upgrade is operationally infeasible, a targeted compensating control is to restrict write access to the configfs USB gadget UDC attribute (typically under /sys/kernel/config/usb_gadget/) to prevent untrusted users from triggering the gadget_match_driver path; however, this does not eliminate the kernel-internal race if the system's own privileged processes exercise the path. Alternatively, unloading or blacklisting the dwc3 and usb-gadget kernel modules on systems that do not require USB device mode eliminates the vulnerable code path entirely, at the cost of disabling all USB OTG/peripheral functionality on the affected hardware.

Affected VersionsENISA

Linux 0 <6.6.145
Linux 0 <7.1.4
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <50eeb8e8a4f389efc91b93cff14a683e714ec194
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <7a5214dae906d9f58e07bc4995e8181ee74439f4
Linux 0 <6.1.178
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <54fa390aae393eb130f307a85562e3001cc39a52
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <67e511d2989eb1c8c588b599ce2fcc6bb8e6f7ea
Linux patch: 6.12.96
Linux patch: 6.6.145
Linux patch: 6.18.39
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <d026f71df141c9b064ff32a78af5391a31ef75c2
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <b52476a83d9e12df00765359d728a875b128bef1
Linux 0 <6.12.96
Linux 0 <6.18.39
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <f845852a5a8914277031f47d8de0f350fef52405
Linux patch: 7.1.4
Linux patch: 5.15.212
Linux patch: 6.1.178
Linux patch: 7.2-rc3
Linux 0 <5.15.212

Affected Packages

euvd linux fix: 5.15.212, 6.1.178, 6.6.145, 6.12.96, 6.18.39, 7.1.4

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability resides in drivers/usb/gadget/udc/core.c within the Linux kernel's USB Device Controller driver core. CWE-416 (Use-After-Free) is the root cause: the udc and gadget structures have decoupled lifecycles, meaning usb_del_gadget() can free the udc structure via a workqueue path (__dwc3_set_mode → dwc3_gadget_exit) while gadget_match_driver() - invoked concurrently through a configfs write to the UDC attribute - still dereferences the now-freed and zeroed memory. The resulting NULL pointer is passed to __pi_strcmp(), producing the captured NULL pointer dereference at virtual address 0x0. The fix introduces usb_gadget_release() with reference counting on the udc structure so it cannot be freed until the gadget is fully released. The affected CPE is cpe:2.3:a:linux:linux:*:*:*:*:*:*:*:* spanning from the initial kernel commit (1da177e4c3f41524e886b7f1b8a0c1fc7321cac2) through all stable branches prior to the patch series.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.0 HIGH

Race condition requires precise concurrent timing and DWC3 hardware, warranting AC:H; PR:L reflects configfs write access needed for the triggering path.

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Red Hat 5.5 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

4
CVSS changed
Sep 03, 2026 - 16:07 NVD
7.8 (HIGH)
Patch available
Jul 25, 2026 - 11:18 EUVD
CVE Published
Jul 25, 2026 - 08:50 cve.org
UNKNOWN (no severity yet)
CVE Published
Jul 25, 2026 - 08:50 nvd
HIGH 7.8

DescriptionNVD

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.

Executive ViewAI

Why It Matters

A use-after-free race condition in the Linux kernel USB gadget subsystem (versions 5.15.x-7.1.x) can cause kernel crashes or enable privilege escalation on systems with DWC3 USB controllers, affecting millions of embedded Linux, Android, and IoT devices. No public exploit has been identified at time of analysis, and current exploitation interest remains low (EPSS 0.2%), but the widespread deployment of vulnerable kernels across critical embedded and mobile systems creates significant availability and compromise risk. Organizations must prioritize patching to prevent potential system takeover or service disruption.

Business Impact: High
Compensating Controls

Patch available per vendor advisory. Interim mitigations if patching is delayed: disable USB gadget mode functionality where operationally feasible; restrict physical USB access to trusted personnel; isolate affected devices on segmented networks to limit privilege escalation impact; monitor system logs for kernel panics or unusual USB activity.

Threat Intelligence Overview

EPSS Score
0.2%
Top 88% exploitable
Prevalence
Ubiquitous
Linux kernel underlies the vast majority of servers, containers, embedded, and mobile devices
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
Container suse/sl-micro/6.0/base-os-container:2.1.3-7.208 Container suse/sl-micro/6.1/base-os-container:2.2.1-5.184 Affected
Container suse/sl-micro/6.0/kvm-os-container:2.1.3-6.218 Container suse/sl-micro/6.1/kvm-os-container:2.2.1-5.186 Affected
Container suse/sl-micro/6.0/rt-os-container:2.1.3-7.237 Container suse/sl-micro/6.1/rt-os-container:2.2.1-5.180 Affected
SUSE Linux Enterprise Real Time 15 SP7 SUSE Real Time Module 15 SP7 Fixed
SUSE Linux Micro 6.0 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy