Linux Kernel
CVE-2024-38628
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain local shell access
-
DeliveryLoad or confirm u_audio gadget driver
-
ExploitConfigure USB audio gadget via configfs
-
InstallTrigger gadget unbind while concurrently accessing ALSA controls
-
C2Win race window (use-after-free)
-
ExecuteCorrupt kernel heap
-
ImpactEscalate to root
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V15 - Secure Coding and Architecture Concurrency control, locking
MITRE ATT&CK
1 technique across 1 tactic: 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: (1) a Linux system with the u_audio USB gadget driver loaded (CONFIG_USB_GADGET and USB audio gadget enabled at build time - non-default in most server/desktop distributions but common on embedded platforms); (2) local access with at least low-privilege (PR:L) to trigger gadget unbind operations, typically through configfs or a USB gadget management interface; (3) concurrent access to ALSA audio controls during the unbind window to win the race. Limiting factors: this is not exploitable on systems that do not expose USB gadget audio functionality; server and cloud VM deployments without USB OTG hardware are effectively unexposed; winning a race condition requires precise timing, making reliable exploitation more difficult than a straightforward memory corruption bug. |
| Impact | CVSS 7.8 (AV:L/AC:L/PR:L) signals a high-severity local privilege escalation candidate, and C:H/I:H/A:H means a successful exploit achieves full kernel memory read/write/crash. However, several signals temper this: EPSS 0.17% (7th percentile) indicates the security community sees very low near-term exploitation probability; KEV status is absent; and no public proof-of-concept has been identified. The real-world attack surface is further constrained - exploitation requires local access, the ability to manipulate USB gadget bind/unbind cycles (typically requiring hardware or privileged device configuration), and successful timing of the race window. The official CVSS rates AC:L, but for a race condition exploit, AC:H is arguably more accurate; this discrepancy should be noted when triaging. In practice, this vulnerability is most relevant to embedded Linux systems, single-board computers, or developer machines that expose USB gadget audio - not typical server deployments. |
| Exploit ScenarioDerived | A local user with low privileges on an embedded Linux device (such as a Raspberry Pi or USB OTG-capable SBC) configured as a USB audio gadget triggers rapid bind/unbind cycles of the gadget device while concurrently accessing ALSA mixer controls, winning the race window between free and pointer dereference. No public proof-of-concept has been identified at time of analysis. Successful exploitation of the resulting use-after-free could corrupt kernel heap structures, potentially enabling local privilege escalation to root. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Aug 04, 2026
Use-after-free via race condition in the Linux kernel's USB gadget audio driver (u_audio) allows a local low-privileged user to corrupt kernel memory during gadget unbind operations. The flaw exists because audio control pointers were accessed concurrently without adequate locking after the underlying memory was freed during device unbind, a classic CWE-362 time-of-check/time-of-use pattern. EPSS is low (0.17%, 7th percentile) and CISA KEV does not list this CVE, but the CVSS C:H/I:H/A:H rating reflects potential for local privilege escalation via memory corruption.
Earlier versions of this analysis (1)
Use-after-free race condition in the Linux kernel's USB audio gadget subsystem (u_audio) allows a local attacker with low privileges to trigger memory corruption during gadget unbind, potentially resulting in kernel memory disclosure, integrity violations, or system crash. The flaw exists because audio control pointers could be dereferenced after the underlying memory was freed during the concurrent unbind sequence, before proper locking was applied. No public exploit code has been identified and EPSS probability sits at 0.17%, though the high CVSS score reflects the severity of kernel-level impact if exploited. Patches are available across multiple stable kernel branches.
RemediationAI
Update to a Linux kernel version that includes one of the four upstream stable patches: https://git.kernel.org/stable/c/1b739388aa3f8dfb63a9fca777e6dfa6912d0464, https://git.kernel.org/stable/c/453d3fa9266e53f85377b911c19b9a4563fa88c0, https://git.kernel.org/stable/c/89e66809684485590ea0b32c3178e42cba36ac09, or https://git.kernel.org/stable/c/bea73b58ab67fe581037ad9cdb93c2557590c068. Distribution maintainers (Debian, Ubuntu, RHEL, SUSE, etc.) should be consulted for stable-release kernel updates incorporating these commits. As a compensating control where patching is not immediately possible, disabling the USB gadget audio subsystem via kernel module blacklisting (blacklist u_audio in /etc/modprobe.d/) eliminates the vulnerable code path with the trade-off of losing USB audio gadget functionality. Restricting unprivileged access to gadget configuration (e.g., via configfs permissions) reduces the exposure surface but does not eliminate the race for privileged users.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The affected component is the u_audio USB gadget driver within the Linux kernel (cpe:2.3:o:linux:linux_kernel). USB gadget drivers implement device-side USB functionality, and u_audio enables a Linux system to present itself as a USB audio device. ALSA mixer controls are registered at gadget bind time; during unbind, the driver frees associated memory. The race occurs when another kernel thread accesses control pointers after free but before the gadget is fully unbound - a CWE-362 (Concurrent Execution Using Shared Resource with Improper Synchronization) root cause. The upstream fix substitutes control IDs (safe integer handles) for raw pointers, and enforces access through properly-locked paths, eliminating the dangling-pointer window.
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
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Race condition requires precise timing to win (AC:H); local low-privilege access needed to trigger gadget unbind; full memory impact if race is won.
Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).
CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Lifecycle Timeline
5DescriptionCVE.org
In the Linux kernel, the following vulnerability has been resolved:
usb: gadget: u_audio: Fix race condition use of controls after free during gadget unbind.
Hang on to the control IDs instead of pointers since those are correctly handled with locks.
Executive ViewAI
CVE-2024-38628 in the Linux kernel USB gadget audio driver enables local privilege escalation, creating a path for low-privileged users to gain unauthorized administrative access to affected systems. This vulnerability primarily affects multi-user systems and shared environments; while real-world exploitation likelihood is low, the potential impact to business systems justifies prompt remediation.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Race conditions occur when multiple concurrent requests exploit the brief time gap between checking a condition and acting upon it (TOCTOU - Time of Check, Time of Use).
NVD
CVE.org
EPSS
GitHub PoC
Exploit-DB