CVE-2026-45881 Details
Description
In the Linux kernel, the following vulnerability has been resolved: soc: mediatek: svs: Fix memory leak in svs_enable_debug_write() In svs_enable_debug_write(), the buf allocated by memdup_user_nul() 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]
A memory leak vulnerability has been identified in the Linux kernel's handling of Mediatek SVS (Smart Voltage Scaling) debug commands. The issue arises in the 'svs_enable_debug_write()' function, where a buffer allocated by 'memdup_user_nul()' is not properly freed if 'kstrtoint()' fails. This oversight can lead to unnecessary memory consumption. The vulnerability affects the Linux kernel stable tree.
The vulnerability has been addressed by modifying the 'svs_enable_debug_write()' function to use '__free(kfree)' for automatic memory management, eliminating the need for manual 'kfree()' calls. Users should apply the latest patches available in the Linux kernel stable tree to mitigate this issue.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/06195456c4e4de3826c4ca60eca941c472f991d0 | kernel.org | Patch |
| https://git.kernel.org/stable/c/0f6498077faa9cd89bb787bcc57063494a6f0601 | kernel.org | Patch |
| https://git.kernel.org/stable/c/47a3e372f7d68776adb749a27c0ec9058ff1b4fd | kernel.org | Patch |
| https://git.kernel.org/stable/c/6259094ee806fb813ca95894c65fb80e2ec98bf1 | kernel.org | Patch |
| https://git.kernel.org/stable/c/6bb10466e0884b4a68d4a1f3f4bb87eeb471c18a | kernel.org | Patch |
| https://git.kernel.org/stable/c/a58c97828911c0b6e25d6b556789da974003efda | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-401 | Missing Release of Memory after Effective Lifetime | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 6.0, < 6.1.165 >= 6.2, < 6.6.128 >= 6.7, < 6.12.75 >= 6.13, < 6.18.14 >= 6.19, < 6.19.4 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 25, 2026 | Initial Analysis | [email protected] |
| Jun 17, 2026 | CVE Modified | kernel.org |
| May 27, 2026 | New CVE Received | kernel.org |