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-2026-31402

CVE-2026-31402: Linux Kernel Buffer Overflow Vulnerability

CVE-2026-31402 is a buffer overflow vulnerability in the Linux kernel's NFSv4.0 LOCK replay cache that allows heap corruption. This post covers the technical details, affected versions, impact, and mitigation strategies.

Published: April 10, 2026

CVE-2026-31402 Overview

CVE-2026-31402 is a heap overflow vulnerability in the Linux kernel's NFSv4.0 LOCK replay cache implementation. The NFSv4.0 replay cache uses a fixed 112-byte inline buffer (rp_ibuf[NFSD4_REPLAY_ISIZE]) to store encoded operation responses. This buffer size was calculated based on OPEN responses and does not account for LOCK denied responses, which include a conflicting lock owner as a variable-length field up to 1024 bytes (NFS4_OPAQUE_LIMIT).

When a LOCK operation is denied due to a conflict with an existing lock that has a large owner string, nfsd4_encode_operation() copies the full encoded response into the undersized replay buffer via read_bytes_from_xdr_buf() with no bounds check. This results in a slab-out-of-bounds write of up to 944 bytes past the end of the buffer, corrupting adjacent heap memory.

Critical Impact

This vulnerability can be triggered remotely by an unauthenticated attacker with two cooperating NFSv4.0 clients, potentially leading to kernel memory corruption, denial of service, or privilege escalation.

Affected Products

  • Linux Kernel (NFSv4.0 server implementations)
  • Systems running NFS server daemon (nfsd) with NFSv4.0 enabled
  • Enterprise Linux distributions with vulnerable kernel versions

Discovery Timeline

  • 2026-04-03 - CVE CVE-2026-31402 published to NVD
  • 2026-04-07 - Last updated in NVD database

Technical Details for CVE-2026-31402

Vulnerability Analysis

The vulnerability exists in the NFSv4.0 replay cache mechanism within the Linux kernel's nfsd subsystem. The replay cache is designed to handle idempotent request retransmissions by storing previously encoded responses for potential replay. However, the fixed buffer size of 112 bytes (NFSD4_REPLAY_ISIZE) was designed with OPEN operation responses in mind and fails to accommodate the larger LOCK denied responses.

When an NFSv4.0 LOCK operation results in a denial due to conflicting locks, the response must include the conflicting lock owner information. The NFSv4 protocol allows lock owners to be opaque data up to 1024 bytes (NFS4_OPAQUE_LIMIT). The nfsd4_encode_operation() function attempts to copy this potentially oversized response into the undersized replay buffer without performing adequate bounds checking, leading to a classic heap buffer overflow condition.

Root Cause

The root cause is a buffer size miscalculation in the NFSv4.0 replay cache design. The NFSD4_REPLAY_ISIZE constant was set to 112 bytes based on the expected size of OPEN operation responses, without considering that LOCK denied responses can be significantly larger due to the variable-length lock owner field. The absence of bounds checking in read_bytes_from_xdr_buf() when copying into the replay buffer allows the overflow to occur.

Attack Vector

The attack can be executed remotely by an unauthenticated attacker using two cooperating NFSv4.0 clients:

  1. The first client establishes a lock on a file with a large owner string (up to 1024 bytes)
  2. The second client requests a conflicting lock on the same file region
  3. The NFS server denies the lock request and attempts to cache the denial response, including the large lock owner from the conflicting lock
  4. The oversized response overflows the 112-byte replay buffer, corrupting up to 944 bytes of adjacent heap memory

This attack requires only network access to an NFSv4.0 server and does not require any authentication credentials.

Detection Methods for CVE-2026-31402

Indicators of Compromise

  • Kernel panic or crash events originating from nfsd or slab allocator subsystems
  • Unusual NFS client connections establishing locks with abnormally large owner strings (approaching 1024 bytes)
  • Memory corruption signatures in kernel logs referencing nfsd stateowner structures
  • Slab corruption warnings or KASAN reports indicating out-of-bounds writes in nfsd-related slabs

Detection Strategies

  • Monitor kernel logs for slab-out-of-bounds write warnings related to nfsd operations
  • Implement network monitoring for NFSv4 LOCK operations with oversized owner fields
  • Deploy kernel memory debugging tools (KASAN, KFENCE) to detect heap corruption in test environments
  • Use NFS traffic analysis to identify suspicious patterns of lock acquisition followed by conflicting lock requests

Monitoring Recommendations

  • Enable kernel memory sanitizers in development and staging environments to detect heap corruption
  • Configure alerting for nfsd service crashes or unexpected restarts
  • Monitor network traffic to NFS servers for unusual client behavior patterns
  • Implement audit logging for NFSv4 lock operations to enable forensic analysis

How to Mitigate CVE-2026-31402

Immediate Actions Required

  • Apply the kernel patches from the stable kernel trees immediately
  • Consider temporarily disabling NFSv4.0 support and using NFSv4.1+ if operationally feasible
  • Restrict network access to NFS servers to trusted clients only
  • Implement firewall rules to limit NFS exposure to known, authorized clients

Patch Information

The Linux kernel developers have released fixes across multiple stable kernel branches. The patch adds a bounds check to verify the encoded response length against NFSD4_REPLAY_ISIZE before copying into the replay buffer. If the response exceeds the buffer size, rp_buflen is set to 0 to skip caching the replay payload while still caching the status.

The following kernel git commits contain the fix:

  • Kernel Git Commit 0f0e2a5
  • Kernel Git Commit 5133b61
  • Kernel Git Commit 8afb437
  • Kernel Git Commit ae84983
  • Kernel Git Commit c9452c0
  • Kernel Git Commit dad0c3c

Workarounds

  • Restrict NFSv4.0 access to only trusted clients through firewall rules and NFS export options
  • Consider using NFSv4.1 or newer which may have different replay cache implementations
  • Implement network segmentation to isolate NFS servers from untrusted network segments
  • Monitor and limit the maximum lock owner size accepted by NFS clients if possible through client-side configuration
bash
# Restrict NFS server access via iptables (example)
iptables -A INPUT -p tcp --dport 2049 -s 192.168.1.0/24 -j ACCEPT
iptables -A INPUT -p tcp --dport 2049 -j DROP

# Configure NFS exports to restrict client access
# In /etc/exports, limit to trusted subnets:
# /export/data 192.168.1.0/24(rw,sync,no_subtree_check)

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechLinux Kernel

  • SeverityNONE

  • CVSS ScoreN/A

  • EPSS Probability0.05%

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

  • Kernel Git Commit Update 2

  • Kernel Git Commit Update 3

  • Kernel Git Commit Update 4

  • Kernel Git Commit Update 5

  • Kernel Git Commit Update 6
  • Related CVEs
  • CVE-2026-23448: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-23447: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-31395: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-31393: Linux Kernel Buffer Overflow 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