CVE-2026-45881

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

State
Published
Severity
Not scored
Published
May 27, 2026
Updated
May 27, 2026
Reserved
May 13, 2026

Read the record on cve.org

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]

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 13f1bbcfb5822fcaacfc652017b57b79ffcacefa to before 47a3e372f7d68776adb749a27c0ec9058ff1b4fdAffected
  • 13f1bbcfb5822fcaacfc652017b57b79ffcacefa to before 06195456c4e4de3826c4ca60eca941c472f991d0Affected
  • 13f1bbcfb5822fcaacfc652017b57b79ffcacefa to before a58c97828911c0b6e25d6b556789da974003efdaAffected
  • 13f1bbcfb5822fcaacfc652017b57b79ffcacefa to before 0f6498077faa9cd89bb787bcc57063494a6f0601Affected
  • 13f1bbcfb5822fcaacfc652017b57b79ffcacefa to before 6bb10466e0884b4a68d4a1f3f4bb87eeb471c18aAffected
  • 13f1bbcfb5822fcaacfc652017b57b79ffcacefa to before 6259094ee806fb813ca95894c65fb80e2ec98bf1Affected
LinuxLinux
  • 6.0Affected
  • before 6.0Not affected
  • 6.1.165 through 6.1.*Not affected
  • 6.6.128 through 6.6.*Not affected
  • 6.12.75 through 6.12.*Not affected
  • 6.18.14 through 6.18.*Not affected
  • 6.19.4 through 6.19.*Not affected
  • 7.0 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.