Bug 2482009 (CVE-2026-45881) - CVE-2026-45881 kernel: soc: mediatek: svs: Fix memory leak in svs_enable_debug_write()
Summary: CVE-2026-45881 kernel: soc: mediatek: svs: Fix memory leak in svs_enable_debu...
Keywords:
Status: NEW
Alias: CVE-2026-45881
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-05-27 15:06 UTC by OSIDB Bzimport
Modified: 2026-05-28 03:20 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-05-27 15:06:50 UTC
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]


Note You need to log in before you can comment on or make changes to this bug.