# CVE-2026-31522: HID: magicmouse: avoid memory leak in magicmouse_report_fixup()

Status: published. Published: 2026-04-22. Updated: 2026-11-05.

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.

## Remediation

No remediation reported in collected sources

## Affected products and versions

- Linux / Linux: ≥ e6ad399596bd234be4722022146e33e15c7e424d; < 579c4c9857acdc8380fa99803f355f878bd766cb (affected, git); ≥ 0b91b4e4dae63cd43871fc2012370b86ee588f91; < d84c21aabaab517b9aaf9bc1d785922cb9db2f31 (affected, git); ≥ 0b91b4e4dae63cd43871fc2012370b86ee588f91; < 7edfe4346b052b708645d0acc0f186425766b785 (affected, git); ≥ 0b91b4e4dae63cd43871fc2012370b86ee588f91; < 79e5dcc95d9abed6f8203cfd529f4ec71f0e505d (affected, git); ≥ 0b91b4e4dae63cd43871fc2012370b86ee588f91; < 136f605e246b4bfe7ac2259471d1ff814aed0084 (affected, git); ≥ 0b91b4e4dae63cd43871fc2012370b86ee588f91; < fa95b0146358b49f9858139b67314591fd5871b0 (affected, git); ≥ 0b91b4e4dae63cd43871fc2012370b86ee588f91; < 91e8c6e601bdc1ccdf886479b6513c01c7e51c2c (affected, git); c394bd1bc8537e61593b6b6799e01495c7cf9008 (affected, git); ≥ 5.15.17; < 5.15.203 (affected, semver); ≥ 5.16.3; < 5.17 (affected, semver). Source: CNA: Linux
- Linux / Linux: 5.17 (affected); ≥ 0; < 5.17 (unaffected, semver); ≥ 5.15.203; ≤ 5.15.* (unaffected, semver); ≥ 6.1.168; ≤ 6.1.* (unaffected, semver); ≥ 6.6.131; ≤ 6.6.* (unaffected, semver); ≥ 6.12.80; ≤ 6.12.* (unaffected, semver); ≥ 6.18.21; ≤ 6.18.* (unaffected, semver); ≥ 6.19.11; ≤ 6.19.* (unaffected, semver); ≥ 7.0; ≤ * (unaffected, original_commit_for_fix). Source: CNA: Linux

## Severity and prioritization

- CISA KEV: No listing in collected sources

- EPSS: 0.12% as of 2026-11-05; percentile 2.04%

- SSVC: exploitation none; automatable no; technical impact partial; source ADP: CISA-ADP

- Weaknesses: Not reported

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://git.kernel.org/stable/c/579c4c9857acdc8380fa99803f355f878bd766cb (CNA: Linux)

- https://git.kernel.org/stable/c/d84c21aabaab517b9aaf9bc1d785922cb9db2f31 (CNA: Linux)

- https://git.kernel.org/stable/c/7edfe4346b052b708645d0acc0f186425766b785 (CNA: Linux)

- https://git.kernel.org/stable/c/79e5dcc95d9abed6f8203cfd529f4ec71f0e505d (CNA: Linux)

- https://git.kernel.org/stable/c/136f605e246b4bfe7ac2259471d1ff814aed0084 (CNA: Linux)

- https://git.kernel.org/stable/c/fa95b0146358b49f9858139b67314591fd5871b0 (CNA: Linux)

- https://git.kernel.org/stable/c/91e8c6e601bdc1ccdf886479b6513c01c7e51c2c (CNA: Linux)

## Provenance

- CNA: Linux: https://www.cve.org/CVERecord?id=CVE-2026-31522; retrieved 2026-11-05; source updated 2026-11-05

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-31522; retrieved 2026-11-05; source updated Not reported

Revision: 1f4a5271a6d42a3afc3ee8fd6f23ca4ef0cb8c946939aa8ef7a1b6633683cc63

Canonical: https://y2.dev/cve/CVE-2026-31522

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.