CVE-2026-45881

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

Published May 27, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
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]

Analysis

AI-generated

Technical impact

The vulnerability is a memory leak in the Mediatek SVS driver for the Linux kernel. In svs_enable_debug_write(), a buffer allocated with memdup_user_nul is not freed when kstrtoint() fails, causing an unreleased memory allocation. This results in a repeated leak that can eventually exhaust kernel memory and destabilize the system, exemplifying both a memory leak (CWE-401) and a missing release of a resource after effective lifetime (CWE-772).

Affected Systems

Any Linux kernel configuration that includes the Mediatek SVS module is affected. No specific kernel version range is listed, so all builds containing this code prior to the reported fix are potentially vulnerable.

Risk and Exploitability

The EPSS score is < 1%, and the vulnerability is not listed in CISA KEV, indicating limited public exploitation data. The CVSS score is 5.5. The attack vector is inferred to be local, as svs_enable_debug_write() is a debug interface that typically requires root or elevated privileges. A privileged attacker could repeatedly trigger the function, causing progressive memory exhaustion and a denial of service. While no public exploit exists, the potential for a serious local DoS warrants immediate attention.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the upstream patch that replaces explicit kfree() with automatic cleanup using __free(kfree) in the svs_enable_debug_write() function
  • If the patch is not yet integrated in your distribution, backport the commit from the kernel repository or upgrade to a kernel release that includes the fix
  • Rebuild the kernel or module so that the SVS driver includes the updated implementation

Generated by OpenCVE AI on August 12, 2026 at 02:29 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8492-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8492-2 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8497-1 Linux kernel (Low Latency) vulnerabilities
Ubuntu USN Ubuntu USN USN-8498-1 Linux kernel (NVIDIA Tegra) vulnerabilities
Ubuntu USN Ubuntu USN USN-8499-1 Linux kernel (Xilinx) vulnerabilities
Ubuntu USN Ubuntu USN USN-8492-3 Linux kernel (Raspberry Pi Real-time) vulnerabilities
Ubuntu USN Ubuntu USN USN-8492-4 Linux kernel (Raspberry Pi) vulnerabilities
Ubuntu USN Ubuntu USN USN-8492-5 Linux kernel (FIPS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8606-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8607-1 Linux kernel (Azure CVM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8609-1 Linux kernel (Azure CVM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8619-1 Linux kernel (HWE) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-401
Type Values Removed Values Added
Weaknesses CWE-401
Type Values Removed Values Added
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]
Title soc: mediatek: svs: Fix memory leak in svs_enable_debug_write()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-401

    Missing Release of Memory after Effective Lifetime

  • CWE-772

    Missing Release of Resource after Effective Lifetime

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
May 27, 2026, 12:16 PM
Reserved
May 13, 2026, 3:03 PM
Status
Analyzed
Published
May 27, 2026, 2:17 PM
Modified
Jun 25, 2026, 9:12 PM
Severity
Public date
May 27, 2026, 12:00 AM