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

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

CVE-2026-31487 is a use-after-free vulnerability in the Linux Kernel SPI subsystem caused by improper locking when accessing driver_override fields. This article covers technical details, affected versions, and fixes.

Updated: May 16, 2026

CVE-2026-31487 Overview

CVE-2026-31487 is a use-after-free (UAF) vulnerability in the Linux kernel's Serial Peripheral Interface (SPI) subsystem. The flaw stems from improper locking when accessing the driver_override field during driver probing. When a driver is probed through __driver_attach(), the bus match() callback executes without holding the device lock, allowing concurrent access to driver_override and creating a race condition that leads to memory corruption [CWE-667].

A local authenticated attacker can trigger this condition to cause kernel memory corruption resulting in denial of service. The vulnerability affects the Linux kernel SPI driver infrastructure and has been resolved by switching to the generic driver_override infrastructure provided by the driver core.

Critical Impact

Local attackers with low privileges can trigger a use-after-free in the kernel SPI subsystem, causing system crashes and high-impact availability loss.

Affected Products

  • Linux Kernel 4.20
  • Linux Kernel 7.0 release candidates (rc1 through rc7)
  • Linux Linux Kernel (multiple stable branches per upstream advisory)

Discovery Timeline

  • 2026-04-22 - CVE-2026-31487 published to NVD
  • 2026-04-28 - Last updated in NVD database

Technical Details for CVE-2026-31487

Vulnerability Analysis

The vulnerability resides in the Linux kernel SPI bus implementation. The SPI subsystem implemented its own driver_override handling rather than using the generic driver-core infrastructure. The driver_override field allows administrators to force a specific driver binding to a device through sysfs.

When __driver_attach() walks the bus device list and invokes the bus match() callback, the device lock is intentionally not held. The SPI implementation accessed driver_override inside its match() handler without taking any synchronization primitive. A concurrent write to the sysfs driver_override attribute could free the string while the match callback was dereferencing it, producing a classic use-after-free.

The fix migrates SPI to the driver-core's driver_override helpers, which acquire the correct internal locks when reading and writing the field. The patch preserves SPI's existing sysfs output behavior, which emits an empty string rather than (null) when no override is set.

Root Cause

The root cause is improper locking around a shared mutable string pointer [CWE-667]. The SPI bus stored driver_override as a heap-allocated string that could be replaced through sysfs at any time. The custom store/show handlers did not coordinate with readers in match(), and __driver_attach() deliberately drops the device lock before calling match(), leaving the field unprotected.

Attack Vector

Exploitation requires local access with permission to write to the SPI device's driver_override sysfs attribute, typically restricted to root or privileged users on most distributions. An attacker writes new override strings in rapid succession while triggering driver attach operations. Winning the race causes the match() callback to read freed memory, corrupting the kernel allocator state and crashing the system.

The vulnerability does not provide a direct path to code execution or information disclosure based on the CVSS impact metrics, but the resulting kernel oops produces an availability impact.

No verified public proof-of-concept exploit is available. The vulnerability mechanism is described in the upstream commit messages referenced in the Kernel Patch Commit eedf220.

Detection Methods for CVE-2026-31487

Indicators of Compromise

  • Kernel oops or panic messages referencing spi_match_device, __driver_attach, or driver_override in dmesg or /var/log/kern.log.
  • KASAN (Kernel Address Sanitizer) reports flagging use-after-free in the SPI bus match path on instrumented kernels.
  • Unexpected SPI device rebinding events recorded in udev or systemd journal entries.

Detection Strategies

  • Audit kernel package versions across Linux fleets and compare against the fixed commits c73a586, cc34d77, e0ae367, and eedf220.
  • Monitor /sys/bus/spi/devices/*/driver_override write activity through Linux audit rules to flag unusual override changes.
  • Correlate kernel crash telemetry with concurrent sysfs writes against SPI device attributes.

Monitoring Recommendations

  • Enable kernel crash dump collection (kdump) on systems that interact with SPI hardware to capture forensic evidence of triggered UAF conditions.
  • Track privileged process writes to /sys/bus/spi/ paths through auditd rules covering path=/sys/bus/spi -p wa.
  • Alert on repeated SPI driver bind/unbind cycles within short time windows, which can indicate race-condition probing.

How to Mitigate CVE-2026-31487

Immediate Actions Required

  • Apply the upstream kernel patches from the stable trees referenced in the vendor advisories before deploying SPI-enabled hardware in multi-tenant environments.
  • Restrict write permissions on /sys/bus/spi/devices/*/driver_override to trusted administrators only.
  • Schedule reboots after kernel package updates so the patched SPI subsystem is loaded.

Patch Information

The vulnerability is fixed across multiple stable branches by the following commits: Kernel Patch Commit c73a586, Kernel Patch Commit cc34d77, Kernel Patch Commit e0ae367, and Kernel Patch Commit eedf220. Update to a kernel version that includes one of these commits through your distribution's package manager.

Workarounds

  • Limit local user accounts on systems that expose SPI devices, since the attack requires local low-privilege access.
  • Use mandatory access control policies (SELinux, AppArmor) to deny non-root write access to SPI sysfs attributes.
  • On systems that do not require SPI userspace control, blacklist the spidev module to reduce the attack surface.
bash
# Verify the running kernel includes the fix
uname -r

# Restrict write access to SPI driver_override attributes
find /sys/bus/spi/devices -name driver_override -exec chmod 600 {} \;

# Add an auditd rule to monitor driver_override writes
auditctl -w /sys/bus/spi -p wa -k spi_override_monitor

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

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.01%

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

  • Kernel Patch Commit cc34d77

  • Kernel Patch Commit e0ae367

  • Kernel Patch Commit eedf220
  • 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