What’s Vulnerable › Vulnerabilities
CVE-2026-45881: soc: mediatek: svs: Fix memory leak in svs_enable_debug_write()
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-05-27 · updated 2026-06-25
- Weakness: CWE-401
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 products
- Linux kernel: from 6.0 before 6.1.165; from 6.2 before 6.6.128; from 6.7 before 6.12.75; from 6.13 before 6.18.14; from 6.19 before 6.19.4 — fixed in 6.1.165, 6.12.75, 6.18.14, 6.19.4, 6.6.128
How to fix
Upgrade to a fixed version: Linux kernel 6.1.165, 6.12.75, 6.18.14, 6.19.4. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/06195456c4e4de3826c4ca60eca941c472f991d0
- https://git.kernel.org/stable/c/0f6498077faa9cd89bb787bcc57063494a6f0601
- https://git.kernel.org/stable/c/47a3e372f7d68776adb749a27c0ec9058ff1b4fd
- https://git.kernel.org/stable/c/6259094ee806fb813ca95894c65fb80e2ec98bf1
- https://git.kernel.org/stable/c/6bb10466e0884b4a68d4a1f3f4bb87eeb471c18a
- https://git.kernel.org/stable/c/a58c97828911c0b6e25d6b556789da974003efda
Get alerted when CVE-2026-45881 or the next vulnerability affects your stack