CVE-2025-40338 ASoC: Intel: avs: Do not share the name pointer between components

Not scored Published Updated

A use-after-free vulnerability in the Linux kernel's Intel ASoC driver allows local attackers to potentially execute code or cause a system crash.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-40338?

CVE-2025-40338 is an use after free vulnerability in Linux, published on 9 Dec 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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

ASoC: Intel: avs: Do not share the name pointer between components

By sharing 'name' directly, tearing down components may lead to use-after-free errors. Duplicate the name to avoid that.

At the same time, update the order of operations - since commit cee28113db17 ("ASoC: dmaengine_pcm: Allow passing component name via config") the framework does not override component->name if set before invoking the initializer.

Which versions are affected by CVE-2025-40338?

How do I fix CVE-2025-40338?

Apply the vendor's patch.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2025-40338 being exploited?

There is no known exploitation of CVE-2025-40338 in the wild and no public exploit code.

Sources

Also known as BELL-CVE-2025-40338, DEBIAN-CVE-2025-40338, GHSA-w9v5-xxq6-jh2w, ROOT-OS-DEBIAN-12-CVE-2025-40338, ROOT-OS-DEBIAN-13-CVE-2025-40338, ROOT-OS-UBUNTU-2204-CVE-2025-40338 and 2 more.

Is CVE-2025-40338 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free