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

CVE-2025-21796: Linux Kernel Use-After-Free Vulnerability

CVE-2025-21796 is a use-after-free vulnerability in the Linux kernel's nfsd component that can trigger kernel warnings and panics. This post explains the technical details, affected versions, impact, and mitigation steps.

Updated: January 22, 2026

CVE-2025-21796 Overview

CVE-2025-21796 is a use-after-free vulnerability in the Linux kernel's NFS daemon (nfsd) subsystem, specifically within the POSIX ACL handling code. The vulnerability occurs when acl_access and acl_default pointers are not properly cleared after being released, leading to a dangling pointer condition that can be exploited to cause system instability or potentially achieve privilege escalation.

When the retrieval of acl_default fails during NFS3 ACL operations, both acl_access and acl_default are released simultaneously. However, the acl_access pointer retains a reference to the already-freed posix_acl structure. This dangling pointer triggers a refcount underflow warning and use-after-free condition when nfs3svc_release_getacl attempts to release the ACL again.

Critical Impact

Local attackers with low privileges can exploit this use-after-free vulnerability to potentially achieve high impacts on confidentiality, integrity, and availability of affected Linux systems running NFS services.

Affected Products

  • Linux Kernel (multiple versions)
  • Linux Kernel 6.14-rc1
  • Linux Kernel 6.14-rc2

Discovery Timeline

  • February 27, 2025 - CVE-2025-21796 published to NVD
  • November 03, 2025 - Last updated in NVD database

Technical Details for CVE-2025-21796

Vulnerability Analysis

This vulnerability is classified as CWE-416 (Use After Free), representing a critical memory safety issue in kernel space. The flaw exists in the NFS daemon's ACL handling code path, where improper pointer management leads to dangerous memory access patterns.

The vulnerability is exploitable locally, requiring the attacker to have low privileges on the system. No user interaction is required to exploit this flaw. The scope is unchanged, meaning the vulnerability affects only the vulnerable component itself, but successful exploitation can result in complete compromise of the confidentiality, integrity, and availability of the affected system.

The root cause lies in the error handling path of the NFSD ACL retrieval functions. When an error occurs while fetching acl_default, the cleanup code releases both ACL structures but fails to nullify the acl_access pointer. This oversight creates a window where subsequent code paths may attempt to dereference or release the already-freed memory.

Root Cause

The vulnerability stems from improper memory management in the NFSD ACL handling code. Specifically, after calling posix_acl_release() on acl_access and acl_default, the pointers are not set to NULL. This violates the principle of defensive programming where released pointers should be immediately invalidated to prevent accidental reuse.

The problematic code path occurs in the error handling section where, upon failure to retrieve acl_default, both ACLs are released but only the error status is tracked. The acl_access pointer continues to hold the address of freed memory, creating a use-after-free condition when nfs3svc_release_getacl is subsequently invoked.

Attack Vector

The attack vector is local, requiring an attacker to have access to a system running the vulnerable NFS daemon. The exploitation scenario involves triggering the specific error condition where acl_default retrieval fails while acl_access has been successfully retrieved.

An attacker can manipulate file system conditions or NFS operations to induce the failure scenario. The kernel panic trace shows the vulnerability manifests through the refcount_warn_saturate function being triggered during the release operation in nfs3svc_release_getacl, indicating a reference count underflow due to the double-free condition.

The attack chain involves:

  1. Triggering NFS ACL operations on the target system
  2. Causing acl_default retrieval to fail while acl_access succeeds
  3. Waiting for the nfs3svc_release_getacl function to attempt releasing the dangling acl_access pointer
  4. Exploiting the resulting memory corruption for privilege escalation or denial of service

Detection Methods for CVE-2025-21796

Indicators of Compromise

  • Kernel panic messages containing refcount_t: underflow; use-after-free warnings
  • Stack traces referencing nfs3svc_release_getacl and refcount_warn_saturate functions
  • Unexpected NFSD process crashes or system instability during ACL operations
  • Kernel log entries showing WARNING messages from lib/refcount.c line 28

Detection Strategies

  • Monitor kernel logs for refcount underflow warnings associated with NFS operations using tools like dmesg or journalctl
  • Deploy kernel live patching solutions to detect and prevent exploitation attempts on unpatched systems
  • Implement SentinelOne Singularity platform for real-time kernel-level threat detection and behavioral analysis

Monitoring Recommendations

  • Enable kernel auditing for NFS-related syscalls and operations to track potential exploitation attempts
  • Configure alerting on kernel panic events with stack traces containing nfs3svc_release_getacl
  • Monitor NFS server resource utilization for anomalous patterns indicating exploitation activity

How to Mitigate CVE-2025-21796

Immediate Actions Required

  • Apply the latest kernel security patches from your Linux distribution immediately
  • Review NFS server exposure and restrict access to trusted networks only
  • Consider temporarily disabling NFSv3 ACL support if patching is not immediately possible
  • Monitor systems for signs of exploitation while preparing patch deployment

Patch Information

The Linux kernel maintainers have released patches to address this vulnerability across multiple kernel versions. The fix involves clearing acl_access and acl_default pointers to NULL after calling posix_acl_release() to prevent the use-after-free condition.

Multiple kernel commits have been published to address this issue:

  • Kernel Commit 1fd94884174b
  • Kernel Commit 2e59b2b68782
  • Kernel Commit 55d947315fb5
  • Kernel Commit 6f7cfee1a316
  • Kernel Commit 7faf14a7b036
  • Kernel Commit 8a1737ae42c9
  • Kernel Commit f8d871523142

Debian users should refer to the Debian LTS Security Announcements for distribution-specific patches.

Workarounds

  • Restrict NFS service access to trusted hosts only using firewall rules and /etc/exports configuration
  • Disable NFSv3 ACL support by modifying NFS server configuration if not required for operations
  • Implement network segmentation to limit exposure of NFS services to untrusted networks
  • Consider migrating to NFSv4 which has different ACL handling mechanisms
bash
# Configuration example
# Restrict NFS exports to specific trusted networks
# Edit /etc/exports to limit client access
/export/data    192.168.1.0/24(rw,sync,no_subtree_check,no_acl)

# Apply export changes
exportfs -ra

# Verify current exports
exportfs -v

# Optional: Block NFS ports from untrusted networks using iptables
iptables -A INPUT -p tcp --dport 2049 -s 192.168.1.0/24 -j ACCEPT
iptables -A INPUT -p tcp --dport 2049 -j DROP

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

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

  • Debian LTS Announcement
  • Vendor Resources
  • Kernel Commit Update

  • Kernel Commit Update

  • Kernel Commit Update

  • Kernel Commit Update

  • Kernel Commit Update

  • Kernel Commit Update

  • Kernel Commit Update
  • Related CVEs
  • CVE-2026-23462: Linux Kernel Use-After-Free Vulnerability

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

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

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