CVE-2025-39935
ASoC: codec: sma1307: Fix memory corruption in sma1307_setting_loaded()
Mitigation
- Upgrade Linux to 78338108b5a856dc98223a335f147846a8a18c51 or later.
Who should check
- Anyone running Linux >= 576c57e6b4c1d734bcb7cc33dde9a99a9383b520, < cd59ca8f75dbb42a67fcae975c766114644e36c4; >= 576c57e6b4c1d734bcb7cc33dde9a99a9383b520, < 78338108b5a856dc98223a335f147846a8a18c51
- Anyone running Linux 6.13
Vulnerability facts
- Affected
- Linux >= 576c57e6b4c1d734bcb7cc33dde9a99a9383b520, < cd59ca8f75dbb42a67fcae975c766114644e36c4; >= 576c57e6b4c1d734bcb7cc33dde9a99a9383b520, < 78338108b5a856dc98223a335f147846a8a18c51; Linux 6.13
- Fixed in
- Linux 78338108b5a856dc98223a335f147846a8a18c51
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.22% chance of exploitation in 30 days (percentile 8, 2026-11-26)
- CWE
- CWE-787
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: ASoC: codec: sma1307: Fix memory corruption in sma1307_setting_loaded() The sma1307->set.header_size is how many integers are in the header (there are 8 of them) but instead of allocating space of 8 integers we allocate 8 bytes. This leads to memory corruption when we copy data it on the next line: memcpy(sma1307->set.header, data, sma1307->set.header_size * sizeof(int)); Also since we're immediately copying over the memory in ->set.header, there is no need to zero it in the allocator. Use devm_kmalloc_array() to allocate the memory instead.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-39935. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-39935.md Affected: Linux >= 576c57e6b4c1d734bcb7cc33dde9a99a9383b520, < cd59ca8f75dbb42a67fcae975c766114644e36c4; >= 576c57e6b4c1d734bcb7cc33dde9a99a9383b520, < 78338108b5a856dc98223a335f147846a8a18c51; Linux 6.13 Fixed in: Linux 78338108b5a856dc98223a335f147846a8a18c51 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
FAQ
Is CVE-2025-39935 being exploited?
There is no confirmed exploitation: CVE-2025-39935 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-39935?
High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2025-39935?
Linux >= 576c57e6b4c1d734bcb7cc33dde9a99a9383b520, < cd59ca8f75dbb42a67fcae975c766114644e36c4; >= 576c57e6b4c1d734bcb7cc33dde9a99a9383b520, < 78338108b5a856dc98223a335f147846a8a18c51; Linux 6.13.
Is there a fix for CVE-2025-39935?
Yes. Fixed in Linux 78338108b5a856dc98223a335f147846a8a18c51. Upgrade Linux to 78338108b5a856dc98223a335f147846a8a18c51 or later.
How do I check if I'm affected by CVE-2025-39935?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.