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-31396

CVE-2026-31396: Linux Kernel Use-After-Free Vulnerability

CVE-2026-31396 is a use-after-free vulnerability in the Linux kernel macb network driver that allows improper PTP clock access. This post covers technical details, affected versions, security impact, and mitigation steps.

Published: April 10, 2026

CVE-2026-31396 Overview

A use-after-free vulnerability has been discovered in the Linux kernel's macb network driver, specifically affecting the Precision Time Protocol (PTP) clock functionality. The vulnerability exists because the PTP clock is registered on every opening of the network interface and destroyed on every closing, but it can still be accessed via the get_ts_info ethtool call while the interface is present in the kernel. This creates a dangerous race condition where freed memory can be accessed, potentially leading to system instability or exploitation.

Critical Impact

This use-after-free vulnerability in the Linux kernel's macb driver allows access to freed PTP clock memory through ethtool calls, potentially enabling local privilege escalation or denial of service on systems using Cadence/Macb Ethernet controllers.

Affected Products

  • Linux kernel with Cadence macb Ethernet driver enabled
  • Systems utilizing Cadence GEM (Gigabit Ethernet MAC) controllers
  • Embedded systems with PTP clock support on macb network interfaces

Discovery Timeline

  • 2026-04-03 - CVE-2026-31396 published to NVD
  • 2026-04-07 - Last updated in NVD database

Technical Details for CVE-2026-31396

Vulnerability Analysis

The vulnerability resides in the macb_main.c driver within the Linux kernel's networking subsystem. When a network interface using the macb driver is opened, the macb_open() function calls gem_ptp_init() which registers a PTP clock through ptp_clock_register(). Conversely, when the interface is closed via macb_close(), the gem_ptp_remove() function unregisters and frees the PTP clock structure.

The critical issue arises because the ethtool interface allows querying timestamp information via ETHTOOL_GET_TS_INFO even when the network interface is down. The gem_get_ts_info() and macb_get_ts_info() functions attempt to access the PTP clock structure to retrieve its index via ptp_clock_index(), but if the interface has been closed, this structure has already been freed, resulting in a use-after-free condition.

KASAN (Kernel Address Sanitizer) detected this vulnerability when a read of 4 bytes occurred at an already-freed memory address during the ptp_clock_index() call. The KASAN report shows the memory was allocated during macb_open() via gem_ptp_init() -> ptp_clock_register() -> kzalloc() and subsequently freed during macb_close() via gem_ptp_remove() -> ptp_clock_unregister().

Root Cause

The root cause is improper lifecycle management of the PTP clock resource in relation to the interface state. The driver fails to properly synchronize access to the PTP clock structure between the interface open/close operations and the ethtool query path. There is no mechanism to prevent ethtool from accessing the PTP clock after it has been destroyed, nor is there a reference counting scheme to keep the clock alive while queries are pending.

The problematic code path involves:

  1. __ethtool_get_ts_info() calling macb_get_ts_info()
  2. macb_get_ts_info() calling gem_get_ts_info()
  3. gem_get_ts_info() accessing the PTP clock pointer without validation
  4. ptp_clock_index() dereferencing the freed structure

Attack Vector

Exploitation requires local access to the system with sufficient privileges to execute ethtool commands or make ioctl() calls on network sockets. An attacker could exploit this vulnerability through the following sequence:

  1. Ensure a macb network interface with PTP support is present
  2. Open the interface to trigger PTP clock registration
  3. Close the interface to trigger PTP clock destruction
  4. Immediately query timestamp information via ethtool while the freed memory is still accessible
  5. The use-after-free access could potentially be leveraged to leak kernel memory contents or achieve code execution if the freed memory region is reclaimed with attacker-controlled data

The attack can be triggered via the dev_ioctl() -> sock_ioctl() -> dev_ethtool() syscall path, making it accessible from unprivileged user processes with appropriate network interface permissions.

Detection Methods for CVE-2026-31396

Indicators of Compromise

  • KASAN reports showing "use-after-free" in ptp_clock_index() function
  • Kernel oops or panic messages originating from drivers/ptp/ptp_clock.c:426 or drivers/net/ethernet/cadence/macb_main.c
  • Unexpected system crashes during network interface operations
  • Suspicious ethtool timestamp queries on closed network interfaces

Detection Strategies

  • Enable KASAN (Kernel Address Sanitizer) in kernel builds to detect memory corruption issues at runtime
  • Monitor kernel logs (dmesg) for "use-after-free" errors related to PTP or macb driver components
  • Implement audit rules to log ethtool operations on systems with Cadence Ethernet controllers
  • Deploy runtime kernel integrity monitoring solutions capable of detecting memory corruption

Monitoring Recommendations

  • Configure centralized logging for kernel messages from systems running affected kernel versions
  • Monitor for patterns of rapid interface up/down cycles followed by ethtool queries
  • Implement alerting on kernel crashes or KASAN warnings on systems with macb driver loaded
  • Audit systems for the presence of CONFIG_MACB and CONFIG_PTP_1588_CLOCK kernel options

How to Mitigate CVE-2026-31396

Immediate Actions Required

  • Update the Linux kernel to a patched version containing the use-after-free fix
  • If immediate patching is not possible, consider disabling PTP support for macb interfaces
  • Restrict unprivileged user access to ethtool commands and network interface management
  • Monitor affected systems for signs of exploitation attempts

Patch Information

The vulnerability has been addressed through commits to the stable Linux kernel branches. The fix ensures proper synchronization between interface state management and ethtool queries, preventing access to the PTP clock structure after it has been freed.

Patches are available from the following kernel git commits:

  • Kernel Git Commit 0bb848d8
  • Kernel Git Commit 1f471406
  • Kernel Git Commit 341d0108
  • Kernel Git Commit 5653af41
  • Kernel Git Commit 8da13e6d
  • Kernel Git Commit eb652535

Workarounds

  • Disable the macb PTP functionality by recompiling the kernel without CONFIG_PTP_1588_CLOCK_MACB if PTP is not required
  • Use kernel module parameters or udev rules to prevent loading the macb driver on systems where it is not needed
  • Implement network namespace isolation to limit access to vulnerable interfaces
  • Apply access control policies to restrict which users can execute ethtool commands
bash
# Check if macb driver is loaded
lsmod | grep macb

# Check kernel configuration for PTP support
zcat /proc/config.gz | grep -E "CONFIG_MACB|CONFIG_PTP"

# Restrict ethtool access (example using capabilities)
setcap -r /usr/sbin/ethtool

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

  • Vulnerability Details
  • TypeUse After Free

  • Vendor/TechLinux Kernel

  • SeverityNONE

  • CVSS ScoreN/A

  • EPSS Probability0.03%

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

  • Kernel Git Commit Summary 2

  • Kernel Git Commit Summary 3

  • Kernel Git Commit Summary 4

  • Kernel Git Commit Summary 5

  • Kernel Git Commit Summary 6
  • Related CVEs
  • CVE-2026-31414: Linux Kernel Use-After-Free Vulnerability

  • CVE-2026-31426: Linux Kernel Use-After-Free Vulnerability

  • CVE-2026-31427: Linux Kernel Use-After-Free Vulnerability

  • CVE-2026-31419: Linux Kernel Use-After-Free 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