Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-31522

CVE-2026-31522: Linux Kernel Information Disclosure Flaw

CVE-2026-31522 is an information disclosure vulnerability in the Linux kernel's HID magicmouse driver causing memory leaks. This article covers the technical details, affected versions, impact, and mitigation strategies.

Published: April 23, 2026

CVE-2026-31522 Overview

CVE-2026-31522 is a memory leak vulnerability in the Linux kernel's HID (Human Interface Device) subsystem, specifically affecting the Magic Mouse driver. The magicmouse_report_fixup() function was allocating memory using kmemdup() to create a new buffer but never freeing it, resulting in a kernel memory leak that could potentially lead to system resource exhaustion over time.

Critical Impact

Systems with Magic Mouse devices connected may experience gradual memory depletion as the kernel driver leaks memory with each report fixup operation, potentially leading to system instability or denial of service conditions.

Affected Products

  • Linux kernel (multiple stable versions affected)
  • Systems using the HID Magic Mouse driver (hid-magicmouse module)
  • Apple Magic Mouse devices connected to Linux systems

Discovery Timeline

  • 2026-04-22 - CVE CVE-2026-31522 published to NVD
  • 2026-04-23 - Last updated in NVD database

Technical Details for CVE-2026-31522

Vulnerability Analysis

The vulnerability exists in the magicmouse_report_fixup() function within the Linux kernel's HID Magic Mouse driver. This function is responsible for modifying HID report descriptors to properly handle Magic Mouse input. The function was incorrectly using kmemdup() to allocate a new buffer for the modified report descriptor.

The core issue is a misunderstanding of the memory ownership model in the HID subsystem. The caller of report_fixup() does not take ownership of the returned pointer. The function is permitted to return a sub-portion of the input rdesc, whose lifetime is managed by the caller. By allocating new memory and returning it, the function created an orphaned allocation that could never be freed, as the caller assumed no ownership responsibility.

Each time the Magic Mouse driver processes a report fixup, memory is allocated but never released back to the kernel memory pool. On systems with connected Magic Mouse devices, this can lead to cumulative memory consumption over time.

Root Cause

The root cause is improper memory management in the magicmouse_report_fixup() function. The function used kmemdup() to create a copy of the report descriptor buffer and returned this newly allocated buffer. However, the HID subsystem's report_fixup callback contract does not transfer memory ownership to the caller, meaning no component was responsible for freeing the allocated memory.

The correct approach is to either modify the input buffer in-place or return a pointer to a static/pre-allocated buffer rather than dynamically allocating memory that will never be freed.

Attack Vector

This vulnerability has an unknown attack vector classification. While memory leak vulnerabilities typically require local access and device interaction, the practical exploitation scenario involves:

The memory leak is triggered through normal device operation when a Magic Mouse is connected to a Linux system. An attacker with local access could potentially exploit this by repeatedly triggering conditions that invoke the magicmouse_report_fixup() function, accelerating memory exhaustion. However, passive exploitation through normal device usage would also gradually deplete system memory over extended periods of operation.

Detection Methods for CVE-2026-31522

Indicators of Compromise

  • Gradual increase in kernel memory usage (slab allocations) on systems with Magic Mouse devices
  • Memory allocation patterns associated with the hid-magicmouse kernel module
  • System memory exhaustion warnings in kernel logs (dmesg)
  • Unusual growth in kmalloc-* slab caches over time

Detection Strategies

  • Monitor kernel slab allocations using /proc/slabinfo for unexplained growth patterns
  • Track memory usage trends on systems with connected Magic Mouse devices
  • Implement kernel memory leak detection tools such as kmemleak to identify orphaned allocations
  • Review system logs for out-of-memory (OOM) conditions that may indicate chronic memory leakage

Monitoring Recommendations

  • Deploy system monitoring to track kernel memory consumption over extended periods
  • Configure alerts for abnormal memory growth patterns on workstations with HID devices
  • Use SentinelOne's Linux agent to monitor kernel module behavior and resource consumption
  • Periodically audit loaded kernel modules and their memory footprint

How to Mitigate CVE-2026-31522

Immediate Actions Required

  • Update to a patched Linux kernel version that includes the memory leak fix
  • Monitor affected systems for memory exhaustion symptoms until patches can be applied
  • Consider temporarily unloading the hid-magicmouse module on critical systems if Magic Mouse functionality is not required
  • Implement scheduled system reboots as a temporary workaround to reclaim leaked memory

Patch Information

The Linux kernel development team has released patches to address this vulnerability across multiple stable kernel branches. The fix corrects the memory management in magicmouse_report_fixup() to avoid orphaned memory allocations.

Patch commits are available from the kernel.org stable git repository:

  • Kernel Git Commit 136f605
  • Kernel Git Commit 579c4c9
  • Kernel Git Commit 79e5dcc
  • Kernel Git Commit 7edfe43
  • Kernel Git Commit 91e8c6e
  • Kernel Git Commit d84c21a
  • Kernel Git Commit fa95b01

Workarounds

  • Unload the hid-magicmouse kernel module if Magic Mouse functionality is not required: modprobe -r hid-magicmouse
  • Blacklist the module to prevent automatic loading by adding blacklist hid-magicmouse to /etc/modprobe.d/blacklist.conf
  • Schedule periodic system reboots to reclaim leaked kernel memory on systems that cannot be immediately patched
  • Use alternative pointing devices that do not require the affected driver
bash
# Temporary workaround: Unload and blacklist the affected module
sudo modprobe -r hid-magicmouse
echo "blacklist hid-magicmouse" | sudo tee /etc/modprobe.d/blacklist-magicmouse.conf

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechLinux Kernel

  • SeverityNONE

  • CVSS ScoreN/A

  • EPSS Probability0.02%

  • Known ExploitedNo
  • Impact Assessment
  • ConfidentialityNone
  • IntegrityNone
  • AvailabilityNone
  • Technical References
  • Kernel Git Commit Update

  • Kernel Git Commit Update

  • Kernel Git Commit Update

  • Kernel Git Commit Update

  • Kernel Git Commit Update

  • Kernel Git Commit Update

  • Kernel Git Commit Update
  • Related CVEs
  • CVE-2026-31464: Linux Kernel Information Disclosure Flaw

  • CVE-2026-31470: Linux Kernel Information Disclosure Flaw

  • CVE-2026-31529: Linux Kernel Information Disclosure Flaw

  • CVE-2026-31440: Linux Kernel Memory Leak Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English