Skip to main content

Linux Kernel CVE-2024-38628

HIGH
Race Condition (CWE-362)
2024-06-21 416baaa9-dc9f-4396-8d5f-8c081fb06d67
7.8
CVSS 3.1 · Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
View

Attack ChainAIDerived

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

  1. Recon
    Obtain local shell access
  2. Delivery
    Load or confirm u_audio gadget driver
  3. Exploit
    Configure USB audio gadget via configfs
  4. Install
    Trigger gadget unbind while concurrently accessing ALSA controls
  5. C2
    Win race window (use-after-free)
  6. Execute
    Corrupt kernel heap
  7. Impact
    Escalate 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.

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

AnalysisAIv2 – 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)
v1 Aug 04, 2026 - 11:46 cvss changed CVSS 7.8

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

Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67) 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 timing to win (AC:H); local low-privilege access needed to trigger gadget unbind; full memory impact if race is won.

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:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

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

Lifecycle Timeline

5
Analysis Updated
Aug 04, 2026 - 11:52 vuln.today
v2 - CVSS changed
Analysis Updated
Aug 04, 2026 - 11:46 vuln.today
v1 - CVSS changed
Severity Changed
Aug 04, 2026 - 11:23 NVD
MEDIUM HIGH
CVSS changed
Aug 04, 2026 - 11:23 NVD
5.5 (MEDIUM) 7.8 (HIGH)
CVE Published
Jun 21, 2024 - 11:15 cve.org
MEDIUM 5.5

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 93% exploitable
Prevalence
Ubiquitous
Linux kernel runs the majority of servers, embedded, and cloud infrastructure
Data Quality
3 sources
Confidence: Low

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

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).

Affected Products (CPE)CVE.org

cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*

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