{"id":"CVE-2026-45881","summary":"soc: mediatek: svs: Fix memory leak in svs_enable_debug_write()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nsoc: mediatek: svs: Fix memory leak in svs_enable_debug_write()\n\nIn svs_enable_debug_write(), the buf allocated by memdup_user_nul()\nis leaked if kstrtoint() fails.\n\nFix this by using __free(kfree) to automatically free buf, eliminating\nthe need for explicit kfree() calls and preventing leaks.\n\n[Angelo: Added missing cleanup.h inclusion]","modified":"2026-06-27T11:55:23.315444520Z","published":"2026-05-27T12:16:53.677Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45881.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/06195456c4e4de3826c4ca60eca941c472f991d0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/0f6498077faa9cd89bb787bcc57063494a6f0601"},{"type":"WEB","url":"https://git.kernel.org/stable/c/47a3e372f7d68776adb749a27c0ec9058ff1b4fd"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6259094ee806fb813ca95894c65fb80e2ec98bf1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6bb10466e0884b4a68d4a1f3f4bb87eeb471c18a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a58c97828911c0b6e25d6b556789da974003efda"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45881.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45881"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"13f1bbcfb5822fcaacfc652017b57b79ffcacefa"},{"fixed":"47a3e372f7d68776adb749a27c0ec9058ff1b4fd"},{"fixed":"06195456c4e4de3826c4ca60eca941c472f991d0"},{"fixed":"a58c97828911c0b6e25d6b556789da974003efda"},{"fixed":"0f6498077faa9cd89bb787bcc57063494a6f0601"},{"fixed":"6bb10466e0884b4a68d4a1f3f4bb87eeb471c18a"},{"fixed":"6259094ee806fb813ca95894c65fb80e2ec98bf1"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-45881.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.0.0"},{"fixed":"6.1.165"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.128"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.75"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.14"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"6.19.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-45881.json"}}],"schema_version":"1.7.5"}