Skip to main content

Linux Kernel CVE-2024-38605

HIGH
NULL Pointer Dereference (CWE-476)
2024-06-19 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
    Identify kernel with CONFIG_SND=y and modular ALSA driver
  2. Delivery
    Obtain local low-privilege shell access
  3. Exploit
    Open sound device via /dev/snd/* to skip module_get()
  4. Install
    Trigger concurrent driver module unload (rmmod)
  5. C2
    Race NULL card->module past reference check
  6. Execute
    Access freed kernel memory
  7. Impact
    Kernel panic or kernel-context code execution

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Null pointer safety, defensive checks
MITRE ATT&CK

1 technique across 1 tactic: Impact

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

Exploitation Conditions

Requires a kernel built with CONFIG_SND=y (ALSA core as built-in) AND at least one sound driver compiled as a loadable module (e.g., CONFIG_SND_USB_AUDIO=m). Attacker must have local authenticated access with at minimum a low-privilege user account (PR:L per CVSS), sufficient to open a sound device file (typically membership in the 'audio' group or equivalent). Exploitation further requires winning a race condition between the device-open path and a module unload, which demands either module unload capability (typically requiring root or CAP_SYS_MODULE) or the ability to induce an unload through another mechanism. This race window is narrow. Systems where CONFIG_SND=m, or where all drivers are built-in, are not affected. Mainstream distribution kernels (Debian, Ubuntu, RHEL) typically build CONFIG_SND=m, substantially limiting the real exposure surface to custom-built or embedded kernels.

Impact

CVSS 7.8 (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) reflects local low-privilege access with high impact potential, but the AC:L assignment warrants scrutiny: successful exploitation requires both a specific non-default kernel build configuration (CONFIG_SND=y with modular drivers) AND winning a race condition between device open and module unload, which in practice elevates attack complexity beyond what AC:L implies. The EPSS score of 1.09% (61st percentile) is consistent with a niche kernel configuration bug - notable to researchers but unlikely to see broad automated exploitation. No CISA KEV listing and no known POC confirm this is not a prioritized active threat. Real-world impact skews heavily toward DoS (kernel panic) rather than RCE; achieving controlled kernel code execution via this race requires precise heap feng shui and is not trivially weaponizable. Defense teams on mainstream distributions (Debian, Ubuntu, RHEL, Fedora) that typically build CONFIG_SND as a module are largely unaffected; the risk surface is narrower custom or embedded builds. This is a genuine kernel integrity bug, but the threat model does not support treating it equivalently to a typical 7.8 local privilege escalation.

Exploit ScenarioDerived

A local user with a standard unprivileged account on a system with a mixed ALSA build (built-in core, modular driver such as snd-usb-audio) opens a sound device under /dev/snd/. In a separate thread or terminal, the attacker (or a cooperating privileged process) executes rmmod on the sound driver module. Because card->module is NULL, module_get() was never called at open time, so the kernel permits the unload to proceed. The driver's code and data pages are freed while the open file descriptor is still active, and any subsequent ioctl or read/write on the device dereferences now-freed kernel memory, causing a kernel panic or, under favorable memory layout conditions, redirecting execution to attacker-controlled data.

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

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

Alert me

AnalysisAIv2 – Aug 04, 2026

NULL module pointer assignment in the Linux kernel ALSA sound core creates a reference-counting gap that enables a race condition between device open/close operations and module unloading. When the ALSA sound core is built into the kernel (CONFIG_SND=y) but a sound driver such as CONFIG_SND_USB_AUDIO is compiled as a loadable module, a misplaced #ifdef MODULE guard causes card->module to remain NULL, bypassing module reference tracking entirely. A local attacker with low privileges can exploit the resulting race - opening a sound device then triggering or racing a module unload - to potentially cause a kernel crash (DoS) or, in the best-case scenario for an attacker, achieve arbitrary code execution in kernel context. No public exploit identified at time of analysis; EPSS of 1.09% (61st percentile) reflects moderate research interest with low absolute exploitation probability, and the vulnerability is not listed in CISA KEV.

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

NULL module pointer assignment in the Linux kernel ALSA core exposes systems to a race condition between device access and module unloading when the ALSA core (CONFIG_SND) is compiled built-in while a sound driver such as CONFIG_SND_USB_AUDIO is compiled as a loadable module. Because the card->module assignment was incorrectly gated behind '#ifdef MODULE', non-NULL module pointers passed by drivers were silently discarded, leaving card->module as NULL and disabling reference counting at device open/close. This race can result in kernel code executing after module removal, enabling potential privilege escalation or kernel panic on affected configurations; no public exploit has been identified at time of analysis and EPSS sits at 1.09% (61st percentile), reflecting limited observed exploitation interest.

RemediationAI

Apply the upstream kernel stable patches available at https://git.kernel.org/stable/c/39381fe7394e5eafac76e7e9367e7351138a29c1 and the six accompanying stable-tree commits (6b8374ee2cab, c935e72139e6, d7ff29a429b5, e00747672573, e644036a3e2b, e7e0ca200772). Distribution users should apply the next kernel security update from their vendor once these commits are integrated. As a compensating control, reconfigure the kernel to build CONFIG_SND=m (as a module) rather than built-in, which ensures the #ifdef MODULE guard evaluates correctly and card->module is assigned; note this requires a kernel rebuild and may affect boot-time sound availability if initramfs is not updated. Alternatively, ensuring all ALSA drivers in use are also built-in (=y) eliminates the mixed-linkage condition, though this is impractical for general-purpose systems. No known performance or stability side effects of the patch itself - it is a single-line assignment moved out of a conditional block.

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 ALSA (Advanced Linux Sound Architecture) subsystem manages sound card lifecycle in the Linux kernel via snd_card objects. During snd_card creation, the caller passes its own module pointer so the kernel can perform reference counting (module_get/module_put) on device open/close, preventing module unload while the device is in use. Commit 81033c6b584b introduced a WARN_ON() for NULL module pointers wrapped in #ifdef MODULE, which is defined only when the sound core itself is built as a module (CONFIG_SND=m). When CONFIG_SND=y (built-in) and a driver like CONFIG_SND_USB_AUDIO=m is a module, the guard silently swallows the non-NULL module pointer passed by the driver, leaving card->module as NULL. CWE-476 (NULL Pointer Dereference) is the listed root cause class, but the actual exploitable condition is a classic TOCTOU race: without module_get() at open time, the kernel cannot prevent the module from being freed while its code is actively executing, yielding a use-after-free condition in kernel space. CPE cpe:2.3:o:linux:linux_kernel covers all affected branches, with fixes distributed across multiple stable trees.

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 timing requirement and non-default mixed build configuration justify AC:H over NVD's AC:L; PR:L and AV:L are correct for local low-privilege access.

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

4
Analysis Updated
Aug 04, 2026 - 12:01 vuln.today
v2 - CVSS changed
Analysis Updated
Aug 04, 2026 - 11:54 vuln.today
v1 - CVSS changed
CVSS changed
Aug 04, 2026 - 11:23 NVD
8.8 (HIGH) 7.8 (HIGH)
CVE Published
Jun 19, 2024 - 14:15 cve.org
HIGH 8.8

DescriptionCVE.org

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

ALSA: core: Fix NULL module pointer assignment at card init

The commit 81033c6b584b ("ALSA: core: Warn on empty module") introduced a WARN_ON() for a NULL module pointer passed at snd_card object creation, and it also wraps the code around it with '#ifdef MODULE'. This works in most cases, but the devils are always in details. "MODULE" is defined when the target code (i.e. the sound core) is built as a module; but this doesn't mean that the caller is also built-in or not. Namely, when only the sound core is built-in (CONFIG_SND=y) while the driver is a module (CONFIG_SND_USB_AUDIO=m), the passed module pointer is ignored even if it's non-NULL, and card->module remains as NULL. This would result in the missing module reference up/down at the device open/close, leading to a race with the code execution after the module removal.

For addressing the bug, move the assignment of card->module again out of ifdef. The WARN_ON() is still wrapped with ifdef because the module can be really NULL when all sound drivers are built-in.

Note that we keep 'ifdef MODULE' for WARN_ON(), otherwise it would lead to a false-positive NULL module check. Admittedly it won't catch perfectly, i.e. no check is performed when CONFIG_SND=y. But, it's no real problem as it's only for debugging, and the condition is pretty rare.

Executive ViewAI

Why It Matters

A high-severity race condition in Linux kernel sound drivers enables local attackers to crash systems or escalate privileges to kernel level. Organizations running Linux servers, workstations, or containers with affected kernel versions face potential service disruption and unauthorized access. Immediate kernel patching is required to eliminate this risk.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
1.1%
Top 39% exploitable
Prevalence
Ubiquitous
Linux kernel runs the majority of servers, cloud VMs, and embedded devices 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 1.1%
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

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

Attack Technique

A null pointer dereference occurs when a program attempts to access memory through a pointer that has been set to NULL (address 0x0).

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

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

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:*:*:*:*:*:*:*:*
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