CVE-2025-39935
Last modified
CVE-2025-39935 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. 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. EPSS estimates a 0.13% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 6.13, < 6.16.9 | — |
| Linux | Linux Kernel | 6.17 | Rc1 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2025-39935?
How severe is CVE-2025-39935?
How do I fix CVE-2025-39935?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-3993A vulnerability was found in TOTOLINK N150RT 3.4.0-B20190525…8.8
- CVE-2025-39930In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-39931In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-39932In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-39933In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-39934In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-39936In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-39937In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-39938In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-39939In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-3994A vulnerability was found in TOTOLINK N150RT 3.4.0-B20190525…3.4
- CVE-2025-39940In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2025-39935?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
