CVE-2026-45881

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

published May 27, 2026

CVSS
—
EPSS
0%
Percentile
5.1
In the wild
Unconfirmed
What it is

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]

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00162 · 5.1th percentile
Published
2026-05-27T12:16Z
EPSS history
Timeline
  • 27 MAY 12:16Z
    soc: mediatek: svs: Fix memory leak in svs_enable_debug_write()
    cvelistv5