CVE-2026-45881: soc: mediatek: svs: Fix memory leak in svs_enable_debug_write()

Published May 27, 2026
·
Updated

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

soc: mediatek: svs: Fix memory leak in svsenabledebugwrite()

In svsenabledebugwrite(), the buf allocated by memdupusernul() is leaked if kstrtoint() fails.

Fix this by using free(kfree) to automatically free buf, eliminating the need for explicit kfree() calls and preventing leaks.

[Angelo: Added missing cleanup.h inclusion]

Affected Software

6 affected components
Linux Linux kernel (soc: mediatek svs)
Linux Linux kernel>=6.0<6.1.165
Linux Linux kernel>=6.2<6.6.128
Linux Linux kernel>=6.7<6.12.75
Linux Linux kernel>=6.13<6.18.14
Linux Linux kernel>=6.19<6.19.4

Event History

May 27, 2026
CVE Published
via MITRE·12:16 PM
Data Sourced
via MITRE·12:16 PM
Description
Data Sourced
via NVD·02:17 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Who can trigger the memory leak?

Systems are exposed only where the Linux kernel includes the MediaTek SVS subsystem and a local user can reach the svs_enable_debug_write() path. The CVSS vector indicates local access and low privileges are required; no user interaction is needed.

2

What input condition causes the leak?

The leak occurs when svs_enable_debug_write() allocates a buffer with memdup_user_nul() and the subsequent kstrtoint() conversion fails. Repeated malformed input reaching that error path could consume memory and affect availability.

3

What fixes the issue?

The resolved change automatically frees the allocated buffer on the kstrtoint() failure path using __free(kfree), with the required cleanup.h inclusion. Applying a kernel version containing one of the referenced stable fixes addresses the issue.

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