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

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

CVE-2026-31474 is a use-after-free vulnerability in the Linux kernel's CAN ISOTP implementation that could lead to memory corruption. This post covers technical details, affected versions, and mitigation steps.

Published: April 23, 2026

CVE-2026-31474 Overview

A use-after-free vulnerability has been identified in the Linux kernel's CAN ISO-TP (ISO 15765-2) networking subsystem. The flaw exists in the isotp_sendmsg() function where improper synchronization between socket close operations and message transmission can lead to accessing freed memory. This vulnerability affects the CAN networking stack used in automotive and industrial applications.

Critical Impact

This use-after-free vulnerability in the kernel's CAN ISO-TP implementation could potentially allow local attackers to cause system instability, denial of service, or potentially achieve privilege escalation through memory corruption.

Affected Products

  • Linux kernel with CAN ISO-TP subsystem enabled
  • Systems using CONFIG_CAN_ISOTP kernel configuration
  • Automotive and industrial systems utilizing CAN bus networking

Discovery Timeline

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

Technical Details for CVE-2026-31474

Vulnerability Analysis

This use-after-free vulnerability occurs in the ISO-TP transport protocol implementation within the Linux kernel's CAN networking subsystem. The issue stems from a race condition between the isotp_sendmsg() function that transmits CAN frames and the isotp_release() function that handles socket cleanup during close operations.

The isotp_sendmsg() function relies solely on cmpxchg() operations on so->tx.state to serialize access to the transmission buffer (so->tx.buf). When a socket is closed via isotp_release(), the function waits for the transmission state to become ISOTP_IDLE through wait_event_interruptible(). However, if a signal interrupts this wait while the transmission state is ISOTP_SENDING, the wait loop exits prematurely.

Upon early exit, the release function forces the state to ISOTP_SHUTDOWN and proceeds to free so->tx.buf via kfree(). At this point, isotp_sendmsg() may still be reading from so->tx.buf to construct the final CAN frame in isotp_fill_dataframe(), resulting in a use-after-free condition.

Root Cause

The root cause is insufficient synchronization between socket teardown and ongoing message transmission. The so->tx.buf buffer, which can be dynamically extended during transmission of larger payloads, is freed in isotp_release() while potentially still being accessed by isotp_sendmsg(). The use of cmpxchg() alone on the state variable does not provide adequate protection against this race condition when signals interrupt the wait operation.

Attack Vector

An attacker with local access could exploit this vulnerability by initiating a CAN ISO-TP transmission and then triggering a signal-interrupted close operation on the socket. The timing window exists when:

  1. A process calls sendmsg() on an ISO-TP socket initiating transmission
  2. Another thread or signal handler calls close() on the same socket
  3. A signal interrupts the wait_event_interruptible() in isotp_release()
  4. The release function proceeds to free tx.buf while sendmsg is still accessing it

The fix moves the kfree() of the potentially extended tx.buf to sk_destruct time, ensuring both isotp_sendmsg() and isotp_release() have completed before the buffer is freed.

Detection Methods for CVE-2026-31474

Indicators of Compromise

  • Kernel oops or panics with backtraces involving isotp_sendmsg() or isotp_fill_dataframe() functions
  • Unexpected system crashes when CAN ISO-TP sockets are being closed during active transmission
  • Memory corruption errors or KASAN (Kernel Address Sanitizer) reports in the CAN ISO-TP subsystem

Detection Strategies

  • Enable KASAN (Kernel Address Sanitizer) to detect use-after-free memory access violations in the kernel
  • Monitor kernel logs for warnings or errors related to the ISO-TP module (can_isotp)
  • Implement system monitoring for abnormal CAN socket behavior or unexpected socket closure patterns
  • Use ftrace or eBPF to trace isotp_sendmsg and isotp_release function calls for anomalous patterns

Monitoring Recommendations

  • Configure kernel crash dump collection (kdump) to capture detailed information on any kernel panics
  • Enable audit logging for CAN socket operations on systems where CAN bus networking is critical
  • Monitor system stability metrics on automotive or industrial systems using CAN communication

How to Mitigate CVE-2026-31474

Immediate Actions Required

  • Update the Linux kernel to a patched version that includes the fix for this vulnerability
  • Review systems using CAN ISO-TP functionality and prioritize patching based on exposure
  • Consider temporarily disabling the ISO-TP module (modprobe -r can_isotp) if not required for operations
  • Limit local user access to systems with CAN networking capabilities until patches are applied

Patch Information

The Linux kernel developers have released patches to address this vulnerability. The fix relocates the kfree() operation for the extended tx.buf to socket destruction time (sk_destruct), ensuring both isotp_sendmsg() and isotp_release() complete before memory is freed.

Patch commits are available through the following kernel git references:

  • Kernel Commit 2e62e7051eca
  • Kernel Commit 424e95d62110
  • Kernel Commit 9649d051e544
  • Kernel Commit cb3d6efa7846
  • Kernel Commit eec8a1b18a79

Workarounds

  • Disable the CAN ISO-TP kernel module if not required: modprobe -r can_isotp
  • Add blacklist can_isotp to /etc/modprobe.d/blacklist.conf to prevent automatic module loading
  • Restrict access to CAN network interfaces using appropriate permissions and namespacing
  • Implement process isolation for applications that require CAN communication
bash
# Configuration example
# Disable CAN ISO-TP module temporarily
modprobe -r can_isotp

# Blacklist the module to prevent loading on boot
echo "blacklist can_isotp" >> /etc/modprobe.d/blacklist-isotp.conf

# Verify module is not loaded
lsmod | grep isotp

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

  • SeverityNONE

  • CVSS ScoreN/A

  • EPSS Probability0.02%

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

  • Linux Kernel Commit Log

  • Linux Kernel Commit Log

  • Linux Kernel Commit Log

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

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

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

  • CVE-2026-23428: 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