CVE-2025-38056
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-38056 is a use-after-free (UAF) vulnerability in the Linux kernel's ASoC (Advanced Sound Architecture) SOF (Sound Open Firmware) Intel HDA (High Definition Audio) module. The flaw is triggered when the snd_sof_intel_hda_generic module is reloaded: hda_generic_machine_select() allocates a new string via devm_kasprintf() and stores it back into the global variable snd_soc_acpi_intel_hda_machines, which then points to freed memory after module unload. Affected kernel versions include 6.12.x before 6.12.31, 6.13.x through 6.14.x before 6.14.9, and release candidates 6.15-rc1 through 6.15-rc7. It was published on June 18, 2025, and carries a CVSS v3.1 base score of 7.8 (High) (Feedly, Ubuntu Advisory).

Technical details

The root cause is classified as CWE-416 (Use After Free). In hda_generic_machine_select(), a new string with an -idisp suffix is allocated using devm_kasprintf() — a device-managed allocator — and written back into the global snd_soc_acpi_intel_hda_machines table. When the module is unloaded, the device-managed memory is freed, but the global pointer is not reset. Upon module reload, the kernel attempts to read the stale pointer, triggering a KFENCE-detected use-after-free in the string()vsnprintf()devm_kvasprintf() call chain within hda_machine_select.cold. The attack vector is local, requires low privileges, and no user interaction (Feedly). Patches are available at the upstream kernel stable tree (Kernel Patch 1, Kernel Patch 2, Kernel Patch 3).

Impact

Successful exploitation could allow a local attacker with low privileges to read sensitive kernel memory contents, potentially execute arbitrary code in kernel context, or cause system instability and kernel crashes (denial of service). The vulnerability affects the confidentiality, integrity, and availability of the system, as the freed memory region could be reallocated and overwritten before the stale pointer is dereferenced, enabling controlled memory corruption. Systems using Intel HDA audio hardware with the SOF firmware stack and subject to module reloading are at risk (Feedly).

Exploitability

There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation at this time (Feedly). The EPSS score is approximately 0.017%, reflecting a very low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires local access and the ability to trigger module unload/reload cycles, which limits the practical attack surface.

Mitigation and workarounds

The primary remediation is to update to a patched Linux kernel version: 6.12.31 or later for the 6.12 stable branch, and 6.14.9 or later for the 6.13/6.14 branch (Feedly). Ubuntu has issued security notices USN-7699-1 and USN-7699-2 addressing this vulnerability (Ubuntu Advisory, Ubuntu HWE Advisory). As a short-term workaround, avoid unnecessary reloading of the snd_sof_intel_hda_generic kernel module, and consider using kernel security modules such as SELinux or AppArmor to restrict module loading privileges for unprivileged users.

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-68450NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-core
NoYesAug 12, 2026
CVE-2026-68449NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug-devel
NoYesAug 12, 2026
CVE-2026-68448NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-debug-modules-extra
NoYesAug 12, 2026
CVE-2026-68447NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-modules
NoYesAug 12, 2026
CVE-2026-68446NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel.src
NoYesAug 12, 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