Linux Kernel
CVE-2024-38605
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconIdentify kernel with CONFIG_SND=y and modular ALSA driver
-
DeliveryObtain local low-privilege shell access
-
ExploitOpen sound device via /dev/snd/* to skip module_get()
-
InstallTrigger concurrent driver module unload (rmmod)
-
C2Race NULL card->module past reference check
-
ExecuteAccess freed kernel memory
-
ImpactKernel 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – 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)
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
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
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.
Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).
CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Lifecycle Timeline
4DescriptionCVE.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
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.
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
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.
NVD
CVE.org
EPSS
GitHub PoC
Exploit-DB