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

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

CVE-2026-31689 is a use-after-free vulnerability in the Linux kernel EDAC subsystem caused by incorrect error path ordering in edac_mc_alloc(). This article covers the technical details, affected versions, and mitigation.

Published: April 30, 2026

CVE-2026-31689 Overview

A vulnerability has been discovered in the Linux kernel's EDAC (Error Detection and Correction) memory controller subsystem. The flaw exists in the edac_mc_alloc() function where improper initialization ordering in the error path can lead to calling kobject_put() on an uninitialized kobject. When the mci->pvt_info allocation fails, the error handling path calls put_device() which invokes the device's release function before device_initialize() has been called, resulting in operations on uninitialized memory structures.

Critical Impact

This vulnerability can cause kernel warnings and potential system instability when EDAC memory controller initialization fails, particularly affecting systems using AMD64 EDAC modules.

Affected Products

  • Linux kernel versions with vulnerable EDAC/mc subsystem
  • Systems using amd64_edac kernel module
  • Linux kernel 7.0.0-rc1 and potentially other versions

Discovery Timeline

  • 2026-04-27 - CVE CVE-2026-31689 published to NVD
  • 2026-04-27 - Last updated in NVD database

Technical Details for CVE-2026-31689

Vulnerability Analysis

The vulnerability resides in the error handling logic within the edac_mc_alloc() function of the EDAC core module. The fundamental issue is an incorrect ordering of initialization operations. When memory allocation for mci->pvt_info fails, the code attempts to clean up by calling put_device(). However, the device_initialize() call that sets up the device structure—including the critical release function pointer—is positioned after the failing allocation in the code flow.

This means when the error path is triggered before device_initialize() is called, the subsequent put_device() call attempts to operate on a device that has not been properly initialized. The kobject subsystem correctly detects this inconsistency and generates a warning indicating that kobject_put() is being called on an uninitialized object. This manifests in kernel log messages showing the kobject has a null name and is not properly initialized.

Root Cause

The root cause is improper ordering of initialization and cleanup operations in the edac_mc_alloc() function. The code performs memory allocations before calling device_initialize(), but the error handling path assumes the device has already been initialized. This creates a condition where put_device() can be called on an uninitialized device structure, violating the expected lifecycle of kernel device objects.

Attack Vector

This vulnerability is primarily triggered during system initialization or when loading EDAC kernel modules, specifically when memory allocation fails during the EDAC memory controller setup process. The attack vector requires the ability to cause memory allocation failures during the EDAC initialization sequence. While this is typically a local denial-of-service scenario rather than a remote exploit, it can result in kernel warnings, potential NULL pointer dereferences, and system instability. The vulnerability was discovered during code review of another EDAC patch.

The kernel stack trace shows the issue occurring in the following call chain:

edac_mc_alloc+0xbe/0xe0 [edac_core]
amd64_edac_init+0x7a4/0xff0 [amd64_edac]
do_one_initcall

The fix involves reordering the code to ensure device_initialize() is called before any code path that might invoke put_device(), ensuring the device structure and release function pointer are properly initialized.

Detection Methods for CVE-2026-31689

Indicators of Compromise

  • Kernel warning messages containing kobject: '(null)': is not initialized, yet kobject_put() is being called
  • Warnings from lib/kobject.c:734 related to kobject_put operations
  • Stack traces showing edac_mc_alloc in the call chain during system boot or module loading
  • EDAC module initialization failures logged in dmesg or system logs

Detection Strategies

  • Monitor kernel logs (dmesg) for kobject initialization warnings during boot and module loading
  • Implement alerting on EDAC-related kernel warnings in centralized logging systems
  • Use kernel tracing tools to monitor edac_mc_alloc() function calls and their return values
  • Deploy kernel auditing to track EDAC module load events and associated errors

Monitoring Recommendations

  • Configure syslog monitoring to alert on EDAC-related kernel warnings
  • Implement system health checks that validate EDAC module initialization status
  • Monitor for unusual patterns of memory allocation failures during kernel module initialization
  • Review /var/log/kern.log and journalctl -k for related warning messages after system boots

How to Mitigate CVE-2026-31689

Immediate Actions Required

  • Update to a patched Linux kernel version that includes the fix for the initialization ordering
  • Review system logs for any evidence of this vulnerability being triggered
  • Consider temporarily blacklisting EDAC modules on affected systems if patches are not immediately available
  • Test kernel updates in a staging environment before production deployment

Patch Information

The Linux kernel maintainers have released patches to fix this vulnerability by reordering the calling sequence so that device_initialize() is called before any potential error path that could trigger put_device(). Multiple commits have been published to the stable kernel branches:

  • Kernel Git Commit 51520e0
  • Kernel Git Commit 7582564
  • Kernel Git Commit 87ce8ae
  • Kernel Git Commit aae9597
  • Kernel Git Commit d20e98c
  • Kernel Git Commit d3de72e

Apply the appropriate patch for your kernel version from the Linux kernel stable branches.

Workarounds

  • Temporarily disable or blacklist EDAC modules if memory error reporting is not critical to operations
  • Monitor systems for signs of exploitation while awaiting patch deployment
  • Ensure systems have adequate memory available to reduce likelihood of allocation failures during initialization
bash
# Temporarily blacklist EDAC modules as a workaround
echo "blacklist edac_core" >> /etc/modprobe.d/edac-blacklist.conf
echo "blacklist amd64_edac" >> /etc/modprobe.d/edac-blacklist.conf
# Rebuild initramfs if modules are loaded early in boot
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

  • SeverityNONE

  • CVSS ScoreN/A

  • EPSS Probability0.02%

  • Known ExploitedNo
  • Impact Assessment
  • ConfidentialityNone
  • IntegrityNone
  • AvailabilityNone
  • Technical References
  • Kernel Git Commit 51520e0

  • Kernel Git Commit 7582564

  • Kernel Git Commit 87ce8ae

  • Kernel Git Commit aae9597

  • Kernel Git Commit d20e98c

  • Kernel Git Commit d3de72e
  • Related CVEs
  • CVE-2026-31745: Linux Kernel Use-After-Free Vulnerability

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