CVE-2025-38340 firmware: cs_dsp: Fix OOB memory read access in KUnit test
An out-of-bounds memory read in the Linux kernel's cs_dsp firmware KUnit test allows potential information disclosure.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-38340?
CVE-2025-38340 is a high-severity memory corruption vulnerability in Linux kernel, published on 10 Jul 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:
firmware: cs_dsp: Fix OOB memory read access in KUnit test
KASAN reported out of bounds access - cs_dsp_mock_bin_add_name_or_info(), because the source string length was rounded up to the allocation size.
Weakness: CWE-125
Which versions are affected by CVE-2025-38340?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2025-38340?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2025-38340 being exploited?
There is no known exploitation of CVE-2025-38340 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2025-38340, GHSA-7jpq-74mw-mrg3, ROOT-OS-DEBIAN-12-CVE-2025-38340, ROOT-OS-UBUNTU-2204-CVE-2025-38340, ROOT-OS-UBUNTU-2404-CVE-2025-38340, UBUNTU-CVE-2025-38340.