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

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

CVE-2026-31532 is a use-after-free vulnerability in the Linux Kernel's CAN raw socket implementation that could allow unauthorized memory access. This article covers the technical details, affected versions, and mitigation.

Updated: May 14, 2026

CVE-2026-31532 Overview

CVE-2026-31532 is a use-after-free vulnerability [CWE-416] in the Linux kernel's Controller Area Network (CAN) raw socket implementation. The flaw resides in the raw_rcv() function, where the per-CPU ro->uniq storage can be accessed after being freed by raw_release(). The root cause is a synchronization gap between filter unregistration and Read-Copy-Update (RCU) callback execution. A local authenticated attacker can trigger memory corruption in kernel space, potentially leading to privilege escalation or denial of service.

Critical Impact

Local attackers with the ability to open CAN raw sockets can exploit the use-after-free in raw_rcv() to corrupt kernel memory, with potential for local privilege escalation on affected Linux systems.

Affected Products

  • Linux Kernel (multiple stable branches receiving backported fixes)
  • Distributions shipping vulnerable kernels with CONFIG_CAN_RAW enabled
  • Embedded and automotive Linux systems using the CAN subsystem

Discovery Timeline

  • 2026-04-23 - CVE-2026-31532 published to the National Vulnerability Database
  • 2026-04-29 - Last updated in NVD database

Technical Details for CVE-2026-31532

Vulnerability Analysis

The vulnerability exists in the Linux kernel CAN raw protocol implementation (net/can/raw.c). When a process closes a CAN raw socket, raw_release() calls can_rx_unregister() to remove receive filters. However, the actual receiver deletion is deferred via call_rcu() to maintain RCU read-side guarantees for concurrent receivers.

The issue arises because raw_release() immediately calls free_percpu(ro->uniq) to release the per-CPU uniq storage. Meanwhile, raw_rcv() may still be executing inside an RCU read-side critical section on another CPU, holding a stale reference to ro->uniq. This produces a classic use-after-free window where the receive path dereferences freed per-CPU memory.

Root Cause

The root cause is improper lifetime management of the per-CPU uniq allocation relative to RCU grace periods. The can_rx_unregister() function takes an extra socket reference that is only dropped from the RCU callback, but free_percpu(ro->uniq) was not subject to the same deferral. The fix moves the free_percpu(ro->uniq) call out of raw_release() and into a raw-specific socket destructor (sk_destruct). This ensures the per-CPU area persists until all RCU callbacks have drained and the final socket reference is released.

Attack Vector

Exploitation requires local access and the ability to create CAN raw sockets, which typically requires CAP_NET_RAW or an unprivileged user namespace where this capability is granted. An attacker triggers the race by rapidly opening and closing CAN raw sockets while concurrent packet delivery causes raw_rcv() to execute. Successful exploitation corrupts kernel per-CPU memory, which can be leveraged for kernel information disclosure, denial of service, or privilege escalation through heap grooming techniques.

No public proof-of-concept exploit is currently available, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog.

Detection Methods for CVE-2026-31532

Indicators of Compromise

  • Kernel oops or panic messages referencing raw_rcv, raw_release, or free_percpu in dmesg output
  • KASAN (Kernel Address Sanitizer) reports indicating use-after-free in the net/can/raw.c code path
  • Unexpected process crashes or kernel instability on systems with CAN subsystem activity
  • Anomalous socket creation patterns involving AF_CAN with SOCK_RAW

Detection Strategies

  • Audit kernel version strings across the fleet to identify hosts running vulnerable builds before backported fixes
  • Monitor auditd for socket() syscalls with AF_CAN (domain 29) from unexpected processes or user contexts
  • Enable kernel lockdown and KASAN in test environments to surface latent use-after-free conditions during validation
  • Correlate kernel ring buffer warnings with process activity to identify exploitation attempts

Monitoring Recommendations

  • Forward /var/log/kern.log and journalctl -k output to a centralized logging platform for retroactive analysis
  • Alert on processes invoking setsockopt against SOL_CAN_RAW from non-allowlisted binaries
  • Track loaded kernel modules; flag dynamic loading of can, can_raw, or vcan on systems that do not require CAN functionality
  • Baseline normal CAN socket activity on automotive or industrial hosts to detect deviations

How to Mitigate CVE-2026-31532

Immediate Actions Required

  • Apply the upstream Linux kernel patches referenced in the git.kernel.org stable tree commits and reboot affected systems
  • Inventory hosts with the can_raw module loaded and prioritize patching on systems exposing CAN interfaces to unprivileged users
  • Restrict CAP_NET_RAW and disable unprivileged user namespaces (kernel.unprivileged_userns_clone=0) where operationally feasible
  • Blacklist the can_raw kernel module on systems that do not require CAN bus functionality

Patch Information

The fix has been merged across multiple stable kernel branches. Refer to the following commits for the authoritative patch content:

  • Linux Kernel Commit 1a0f2de81f7f
  • Linux Kernel Commit 34c1741254ff
  • Linux Kernel Commit 572f0bf536eb
  • Linux Kernel Commit 5e9cfffad898
  • Linux Kernel Commit 7201a531b9a5
  • Linux Kernel Commit a535a9217ca3

The patch relocates free_percpu(ro->uniq) from raw_release() into a dedicated socket destructor, ensuring per-CPU memory is freed only after RCU callbacks drain.

Workarounds

  • Blacklist the can_raw module via /etc/modprobe.d/blacklist-can.conf on hosts without CAN requirements
  • Remove CAP_NET_RAW from non-essential service accounts and containers
  • Disable unprivileged user namespaces to reduce the attack surface for local privilege escalation primitives
  • Apply SELinux or AppArmor policies restricting AF_CAN socket creation to authorized binaries
bash
# Configuration example: blacklist CAN raw module and harden namespace policy
echo "blacklist can_raw" | sudo tee /etc/modprobe.d/blacklist-can-raw.conf
echo "blacklist can"     | sudo tee -a /etc/modprobe.d/blacklist-can-raw.conf
sudo sysctl -w kernel.unprivileged_userns_clone=0
echo "kernel.unprivileged_userns_clone=0" | sudo tee -a /etc/sysctl.d/99-hardening.conf
sudo update-initramfs -u

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

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-416
  • Vendor Resources
  • Linux Kernel Commit Log

  • Linux Kernel Commit Log

  • Linux Kernel Commit Log

  • Linux Kernel Commit Log

  • Linux Kernel Commit Log

  • Linux Kernel Commit Log
  • Related CVEs
  • CVE-2026-43328: Linux Kernel Use-After-Free Vulnerability

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

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

  • CVE-2026-43335: Linux Kernel Use-After-Free Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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