CVE-2025-38070
NoneCVSS
—
EPSS
0.2%
Published
Jun 18, 2025
CISA due date
—
Cloudanix analysis
A missing safety check in Linux audio driver code could let the system crash when memory runs low.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- Theoretical
- Impact
- Denial Of Service
- Component
- OS kernel
- Class
- Memory Corruption
- Remediation
- Patch
- Effort
- Low
- Patch risk
- Low
What it actually does
Missing NULL pointer checks after kzalloc and devm_kzalloc calls in sma1307_setting_loaded() allow potential dereference of NULL pointers in the ASoC audio driver.
Why it matters to the business
Kernel instability or crashes in systems using the affected audio codec driver can interrupt operations and require restarts, with higher urgency for devices on older kernels given the 496 days since disclosure.
How an attack unfolds
An attacker triggers memory allocation pressure or failure paths in the sma1307 driver to reach the unchecked pointers, causing NULL dereference during device initialization or configuration loading.
How to fix it
Apply the upstream fix commit f8434b8ba437d3f6cbcd9ffe8405bd16ed28fc5c or later; update affected packages such as qemu to 2.1.3-2.7.mga5 or equivalent stable kernel releases containing the NULL checks and cleanup logic.
How to confirm the fix worked
Verify the presence of the added pointer checks and kzalloc/devm_kzalloc NULL handling in sma1307_setting_loaded() by inspecting source or confirming the applied commit; test driver load under memory pressure to ensure no crashes occur.
Typical attack path
- Identify a target system with the vulnerable sma1307 ASoC driver loaded
- Induce allocation failures via resource exhaustion or crafted audio device events
- Invoke sma1307_setting_loaded() to dereference unvalidated pointers
- Trigger kernel oops or panic for denial of service
How to detect it
Review kernel logs for oops or panic entries referencing sma1307_setting_loaded or NULL dereferences during audio device probe; correlate with allocation failure events in dmesg or ftrace.
What your security team should do
- Prioritize kernel updates on audio-enabled systems within the next patching cycle
- Monitor EPSS trend and re-evaluate if exploitation maturity increases
- Audit custom kernels for backported fixes matching the referenced commit
The record
In the Linux kernel, the following vulnerability has been resolved: ASoC: sma1307: Add NULL check in sma1307_setting_loaded() All varibale allocated by kzalloc and devm_kzalloc could be NULL. Multiple pointer checks and their cleanup are added. This issue is found by our static analysis tool
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.13.0 | 6.14.9 |
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