CVE-2026-80783
Received Received - Intake

Stack Overflow in Linux Kernel HID MagicMouse Driver

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

Publication date: 2026-09-04

Last updated on: 2026-09-04

Assigner: kernel.org

Description

In the Linux kernel, the following vulnerability has been resolved: HID: magicmouse: prevent unbounded recursion in magicmouse_raw_event() magicmouse_raw_event() handles DOUBLE_REPORT_ID (0xf7) packets, which pack two touch reports into one, by splitting the packet and calling itself on each half. The only guard against runaway recursion is a "size < 1" check, which stops zero-sized calls but does not bound the recursion depth. A malicious HID device that matches this driver can send a report starting with DOUBLE_REPORT_ID and filled with the sequence [0xf7, 0x00]. Each level consumes two bytes and recurses on the remainder, so an incoming report of up to HID_MAX_BUFFER_SIZE (16 KiB) drives roughly 8000 nested calls. That easily exhausts the 16 KiB kernel stack, leading to a stack overflow: a panic with CONFIG_VMAP_STACK, or memory corruption without it. A double report only ever wraps two normal reports; it is never legitimately nested. Refuse to re-enter the DOUBLE_REPORT_ID case from a recursive call so the recursion depth is bounded to two, while all valid packets keep being parsed exactly as before.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-04
Last Modified
2026-09-04
Generated
2026-09-04
AI Q&A
2026-09-04
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
linux kernel *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a stack overflow vulnerability in the Linux kernel's HID driver for Apple Magic Mouse devices. The magicmouse_raw_event() function processes special packets but lacks proper bounds checking for recursive calls. A malicious device can send crafted packets triggering excessive recursion, consuming kernel stack memory and causing crashes or memory corruption.

Detection Guidance

This vulnerability is specific to the Linux kernel's HID magicmouse driver and requires local system access to detect. Check kernel logs for stack overflow errors or system crashes. Use commands like 'dmesg | grep -i stack' or 'journalctl -k | grep -i stack' to identify stack overflow events.

Impact Analysis

If exploited, this flaw could crash your system by exhausting kernel stack memory, leading to a kernel panic or potential memory corruption. An attacker would need physical or network access to a vulnerable device connected to your system to trigger this issue.

Compliance Impact

This vulnerability causes a kernel stack overflow due to unbounded recursion in the HID driver, leading to system crashes or memory corruption. It does not directly impact data privacy or security controls required by GDPR or HIPAA, but it could indirectly affect compliance by causing system instability or data loss during an attack.

Mitigation Strategies

Update the Linux kernel to a patched version that includes the fix for CVE-2026-80783. If immediate patching is not possible, disable the magicmouse driver by blacklisting it or avoid using HID devices that may trigger this issue until the update is applied.

Chat Assistant

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

EPSS Chart