CVE-2026-45881

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

MEDIUM
5.5
CVSS Score
Published: May 27, 2026 at 12:16 PM UTC
Updated: June 27, 2026 at 11:41 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

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]

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

6.0 ≤ v < 6.1.1656.0 ≤ v < 6.12.756.0 ≤ v < 6.18.146.0 ≤ v < 6.19.46.0 ≤ v < 6.6.1286.0 ≤ v < 7.06.13 ≤ v < 6.18.146.19 ≤ v < 6.19.46.2 ≤ v < 6.6.1286.7 ≤ v < 6.12.7513f1bbcfb5822fcaacfc652017b57b79ffcacefa6.0
Vendor states this is fixed in 06195456c4e4de3826c4ca60eca941c472f991d0 (fixed)
Vendor states this is fixed in 0f6498077faa9cd89bb787bcc57063494a6f0601 (fixed)
Vendor states this is fixed in 47a3e372f7d68776adb749a27c0ec9058ff1b4fd (fixed)
Vendor states this is fixed in 6259094ee806fb813ca95894c65fb80e2ec98bf1 (fixed)
Vendor states this is fixed in 6bb10466e0884b4a68d4a1f3f4bb87eeb471c18a (fixed)
Vendor states this is fixed in a58c97828911c0b6e25d6b556789da974003efda (fixed)
Vendor states this is fixed in 6.0 (unaffected)
Vendor states this is fixed in 6.1.165 (unaffected)
Vendor states this is fixed in 6.12.75 (unaffected)
Vendor states this is fixed in 6.18.14 (unaffected)
Vendor states this is fixed in 6.19.4 (unaffected)
Vendor states this is fixed in 6.6.128 (unaffected)
Vendor states this is fixed in 7.0 (unaffected)

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-401

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card