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

Summary

CVECVE-2026-45881
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-05-27 14:17:01 UTC
Updated2026-05-27 14:48:31 UTC
DescriptionIn 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

SourceVendorProductVersionPlatforms
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

ReferenceSourceLinkTags
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
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report