Menu

Star on GitHub · 3.2k

CVE-2025-38056

7.8 · HIGH

In the Linux kernel, the following vulnerability has been resolved: ASoC: SOF: Intel: hda: Fix UAF when reloading module hda_generic_machine_select() appends -idisp to the tplg filename by alloca…

Published Jun 18, 2025CWE-416EPSS 0.19%

Overview

CVE-2025-38056 is a high-severity vulnerability. It was published on June 18, 2025 and has a CVSS 3.1 base score of 7.8 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical description

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

ASoC: SOF: Intel: hda: Fix UAF when reloading module

hda_generic_machine_select() appends -idisp to the tplg filename by

allocating a new string with devm_kasprintf(), then stores the string

right back into the global variable snd_soc_acpi_intel_hda_machines.

When the module is unloaded, this memory is freed, resulting in a global

variable pointing to freed memory. Reloading the module then triggers

a use-after-free:

BUG: KFENCE: use-after-free read in string+0x48/0xe0

Use-after-free read at 0x00000000967e0109 (in kfence-#99):

string+0x48/0xe0

vsnprintf+0x329/0x6e0

devm_kvasprintf+0x54/0xb0

devm_kasprintf+0x58/0x80

hda_machine_select.cold+0x198/0x17a2 [snd_sof_intel_hda_generic]

sof_probe_work+0x7f/0x600 [snd_sof]

process_one_work+0x17b/0x330

worker_thread+0x2ce/0x3f0

kthread+0xcf/0x100

ret_from_fork+0x31/0x50

ret_from_fork_asm+0x1a/0x30

kfence-#99: 0x00000000198a940f-0x00000000ace47d9d, size=64, cache

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2025-38056?

CVE-2025-38056 is a high-severity vulnerability. It was published on June 18, 2025 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2025-38056?

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2025-38056?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2025-38056?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2025-38056 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related HIGH CVEs from 2025

View all