Skip to main content

Linux Kernel CVE-2024-38388

HIGH
Memory Leak (CWE-401)
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
    Gain local low-privilege user access
  2. Delivery
    Confirm Cirrus Logic CS DSP audio hardware present
  3. Exploit
    Trigger amp driver module unload via rmmod or hotplug
  4. Install
    ALSA controls remain registered with stale private_data pointer
  5. C2
    Interact with orphaned controls via ALSA userspace API
  6. Execute
    Dereference freed kernel memory
  7. Impact
    Achieve kernel memory corruption enabling privilege escalation or crash

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Resource cleanup, leak prevention
Exploitation Conditions

Exploitation requires all of the following: (1) local access with at least low-privilege user permissions on the target system (PR:L per CVSS vector); (2) the target system must be physically equipped with Cirrus Logic CS DSP audio hardware (e.g., CS35L41 amplifier), as the vulnerable code path is only present when this driver is loaded - systems without this hardware are unaffected regardless of kernel version; (3) the amplifier driver module must be unloaded or removed (e.g., via explicit rmmod, hardware hotplug removal, or driver rebind) while ALSA controls remain registered; (4) the attacker must then interact with the now-orphaned ALSA controls before the freed memory is sanitized or reallocated. Remote exploitation is not possible - attack vector is strictly local (AV:L). No network-facing interface is involved in the vulnerable code path. The hardware prerequisite is the primary real-world limiting factor beyond the local access requirement.

Impact

The CVSS 7.8 (High) vector AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H reflects a scenario where a local attacker successfully leverages the stale pointer to achieve kernel memory corruption, potentially yielding privilege escalation or a system crash. EPSS at 0.22% (12th percentile) signals very low real-world exploitation probability, consistent with the absence of a CISA KEV listing and no known public exploit code - these signals converge to indicate threat actor interest has not materialized. The primary limiting factor is hardware specificity: exploitation requires a system equipped with a Cirrus Logic CS DSP amplifier (e.g., CS35L41), found in select laptops and embedded audio platforms, narrowing the realistic attack surface considerably relative to the kernel's ubiquitous deployment footprint. CVSS AC:L is justified in that - once the hardware prerequisite is satisfied - triggering the bug does not require complex timing or a race condition; unloading the driver deterministically orphans the controls. Overall, this is a genuine high-severity flaw on affected hardware, but with very low real-world risk priority for most organizations given the hardware dependency and negligible exploitation interest to date.

Exploit ScenarioDerived

A local user with low privileges on a Linux laptop or workstation equipped with a Cirrus Logic CS35L41 amplifier chip unloads or induces unloading of the HDA CS DSP amp driver module (e.g., via rmmod or a hardware hotplug event). The ALSA sound controls remain registered with the kernel soundcard while their backing private_data memory is freed. The attacker then reads or writes these orphaned controls through standard ALSA userspace interfaces (/dev/snd, alsamixer, or direct ioctl), dereferencing the stale pointer and triggering a use-after-free that can produce a kernel oops, heap corruption, or - with careful heap grooming - arbitrary code execution in kernel context. No public exploit code is referenced in available intelligence.

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

Stale pointer dereference in the Linux kernel's ALSA HDA Cirrus Logic DSP (CS DSP) audio driver allows a local low-privileged attacker to trigger kernel memory corruption by accessing orphaned ALSA sound controls after the amp driver is unloaded. The flaw originates in hda_cs_dsp_control_remove() failing to call snd_ctl_remove(), leaving ALSA controls registered with the soundcard while their backing memory is freed - exposing a dangling private_data pointer accessible via standard ALSA interfaces. No public exploit code has been identified and EPSS scores this at 0.22% (12th percentile), though the CVSS 7.8 score accurately reflects the potential for full kernel compromise if exploitation succeeds on hardware-eligible systems.

Earlier versions of this analysis (1)
v1 Aug 04, 2026 - 11:49 cvss changed CVSS 7.8

Use-after-free and memory leak in the Linux kernel ALSA HDA CS DSP audio control subsystem allows a local low-privileged attacker to trigger segfaults or exploit stale pointer dereferences. The original hda_cs_dsp_control_remove() function freed the internal tracking structure for CS DSP audio controls without removing the ALSA controls themselves from the soundcard, leaving dangling references accessible to subsequent callers. With CVSS 7.8 (AV:L/AC:L/PR:L) and EPSS at just 0.22%, this is a credible kernel memory corruption path on affected hardware but carries low real-world exploitation probability; no public exploit exists and it is not listed in CISA KEV.

RemediationAI

Apply the upstream kernel stable-branch patches confirmed at https://git.kernel.org/stable/c/172811e3a557d8681a5e2d0f871dc04a2d17eb13, https://git.kernel.org/stable/c/191dc1b2ff0fb35e7aff15a53224837637df8bff, https://git.kernel.org/stable/c/3291486af5636540980ea55bae985f3eaa5b0740, and https://git.kernel.org/stable/c/6e359be4975006ff72818e79dad8fe48293f2eb2. Exact patched kernel release version numbers per distribution are not independently confirmed from available data - monitor your Linux distributor's security advisories (Ubuntu USN, Red Hat RHSA, SUSE SA, Debian DSA) for packaged kernel updates incorporating these commits. As a compensating control where patching is delayed, administrators can prevent dynamic unloading of the CS DSP HDA driver module by adding it to /etc/modprobe.d/ with 'install snd-hda-codec-cs8409 /bin/true' or using systemd module configuration to block rmmod - this eliminates the primary trigger path (driver unload while controls persist) at the cost of preventing dynamic audio driver management and requiring a reboot to change audio configuration. This workaround does not eliminate the underlying memory management flaw.

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 vulnerability resides in the Advanced Linux Sound Architecture (ALSA) High Definition Audio (HDA) subsystem, specifically in the Cirrus Logic CS DSP control driver (sound/pci/hda/cs_dsp_ctl.c). The function hda_cs_dsp_control_remove() was responsible for cleaning up CS DSP controls when the amplifier driver was removed or unloaded. CWE-401 (Missing Release of Memory after Effective Lifetime) is the root cause classification, but the practical impact extends beyond a simple memory leak: the function freed the internal tracking data structure without calling snd_ctl_remove() to unregister the ALSA control from the soundcard. This left the ALSA control still registered and userspace-accessible, with its kcontrol->private_data pointer referencing freed memory. The fix introduces the control private_free callback - a standard ALSA lifecycle hook that ensures cleanup runs regardless of how the control is eventually destroyed, atomically coupling data lifetime to control lifetime and eliminating the window between driver unload and stale control access.

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.8 HIGH

Local access with low privileges required to trigger driver unload and stale control access; successful kernel memory corruption yields full confidentiality, integrity, and availability impact.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/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:57 vuln.today
v2 - CVSS changed
Analysis Updated
Aug 04, 2026 - 11:49 vuln.today
v1 - CVSS changed
Severity Changed
Aug 04, 2026 - 11:23 NVD
LOW HIGH
CVSS changed
Aug 04, 2026 - 11:23 NVD
3.3 (LOW) 7.8 (HIGH)
CVE Published
Jun 21, 2024 - 11:15 cve.org
LOW 3.3

DescriptionCVE.org

In the Linux kernel, the following vulnerability has been resolved:

ALSA: hda/cs_dsp_ctl: Use private_free for control cleanup

Use the control private_free callback to free the associated data block. This ensures that the memory won't leak, whatever way the control gets destroyed.

The original implementation didn't actually remove the ALSA controls in hda_cs_dsp_control_remove(). It only freed the internal tracking structure. This meant it was possible to remove/unload the amp driver while leaving its ALSA controls still present in the soundcard. Obviously attempting to access them could cause segfaults or at least dereferencing stale pointers.

Executive ViewAI

Why It Matters

A critical memory corruption vulnerability in the Linux kernel's Cirrus Logic audio driver (CVE-2024-38388) creates kernel compromise risk for organizations operating multi-user or shared Linux systems. No public exploit code has been identified at time of analysis, with exploitation likelihood rated minimal (EPSS 0.22%). Affected organizations should prioritize applying available kernel updates within the next week to eliminate this attack vector.

Business Impact: High
Compensating Controls

Patch available per vendor advisory.

Threat Intelligence Overview

EPSS Score
0.2%
Top 88% exploitable
Prevalence
Ubiquitous
Linux kernel deployed across virtually all Linux environments globally
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.

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