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-2025-21846

CVE-2025-21846: Linux Kernel Privilege Escalation Flaw

CVE-2025-21846 is a privilege escalation vulnerability in the Linux Kernel affecting the acct system call, which can trigger NULL pointer dereference. This article covers technical details, affected versions, and mitigation.

Updated: January 22, 2026

CVE-2025-21846 Overview

CVE-2025-21846 is a Null Pointer Dereference vulnerability in the Linux kernel's process accounting (acct) subsystem. The vulnerability exists in the acct(2) system call, which can be exploited to trigger a NULL pointer dereference when the system call is configured to write to a file that triggers an internal lookup, such as /sys/power/resume.

The flaw occurs because at the point where the write operation happens, the calling task has already exited and called exit_fs(). When a lookup is subsequently triggered, it attempts to access current->fs, which results in a NULL pointer dereference since the filesystem context has already been deallocated.

Critical Impact

Local attackers with low privileges can trigger a kernel panic through NULL pointer dereference, causing system denial of service and potential system instability.

Affected Products

  • Linux Kernel versions prior to patched releases
  • Linux Kernel 6.14-rc1
  • Linux Kernel 6.14-rc2
  • Linux Kernel 6.14-rc3

Discovery Timeline

  • 2025-03-12 - CVE-2025-21846 published to NVD
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2025-21846

Vulnerability Analysis

This vulnerability (CWE-476: NULL Pointer Dereference) affects the process accounting mechanism in the Linux kernel. The acct(2) system call enables process accounting by specifying a file where the kernel writes accounting records when processes terminate.

The vulnerability occurs in a race condition scenario where the final accounting write is performed after the process has exited and released its filesystem structure via exit_fs(). When the accounting target is a special file that requires an internal lookup operation (such as sysfs entries like /sys/power/resume), the kernel attempts to access current->fs for path resolution, but this structure has already been freed, resulting in a NULL pointer dereference.

The fix reorganizes the code to ensure that the final accounting write happens from a workqueue while preserving the original caller's credentials. This maintains the existing permission model while preventing the NULL dereference by ensuring proper filesystem context exists during the write operation.

Root Cause

The root cause is improper lifecycle management of the current->fs structure during process termination. The accounting subsystem's final write operation occurs asynchronously, but the original implementation did not account for the scenario where the calling process has already released its filesystem context. When the write target triggers internal lookups (common with pseudo-filesystems like sysfs), the kernel assumes current->fs is valid, leading to the NULL pointer dereference.

Attack Vector

The attack requires local access to the system with low privileges. An attacker can exploit this vulnerability by:

  1. Configuring process accounting via the acct(2) system call to write to a special file path such as /sys/power/resume
  2. Terminating the process that initiated the accounting
  3. The kernel's accounting subsystem attempts a final write after exit_fs() has been called
  4. The write operation triggers an internal lookup that accesses current->fs, which is now NULL

The exploitation does not require user interaction and can be reliably triggered to cause a kernel panic, resulting in denial of service.

Detection Methods for CVE-2025-21846

Indicators of Compromise

  • Kernel panic messages referencing NULL pointer dereference in accounting-related code paths
  • System crashes following unusual acct(2) system calls targeting sysfs or similar pseudo-filesystem paths
  • Core dumps indicating crashes in kernel filesystem lookup routines triggered from accounting subsystem

Detection Strategies

  • Monitor for processes invoking acct(2) system call with unusual file paths, particularly those pointing to /sys/power/resume or other sysfs entries
  • Implement auditd rules to track acct(2) system call usage and flag attempts to configure accounting to special filesystem paths
  • Deploy kernel live patching detection to identify systems running vulnerable kernel versions

Monitoring Recommendations

  • Enable kernel crash dump collection to capture diagnostic information during NULL pointer dereference events
  • Configure system monitoring to alert on unexpected kernel panics, particularly those mentioning acct or filesystem lookup functions
  • Review system call audit logs for suspicious acct(2) invocations targeting non-standard file paths

How to Mitigate CVE-2025-21846

Immediate Actions Required

  • Update to a patched Linux kernel version that includes the workqueue-based fix for the accounting subsystem
  • Restrict access to the acct(2) system call using seccomp filters or similar mechanisms where process accounting is not required
  • Monitor systems for signs of exploitation attempts while patches are being deployed

Patch Information

The Linux kernel maintainers have released patches that reorganize the accounting code to perform the final write from a workqueue while preserving the caller's credentials. Multiple commit fixes are available:

  • Linux Kernel Commit Update
  • Linux Kernel Commit Fix
  • Linux Kernel Commit Patch
  • Linux Kernel Commit Security Update

Distribution-specific patches are also available via Debian LTS Security Announcements.

Workarounds

  • If kernel patching is not immediately possible, consider disabling process accounting system-wide using acct(NULL) or preventing the acct(2) system call via seccomp profiles
  • Restrict CAP_SYS_PACCT capability to only essential processes and users to limit who can configure process accounting
  • Use mandatory access control systems (SELinux, AppArmor) to restrict which files can be targeted by the accounting subsystem
bash
# Disable process accounting system-wide
acct off

# Example seccomp filter to block acct() system call (using systemd)
# Add to service unit file:
# SystemCallFilter=~@privileged

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechLinux Kernel

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.05%

  • 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-476
  • Technical References
  • Debian LTS Announcement Notice

  • Debian LTS Security Announcement
  • Vendor Resources
  • Linux Kernel Commit Update

  • Linux Kernel Commit Fix

  • Linux Kernel Commit Improvement

  • Linux Kernel Commit Patch

  • Linux Kernel Commit Security Update

  • Linux Kernel Commit Enhancement

  • Linux Kernel Commit Optimization

  • Linux Kernel Commit Refactor
  • Related CVEs
  • CVE-2026-31430: Linux Kernel Privilege Escalation Flaw

  • CVE-2026-31443: Linux Kernel Privilege Escalation Flaw

  • CVE-2026-31463: Linux Kernel Privilege Escalation Flaw

  • CVE-2026-31459: Linux Kernel Privilege Escalation Flaw
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