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.
Published: 2026-04-22
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service via Memory Leak
Action: Apply Patch
AI Analysis

Impact

The vulnerability arises when the magicmouse_report_fixup() function in the Linux kernel allocates a buffer with kmemdup() but never frees it. As a result, each invocation that triggers the function creates a memory leak. Repeated use of the magicmouse HID device can accumulate unreclaimed memory until the system exhausts available memory resources, potentially causing system slowdown or crashes—an indirect denial‑of‑service condition. The underlying weakness is a classic memory‑leak defect.

Affected Systems

All Linux kernel users are potentially affected, since the vendor list identifies Linux kernels broadly and no specific version range is noted. The issue exists in any kernel build prior to the inclusion of the patch that addresses the leak in magicmouse_report_fixup().

Risk and Exploitability

The risk is elevated because each use of the magicmouse HID can increase memory consumption. The EPSS score of < 1% indicates a very low probability of exploitation, and the vulnerability is not listed in the CISA KEV catalog. Affected systems that allow continuous HID magicmouse activity—such as kiosk machines or routers exposing USB ports—should be promptly updated. The CVSS score is 5.5.

Generated by OpenCVE AI on April 29, 2026 at 03:20 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that includes the patch resolving the magicmouse_report_fixup memory leak, ensuring the commit that deletes the allocation is present.
  • If an immediate kernel upgrade is not possible, consider disabling the magicmouse HID driver in the kernel configuration or preventing physical connection of magicmouse devices to reduce repeat allocation cycles.
  • Monitor system memory usage for abnormal growth patterns that could indicate the leak has not been fully mitigated.

Generated by OpenCVE AI on April 29, 2026 at 03:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4561-1 linux-6.1 security update
Debian DSA Debian DSA DSA-6238-1 linux security update
Debian DSA Debian DSA DSA-6243-1 linux security update
History

Wed, 29 Apr 2026 02:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-399

Tue, 28 Apr 2026 18:30:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*

Mon, 27 Apr 2026 19:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-399
CWE-401

Thu, 23 Apr 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-772
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Low


Wed, 22 Apr 2026 14:15:00 +0000

Type Values Removed Values Added
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.
Title HID: magicmouse: avoid memory leak in magicmouse_report_fixup()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-05-23T16:05:16.510Z

Reserved: 2026-03-09T15:48:24.110Z

Link: CVE-2026-31522

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Analyzed

Published: 2026-04-22T14:16:52.100

Modified: 2026-04-28T18:21:16.513

Link: CVE-2026-31522

cve-icon Redhat

Severity : Low

Publid Date: 2026-04-22T00:00:00Z

Links: CVE-2026-31522 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-04-29T03:30:15Z

Weaknesses