Skip to main content
← All vulnerabilities
CVE-2026-31522

HID: magicmouse: avoid memory leak in magicmouse_report_fixup()

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.15.203, 5.17
None on Exploit-DB, Metasploit or GitHub

Summary

In the Linux kernel, the following vulnerability has been resolved: HID: magicmouse: avoid memory leak in magicmouse_report_fixup() The magicmouse_report_fixup() function was returning a newly kmemdup()-allocated buffer, but never freeing it. The caller of report_fixup() does not take ownership of the returned pointer, but it is permitted to return a sub-portion of the input rdesc, whose lifetime is managed by the caller.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • Linux Linux

    From 5.15.17 · fixed in 5.15.203; From 5.16.3 · fixed in 5.17

  • Linux Linux

    5.17

References 7

git.kernel.org