CVE-2025-39935: ASoC: codec: sma1307: Fix memory corruption in sma1307_setting_loaded()

Published Oct 4, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

ASoC: codec: sma1307: Fix memory corruption in sma1307settingloaded()

The sma1307->set.headersize 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.headersize 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 devmkmallocarray() to allocate the memory instead.

Affected Software

8 affected components
Linux Kernel
Linux Linux kernel>=6.13<6.16.9
Linux Linux kernel=6.17-rc1
Linux Linux kernel=6.17-rc2
Linux Linux kernel=6.17-rc3
Linux Linux kernel=6.17-rc4
Linux Linux kernel=6.17-rc5
Linux Linux kernel=6.17-rc6

Event History

Oct 4, 2025
CVE Published
via MITRE·07:30 AM
Data Sourced
via MITRE·07:30 AM
DescriptionSeverity
Data Sourced
via NVD·08:15 AM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-39935?

CVE-2025-39935 is classified as a memory corruption vulnerability in the Linux kernel.

2

How do I fix CVE-2025-39935?

To fix CVE-2025-39935, update the Linux kernel to the latest stable version that includes the patch.

3

Which versions of the Linux kernel are affected by CVE-2025-39935?

CVE-2025-39935 affects certain versions of the Linux kernel prior to the patch implementation.

4

What impact does CVE-2025-39935 have on system security?

CVE-2025-39935 can lead to potential memory corruption, which may allow for arbitrary code execution in affected systems.

5

Is CVE-2025-39935 being actively exploited?

As of the latest reports, there is no indication that CVE-2025-39935 is actively being exploited in the wild.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203