CVE-2025-38330
NoneCVSS
—
EPSS
0.2%
Published
Jul 10, 2025
CISA due date
—
Cloudanix analysis
A flaw in Linux kernel testing tools could let memory outside the expected area be read while running automated checks, which has now been corrected in newer kernel releases.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- Theoretical
- Impact
- Other
- Component
- OS kernel
- Class
- Memory Corruption
- Remediation
- Patch
- Effort
- Low
- Patch risk
- None
What it actually does
Out-of-bounds memory read in KUnit test code for cs_dsp_ctl_cache_init_multiple_offsets() caused by inconsistent length_bytes value (4 bytes allocated, 8 bytes used) leading to KASAN-detected access beyond buffer bounds.
Why it matters to the business
Test failures and potential false positives during kernel development or CI pipelines on affected Linux distributions; no production runtime impact but delays validation of downstream kernel builds used by many systems.
How an attack unfolds
An attacker with access to run KUnit tests on a vulnerable kernel build can trigger the test function, causing the length override to exceed the allocated buffer and read adjacent memory during mock coefficient cache initialization.
How to fix it
Update to fixed kernel versions: linux-lts (Alpaquita:stream) 6.6.58-r0 or 6.12.41-r0, linux-lts (Alpaquita:23) 6.1.89-r0, or mainline commit e3dafc64b90546eb769f33333afabd9e3e915757. Rebuild and re-run KUnit tests after upgrade.
How to confirm the fix worked
Rebuild kernel with KUnit enabled, execute cs_dsp_ctl_cache tests under KASAN, and confirm absence of out-of-bounds reports and that length_bytes remains consistently 4 bytes throughout the test.
Typical attack path
- Compile and boot a kernel containing the affected cs_dsp KUnit test
- Execute the ctl cache initialization test with mock_coeff_template
- Trigger length_bytes override from 4 to 8 bytes
- Perform out-of-bounds read during register value allocation
How to detect it
Review kernel build logs and KUnit test output for KASAN reports mentioning cs_dsp_ctl_cache_init_multiple_offsets or mock_coeff_template length mismatch; no runtime indicators exist in production kernels.
What your security team should do
- Prioritize kernel package updates on all build and test systems within standard maintenance windows
- Add KASAN-enabled KUnit runs to CI pipelines to catch similar test regressions early
- Monitor EPSS trend and re-evaluate if exploit maturity increases
The record
In the Linux kernel, the following vulnerability has been resolved: firmware: cs_dsp: Fix OOB memory read access in KUnit test (ctl cache) KASAN reported out of bounds access - cs_dsp_ctl_cache_init_multiple_offsets(). The code uses mock_coeff_template.length_bytes (4 bytes) for register value allocations. But later, this length is set to 8 bytes which causes test code failures. As fix, just remove the lenght override, keeping the original value 4 for all operations.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | linux | 0 | No fix |
| Debian:12 | linux | 0 | No fix |
| Debian:13 | linux | 0 | No fix |
| Linux | Kernel | 6.14.0 | 6.15.4 |
Related vulnerabilities
- CVE-2025-39885 In the Linux kernel, the following vulnerability has been resolved: ocfs2: fix recursive… Also affects linux
- CVE-2025-39883 In the Linux kernel, the following vulnerability has been resolved: mm/memory-failure… Also affects linux
- CVE-2025-39876 In the Linux kernel, the following vulnerability has been resolved: net: fec: Fix… Also affects linux
- CVE-2025-39869 In the Linux kernel, the following vulnerability has been resolved: dmaengine: ti: edma… Also affects linux
- CVE-2025-39873 In the Linux kernel, the following vulnerability has been resolved: can: xilinx_can… Also affects linux
- CVE-2025-39863 In the Linux kernel, the following vulnerability has been resolved: wifi: brcmfmac: fix… Also affects linux
- CVE-2025-39865 In the Linux kernel, the following vulnerability has been resolved: tee: fix NULL pointer… Also affects linux
- CVE-2025-39866 In the Linux kernel, the following vulnerability has been resolved: fs: writeback: fix… Also affects linux