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

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

CVE-2026-31745 is a use-after-free flaw in the Linux Kernel reset GPIO driver that causes a double free in the error path. This article covers the technical details, affected versions, security impact, and mitigation.

Published: May 7, 2026

CVE-2026-31745 Overview

CVE-2026-31745 is a double free vulnerability [CWE-415] in the Linux kernel's GPIO-based reset controller subsystem. The flaw resides in reset_add_gpio_aux_device() within the auxiliary device registration path. When __auxiliary_device_add() fails, the function calls auxiliary_device_uninit(adev), which triggers the device release callback reset_gpio_aux_device_release() and frees adev. The error path then calls kfree(adev) again, producing a double free condition. A local authenticated attacker capable of triggering the failure path can corrupt kernel heap state, leading to memory corruption or local privilege escalation.

Critical Impact

Successful exploitation can corrupt kernel memory and enable local privilege escalation on systems running affected Linux kernel versions.

Affected Products

  • Linux Kernel 7.0-rc1 through 7.0-rc7
  • Linux Kernel mainline builds containing the GPIO reset auxiliary device code
  • Distributions packaging the affected upstream kernel snapshots

Discovery Timeline

  • 2026-05-01 - CVE-2026-31745 published to NVD
  • 2026-05-07 - Last updated in NVD database

Technical Details for CVE-2026-31745

Vulnerability Analysis

The vulnerability sits in the GPIO reset controller's auxiliary device registration logic. The function reset_add_gpio_aux_device() allocates an auxiliary_device structure, initializes it, and registers it with the kernel auxiliary bus. Registration occurs through __auxiliary_device_add(). When this call fails, the cleanup logic incorrectly frees the same memory twice.

First, the code invokes auxiliary_device_uninit(adev). This call drops the final reference on the device, which triggers the registered release callback reset_gpio_aux_device_release(). The release callback already frees adev via kfree(). The error path then issues another explicit kfree(adev) on the same pointer, creating the double free.

Root Cause

The root cause is incorrect ownership semantics in the error path. Once auxiliary_device_init() succeeds and a release callback is registered, the kernel auxiliary subsystem owns the lifecycle of the structure. Calling auxiliary_device_uninit() transfers responsibility for freeing the object to the release callback. The original code did not account for this ownership transition and freed the structure manually after the subsystem already released it.

Attack Vector

A local attacker with the ability to load kernel modules or trigger GPIO reset auxiliary device registration failures can drive execution into the faulty error path. Repeated triggering of the double free can corrupt the SLUB allocator's freelist, enabling heap layout manipulation. Skilled attackers can convert this into arbitrary kernel write primitives and escalate privileges to root.

The vulnerability requires local access with low privileges and no user interaction. Container escape scenarios and untrusted code execution environments increase exposure.

The vulnerability manifests during failed auxiliary device registration. See the Kernel Git Commit Log for the upstream patch and technical details.

Detection Methods for CVE-2026-31745

Indicators of Compromise

  • Kernel oops or panic messages referencing reset_add_gpio_aux_device or reset_gpio_aux_device_release in dmesg or /var/log/kern.log.
  • KASAN reports flagging double-free or use-after-free conditions in the auxiliary device subsystem.
  • Unexpected SLUB allocator corruption warnings tied to the auxiliary_device slab cache.

Detection Strategies

  • Enable CONFIG_KASAN and CONFIG_SLUB_DEBUG on test and staging kernels to surface the double free at runtime.
  • Monitor kernel ring buffer output for repeated faults in the GPIO reset driver path.
  • Audit loaded kernel versions against the affected 7.0-rcX series and flag hosts running unpatched builds.

Monitoring Recommendations

  • Centralize kernel logs and alert on stack traces containing reset_add_gpio_aux_device or auxiliary_device_uninit failures.
  • Track unexpected privilege escalations and process lineage anomalies on Linux endpoints running development kernels.
  • Correlate kernel crash telemetry with local user activity to identify exploitation attempts.

How to Mitigate CVE-2026-31745

Immediate Actions Required

  • Apply the upstream fix from commits 1de465753220 and fbffb8c7c7bb to all affected kernel builds.
  • Inventory systems running Linux 7.0-rc1 through 7.0-rc7 and prioritize patching for multi-tenant and developer hosts.
  • Restrict the ability of unprivileged users to load kernel modules via modules_disabled or signed-module enforcement.

Patch Information

The Linux kernel maintainers resolved the issue by removing the redundant kfree(adev) call after auxiliary_device_uninit(). The kfree(adev) call is preserved only for the auxiliary_device_init() failure path, where the subsystem has not yet taken ownership. Patches are available in the stable kernel commit 1de4657532 and stable kernel commit fbffb8c7c7.

Workarounds

  • Avoid deploying release-candidate 7.0-rcX kernels on production systems until the patched stable release is available.
  • Disable or unload the GPIO reset auxiliary driver where the functionality is not required.
  • Apply mandatory access controls such as SELinux or AppArmor to limit local users from triggering the vulnerable code path.
bash
# Verify running kernel version and check for affected release candidates
uname -r

# Disable unprivileged module loading until patched
sysctl -w kernel.modules_disabled=1

# Apply distribution kernel update once available
sudo apt update && sudo apt upgrade linux-image-$(uname -r)

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.02%

  • 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-415
  • Vendor Resources
  • Kernel Git Commit Log

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

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

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

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