The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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-31494

CVE-2026-31494: Linux Kernel Buffer Overflow Vulnerability

CVE-2026-31494 is a buffer overflow vulnerability in the Linux kernel's macb network driver that causes out-of-bounds writes when copying statistics. This article covers the technical details, affected systems, and mitigation.

Published: April 23, 2026

CVE-2026-31494 Overview

A memory corruption vulnerability exists in the Linux kernel's MACB (Cadence MAC) network driver that can lead to an out-of-bounds write condition. The flaw occurs in the gem_get_ethtool_stats() function, which improperly copies statistics data using the maximum number of queues (MACB_MAX_QUEUES) rather than the actual number of active queues. This mismatch between allocated memory and written data results in memory corruption when the active queue count is less than the maximum supported queues.

Critical Impact

Local users with access to ethtool can trigger an out-of-bounds write of up to 760 bytes, potentially causing kernel memory corruption, system instability, or denial of service on Linux systems using the MACB network driver.

Affected Products

  • Linux kernel with MACB network driver module
  • Raspberry Pi devices using MACB/GEM Ethernet controllers
  • Embedded systems utilizing Cadence MACB/GEM Ethernet IP

Discovery Timeline

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

Technical Details for CVE-2026-31494

Vulnerability Analysis

The vulnerability stems from an inconsistency between two functions in the MACB Ethernet driver. The gem_get_sset_count() function correctly calculates the number of statistics entries based on the currently active hardware queues. However, the gem_get_ethtool_stats() function ignores this calculation and unconditionally copies statistics for all possible queues up to MACB_MAX_QUEUES.

When a system operates with fewer active queues than the maximum supported, the statistics buffer allocated by the ethtool subsystem (based on gem_get_sset_count()) is smaller than the data gem_get_ethtool_stats() attempts to write. This creates a classic out-of-bounds write scenario where the function writes 760 bytes beyond the allocated vmalloc region.

The KASAN (Kernel Address Sanitizer) splat captured during exploitation shows the write occurs at address ffff80008080b000, a 1-page vmalloc region allocated during dev_ethtool() processing. The memory state dump reveals legitimate data (marked as 00) followed by freed/invalid regions (marked as f8), clearly indicating the boundary violation.

Root Cause

The root cause is a failure to maintain consistency between memory allocation and memory usage within the MACB driver's ethtool statistics implementation. The gem_get_sset_count() function dynamically calculates buffer requirements based on active queues, while gem_get_ethtool_stats() uses a hardcoded maximum value. This architectural inconsistency violates the implicit contract between these companion functions that the ethtool framework relies upon.

Attack Vector

An attacker with local access to the system can trigger this vulnerability through the standard ethtool interface. The attack path involves:

  1. Executing ethtool statistics collection commands (e.g., ethtool -S eth0)
  2. The kernel invokes dev_ethtool() which allocates a statistics buffer based on gem_get_sset_count()
  3. The gem_get_ethtool_stats() function is called to populate the buffer
  4. The function uses memcpy to copy data for all MACB_MAX_QUEUES queues, exceeding the buffer bounds
  5. Adjacent kernel memory is corrupted with statistics data

The vulnerability requires local access with privileges to execute ethtool commands. On systems where unprivileged users can access network device statistics, the attack surface expands. The out-of-bounds write could potentially be leveraged for privilege escalation if an attacker can control or predict adjacent memory contents, though this would require additional exploitation techniques.

Detection Methods for CVE-2026-31494

Indicators of Compromise

  • KASAN reports showing vmalloc-out-of-bounds errors in gem_get_ethtool_stats function
  • Kernel oops or panics occurring during ethtool statistics collection
  • Unexpected system crashes when running network monitoring tools on MACB interfaces
  • Memory corruption signatures in kernel logs referencing the macb module

Detection Strategies

  • Enable KASAN (Kernel Address Sanitizer) in development and staging environments to detect out-of-bounds memory accesses
  • Monitor kernel logs for oops traces originating from the macb driver module, particularly during ethtool operations
  • Implement kernel live patching monitoring to detect when vulnerable systems receive patches
  • Use eBPF-based tracing to monitor calls to gem_get_ethtool_stats() and validate buffer sizes

Monitoring Recommendations

  • Configure centralized logging for kernel messages across all Linux systems using MACB network drivers
  • Set up alerts for kernel taint flags, particularly [E]=UNSIGNED_MODULE combined with KASAN reports
  • Monitor for unusual patterns of ethtool invocations that could indicate exploitation attempts
  • Track kernel module loading events for the macb driver to maintain visibility into affected systems

How to Mitigate CVE-2026-31494

Immediate Actions Required

  • Apply kernel patches from the official Linux kernel stable branches immediately
  • Restrict access to ethtool commands using proper permissions and capabilities
  • Consider temporarily disabling statistics collection for MACB interfaces in highly sensitive environments
  • Audit systems for signs of prior exploitation using the indicators of compromise listed above

Patch Information

The Linux kernel maintainers have released patches across multiple stable branches to address this vulnerability. The fix ensures that gem_get_ethtool_stats() only copies statistics for the actual number of active queues, matching the behavior of gem_get_sset_count().

Patches are available from the official kernel git repositories:

  • Kernel Commit 240c5302eed8
  • Kernel Commit 72d96e4e24bb
  • Kernel Commit 7ff87da09921
  • Kernel Commit 9524634194516
  • Kernel Commit 9596759a84e1
  • Kernel Commit 9738be665544
  • Kernel Commit 9d74d10e4e26
  • Kernel Commit e182fe273cdf

Workarounds

  • Unload the macb kernel module on systems where the MACB network interface is not required using modprobe -r macb
  • Restrict ethtool access to privileged administrators only through capability controls (CAP_NET_ADMIN)
  • Blacklist the macb module in /etc/modprobe.d/ if alternative network drivers are available
  • Deploy network namespace isolation to limit which users can interact with affected network interfaces
bash
# Configuration example
# Restrict ethtool access and blacklist vulnerable module if not needed

# Option 1: Blacklist the macb module if not required
echo "blacklist macb" >> /etc/modprobe.d/blacklist-macb.conf

# Option 2: Restrict capabilities for ethtool operations
# Ensure only root can run ethtool
chmod 750 /usr/sbin/ethtool
chown root:root /usr/sbin/ethtool

# Option 3: Unload the module on running systems (if interface not in use)
modprobe -r macb

# Verify module status
lsmod | grep macb

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechLinux Kernel

  • SeverityNONE

  • CVSS ScoreN/A

  • EPSS Probability0.03%

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

  • Kernel Commit Update

  • Kernel Commit Update

  • Kernel Commit Update

  • Kernel Commit Update

  • Kernel Commit Update

  • Kernel Commit Update

  • Kernel Commit Update
  • Related CVEs
  • CVE-2026-31743: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-43051: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-31742: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-31774: Linux Kernel Buffer Overflow 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