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

CVE-2026-31391: Linux Kernel Atmel SHA204A OOM Vulnerability

CVE-2026-31391 is a memory leak flaw in the Linux kernel's Atmel SHA204A crypto driver that causes tfm_count leaks during OOM conditions. This article covers the technical details, affected versions, and mitigation.

Published: April 10, 2026

CVE-2026-31391 Overview

A memory leak vulnerability has been identified in the Linux kernel's atmel-sha204a cryptographic driver. The vulnerability occurs when memory allocation fails during transformation operations, but the ->tfm_count reference counter is not properly decremented. This can lead to resource exhaustion and denial of service conditions by blocking future read operations on the affected device.

Critical Impact

Improper reference counter management in the atmel-sha204a crypto driver can block future device reads when memory allocation fails, potentially leading to denial of service.

Affected Products

  • Linux kernel with atmel-sha204a crypto driver enabled
  • Systems using Atmel SHA204A hardware security modules
  • Embedded devices utilizing the atmel-sha204a interface

Discovery Timeline

  • April 03, 2026 - CVE CVE-2026-31391 published to NVD
  • April 07, 2026 - Last updated in NVD database

Technical Details for CVE-2026-31391

Vulnerability Analysis

The vulnerability resides in the atmel-sha204a cryptographic driver within the Linux kernel's crypto subsystem. When a transformation context (tfm) is allocated, the driver increments a reference counter (->tfm_count) to track active transformations. However, when memory allocation fails during this process, the error handling path fails to decrement the counter before returning.

This oversight creates a resource leak where the tfm_count remains incremented despite no actual resource being allocated. Over time, or through deliberate exploitation, this can cause the counter to reach its maximum value, effectively blocking all future read operations on the cryptographic device since the driver checks this counter before allowing new transformations.

Root Cause

The root cause is improper error handling in the memory allocation path of the atmel-sha204a driver. When kmalloc() or similar allocation functions return NULL due to out-of-memory (OOM) conditions, the driver correctly returns an error code but fails to undo the reference counter increment that occurred earlier in the allocation sequence. This violates the principle of atomic operation cleanup where all state changes should be rolled back upon failure.

Attack Vector

An attacker with local access to the system could potentially trigger this vulnerability by:

  1. Causing repeated memory pressure situations on the system
  2. Initiating multiple cryptographic operations that stress the atmel-sha204a driver
  3. Exploiting the OOM condition handling to leak reference counts
  4. Eventually exhausting the reference counter, blocking legitimate cryptographic operations

The vulnerability requires local access to trigger memory allocation failures and interact with the crypto subsystem. While not directly exploitable for code execution, it presents a denial of service risk for systems relying on the Atmel SHA204A hardware security module for cryptographic operations.

The fix involves adding a decrement operation (->tfm_count--) in the error handling path to ensure the reference counter remains consistent when memory allocation fails. Multiple kernel commits have been issued across different stable branches to address this issue. For technical implementation details, refer to the kernel commit 1ab70c2.

Detection Methods for CVE-2026-31391

Indicators of Compromise

  • Unusual memory pressure or OOM killer activity targeting processes using crypto operations
  • Increasing tfm_count values in the atmel-sha204a driver without corresponding active transformations
  • Failed read operations on /dev/atmel_sha204a or related device nodes
  • System logs showing repeated allocation failures in the crypto subsystem

Detection Strategies

  • Monitor kernel logs (dmesg) for OOM conditions specifically mentioning the crypto or atmel-sha204a subsystem
  • Track system memory usage patterns and correlate with cryptographic operation failures
  • Implement watchdog monitoring for cryptographic device availability

Monitoring Recommendations

  • Enable kernel tracing for the crypto subsystem to detect anomalous tfm allocation patterns
  • Set up alerts for persistent cryptographic device read failures
  • Monitor /proc/meminfo and cgroup memory statistics for unusual allocation patterns during crypto operations
  • Review SentinelOne Singularity platform alerts for kernel-level anomalies on affected systems

How to Mitigate CVE-2026-31391

Immediate Actions Required

  • Update the Linux kernel to a patched version containing the fix
  • Review systems using Atmel SHA204A hardware security modules for potential impact
  • Monitor affected systems for signs of resource exhaustion or blocked crypto operations
  • Consider temporarily disabling the atmel-sha204a driver if not critical to operations until patched

Patch Information

The Linux kernel development team has released patches across multiple stable branches to address this vulnerability. The fix ensures proper decrement of the ->tfm_count reference counter when memory allocation fails, preventing resource leaks.

Available patches:

  • Kernel Commit 1ab70c2
  • Kernel Commit 2bfc83c
  • Kernel Commit 66ee9c1
  • Kernel Commit 6f50204
  • Kernel Commit d240b07
  • Kernel Commit fd262dc

Workarounds

  • Ensure adequate system memory is available to reduce OOM conditions
  • Implement memory cgroup limits to prevent runaway processes from causing system-wide OOM
  • If the atmel-sha204a driver is not required, disable or blacklist the kernel module
  • Apply rate limiting on cryptographic operations to reduce allocation pressure
bash
# Blacklist the atmel-sha204a module if not required
echo "blacklist atmel-sha204a" >> /etc/modprobe.d/blacklist-atmel.conf

# Verify the module is not loaded
lsmod | grep atmel

# Force unload if currently loaded (use with caution)
modprobe -r atmel-sha204a

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeOther

  • Vendor/TechLinux Kernel

  • SeverityNONE

  • CVSS ScoreN/A

  • EPSS Probability0.03%

  • Known ExploitedNo
  • Impact Assessment
  • ConfidentialityNone
  • IntegrityNone
  • AvailabilityNone
  • Technical References
  • Kernel Commit 1ab70c2

  • Kernel Commit 2bfc83c

  • Kernel Commit 66ee9c1

  • Kernel Commit 6f50204

  • Kernel Commit d240b07

  • Kernel Commit fd262dc
  • Related CVEs
  • CVE-2026-31439: Linux Kernel XDMA Error Handling Flaw

  • CVE-2026-31441: Linux Kernel Memory Leak Vulnerability

  • CVE-2026-31434: Linux Kernel Memory Leak Vulnerability

  • CVE-2026-31435: Linux Kernel Read Abandonment 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