
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-40338 is a use-after-free vulnerability in the Linux kernel's ASoC (Audio System on Chip) Intel AVS (Audio Voice Speech) driver. The flaw arises from sharing a name pointer directly between components, which can lead to use-after-free errors when components are torn down. It was published on December 9, 2025, and affects Linux kernel versions from the initial commit (1da177e4c3f41524e886b7f1b8a0c1fc7321cac2) up to the patched commits. The EPSS score is approximately 0.018% (very low), and no CVSS base score has been formally assigned (Feedly, EUVD).
The root cause is a use-after-free condition (CWE-416) in the ASoC: Intel: avs driver within the Linux kernel. When the name pointer is shared directly between audio components rather than duplicated, tearing down one component can free the memory backing the name string while another component still holds a reference to it. The fix involves duplicating the name string for each component and updating the order of operations to align with behavior introduced in commit cee28113db17 ("ASoC: dmaengine_pcm: Allow passing component name via config"), which changed when the framework overrides component->name. Patches were applied in stable commits 128bf29c992988f8b4f3829227339908fde5ec86 (targeting 6.17.8) and 4dee5c1cc439b0d5ef87f741518268ad6a95b23d (targeting 6.18) (Feedly, EUVD).
Successful exploitation of this use-after-free vulnerability could allow a local attacker or a malicious audio subsystem interaction to cause kernel memory corruption, potentially leading to a system crash (denial of service) or, in more severe scenarios, privilege escalation or arbitrary code execution in kernel context. The vulnerability is confined to systems using Intel AVS audio hardware with the affected kernel driver loaded. The practical impact is primarily stability-related (kernel panic or undefined behavior), with exploitation for privilege escalation being theoretically possible but highly complex (Feedly).
The vulnerability is fixed in Linux kernel versions 6.17.8 and 6.18 via upstream stable commits 128bf29c992988f8b4f3829227339908fde5ec86 and 4dee5c1cc439b0d5ef87f741518268ad6a95b23d respectively. Users should update to a patched kernel version as soon as their distribution makes it available. As a temporary workaround on systems where Intel AVS audio is not required, unloading or blacklisting the snd_soc_avs kernel module can eliminate exposure. Multiple Nessus and Qualys detection plugins are available to identify vulnerable systems (Feedly, EUVD).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."