CVE-2025-40338
Linux Kernel vulnerability analysis and mitigation

Overview

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

Technical details

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

Impact

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

Mitigation and workarounds

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

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-64557NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-selftests-internal
NoNoJul 29, 2026
CVE-2026-64556NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-devel
NoNoJul 29, 2026
CVE-2026-64555NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-fde-6.14
NoNoJul 27, 2026
CVE-2026-64554NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-gcp-6.14
NoYesJul 27, 2026
CVE-2026-64553NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-64k-debug-modules-internal
NoYesJul 27, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management