soc: mediatek: svs: Fix memory leak in svs_enable_debug_write()
Summary
| CVE | CVE-2026-45881 |
|---|---|
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-05-27 14:17:01 UTC |
| Updated | 2026-05-27 14:48:31 UTC |
| 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] |
Risk And Classification
EPSS: 0.000240000 probability, percentile 0.073320000 (date 2026-06-01)
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Linux | Linux | affected 13f1bbcfb5822fcaacfc652017b57b79ffcacefa 47a3e372f7d68776adb749a27c0ec9058ff1b4fd git | Not specified |
| CNA | Linux | Linux | affected 13f1bbcfb5822fcaacfc652017b57b79ffcacefa 06195456c4e4de3826c4ca60eca941c472f991d0 git | Not specified |
| CNA | Linux | Linux | affected 13f1bbcfb5822fcaacfc652017b57b79ffcacefa a58c97828911c0b6e25d6b556789da974003efda git | Not specified |
| CNA | Linux | Linux | affected 13f1bbcfb5822fcaacfc652017b57b79ffcacefa 0f6498077faa9cd89bb787bcc57063494a6f0601 git | Not specified |
| CNA | Linux | Linux | affected 13f1bbcfb5822fcaacfc652017b57b79ffcacefa 6bb10466e0884b4a68d4a1f3f4bb87eeb471c18a git | Not specified |
| CNA | Linux | Linux | affected 13f1bbcfb5822fcaacfc652017b57b79ffcacefa 6259094ee806fb813ca95894c65fb80e2ec98bf1 git | Not specified |
| CNA | Linux | Linux | affected 6.0 | Not specified |
| CNA | Linux | Linux | unaffected 6.0 semver | Not specified |
| CNA | Linux | Linux | unaffected 6.1.165 6.1.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.6.128 6.6.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.12.75 6.12.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.18.14 6.18.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.19.4 6.19.* semver | Not specified |
| CNA | Linux | Linux | unaffected 7.0 * original_commit_for_fix | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| git.kernel.org/stable/c/47a3e372f7d68776adb749a27c0ec9058ff1b4fd | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/6259094ee806fb813ca95894c65fb80e2ec98bf1 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/0f6498077faa9cd89bb787bcc57063494a6f0601 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/06195456c4e4de3826c4ca60eca941c472f991d0 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/6bb10466e0884b4a68d4a1f3f4bb87eeb471c18a | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/a58c97828911c0b6e25d6b556789da974003efda | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.