CVE-2026-31522

HID: magicmouse: avoid memory leak in magicmouse_report_fixup()

No CVSS score yet EPSS 0.13%

Published 22 Apr 2026 Updated 5 Nov 2026 CNA: Linux

Check your servers for CVE-2026-31522

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-31522 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.13%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 2.62% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 5 Nov 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from e6ad399596bd234be4722022146e33e15c7e424d, before 579c4c9857acdc8380fa99803f355f878bd766cb
affected from 0b91b4e4dae63cd43871fc2012370b86ee588f91, before d84c21aabaab517b9aaf9bc1d785922cb9db2f31
affected from 0b91b4e4dae63cd43871fc2012370b86ee588f91, before 7edfe4346b052b708645d0acc0f186425766b785
affected from 0b91b4e4dae63cd43871fc2012370b86ee588f91, before 79e5dcc95d9abed6f8203cfd529f4ec71f0e505d
affected from 0b91b4e4dae63cd43871fc2012370b86ee588f91, before 136f605e246b4bfe7ac2259471d1ff814aed0084
affected from 0b91b4e4dae63cd43871fc2012370b86ee588f91, before fa95b0146358b49f9858139b67314591fd5871b0
affected from 0b91b4e4dae63cd43871fc2012370b86ee588f91, before 91e8c6e601bdc1ccdf886479b6513c01c7e51c2c
affected c394bd1bc8537e61593b6b6799e01495c7cf9008
affected from 5.15.17, before 5.15.203
affected from 5.16.3, before 5.17
Other versions: unaffected
Linux
affected 5.17
unaffected before 5.17
unaffected from 5.15.203 up to and including 5.15.*
unaffected from 6.1.168 up to and including 6.1.*
unaffected from 6.6.131 up to and including 6.6.*
unaffected from 6.12.80 up to and including 6.12.*
unaffected from 6.18.21 up to and including 6.18.*
unaffected from 6.19.11 up to and including 6.19.*
unaffected 7.0 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-31522 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-31522

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-31522
trivy image --scanners vuln IMAGE | grep CVE-2026-31522

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-31522 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.