CVE-2026-31522
Received Received - Intake

Memory Leak in Linux Kernel HID MagicMouse Component

Vulnerability report for CVE-2026-31522, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-04-22

Last updated on: 2026-04-28

Assigner: kernel.org

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-04-22
Last Modified
2026-04-28
Generated
2026-07-06
AI Q&A
2026-04-22
EPSS Evaluated
2026-07-05
NVD
EUVD

Affected Vendors & Products

Showing 9 associated CPEs
Vendor Product Version / Range
linux linux_kernel 7.0
linux linux_kernel 7.0
linux linux_kernel From 6.13 (inc) to 6.18.21 (exc)
linux linux_kernel From 6.19 (inc) to 6.19.11 (exc)
linux linux_kernel From 6.2 (inc) to 6.6.131 (exc)
linux linux_kernel From 6.7 (inc) to 6.12.80 (exc)
linux linux_kernel From 5.15.17 (inc) to 5.15.203 (exc)
linux linux_kernel From 5.16.3 (inc) to 5.17 (exc)
linux linux_kernel From 5.17 (inc) to 6.1.168 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-401 The product does not sufficiently track and release allocated memory after it has been used, making the memory unavailable for reallocation and reuse.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a memory leak in the Linux kernel's magicmouse driver, specifically in the function magicmouse_report_fixup().

The function was returning a newly allocated buffer using kmemdup(), but it never freed this allocated memory.

Additionally, the caller of this function does not take ownership of the returned pointer, which means the allocated memory remains unfreed, causing a memory leak.

Impact Analysis

The memory leak caused by this vulnerability can lead to increased memory usage over time in systems using the affected magicmouse driver.

If exploited or left unpatched, it could degrade system performance or potentially cause system instability due to exhaustion of available memory.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-31522. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart