LiveActive security incident?Get immediate response
CVE Record

CVE-2026-31402: nfsd: fix heap overflow in NFSv4.0 LOCK replay cache

In the Linux kernel, the following vulnerability has been resolved: nfsd: fix heap overflow in NFSv4.0 LOCK replay cache The NFSv4.0 replay cache uses a fixed 112-byte inline buffer (rp_ibuf[NFSD4_REPLAY_ISIZE]) to store encoded operation responses. This size was calculated based on OPEN responses and does not account for LOCK denied responses, which include the 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, 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. This can be triggered remotely by an unauthenticated attacker with two cooperating NFSv4.0 clients: one sets a lock with a large owner string, then the other requests a conflicting lock to provoke the denial. We could fix this by increasing NFSD4_REPLAY_ISIZE to allow for a full opaque, but that would increase the size of every stateowner, when most lockowners are not that large. Instead, fix this by checking the encoded response length against NFSD4_REPLAY_ISIZE before copying into the replay buffer. If the response is too large, set rp_buflen to 0 to skip caching the replay payload. The status is still cached, and the client already received the correct response on the original request.

CriticalCVSS 9.8Not KEV-listedUpdated
Glexia's TakeAutomated analysiscritical

Security readout for executives and security teams

Plain-English summary

A remote, unauthenticated attacker who can reach a Linux NFSv4.0 server may trigger kernel heap corruption through conflicting file-lock requests. Because the flaw occurs inside the kernel, consequences could affect system confidentiality, integrity, and availability. Exposure is limited to systems providing reachable NFSv4.0 service, not Linux hosts generally.

Executive priority

Treat reachable NFSv4.0 servers as urgent patching targets because the flaw is remotely triggerable, requires no authentication, and corrupts kernel memory. Prioritize externally reachable and shared infrastructure first. Systems without active NFSv4.0 service are not the immediate focus, but inventories should confirm that assumption.

Technical view

NFSv4.0 LOCK denial responses can contain a lock-owner field substantially larger than the replay cache’s fixed 112-byte inline buffer. The kernel copied the encoded response without checking its length, permitting a slab out-of-bounds write of up to 944 bytes. The fix skips replay-payload caching when the response exceeds the buffer while retaining the status.

Likely exposure

Highest exposure is on Linux systems running the kernel NFS server, accepting NFSv4.0, and reachable by untrusted or broadly connected clients. Distribution kernels may backport fixes, so the supplied upstream version list alone is insufficient for determining whether a specific installed package is vulnerable.

Exploitation context

The source describes remote, unauthenticated triggering using two cooperating NFSv4.0 clients that create conflicting locks. No user interaction or privileges are required. The supplied bundle says this CVE is not in KEV and provides no evidence of active exploitation or a public exploit.

Researcher notes

The vulnerable path copies a variable-length LOCK denial response into rp_ibuf without a bounds check. The correction checks the encoded length against NFSD4_REPLAY_ISIZE; oversized payloads receive rp_buflen zero, while status caching and the original response remain intact. The sources establish memory corruption, but do not document observed exploitation or a demonstrated post-corruption outcome.

Mitigation direction

  • Inventory hosts providing NFSv4.0 and prioritize those reachable from untrusted or broad internal networks.
  • Apply the vendor kernel update or stable kernel fix applicable to each deployed kernel branch.
  • Reboot where required, then verify the running kernel is the updated build.
  • Until patched, restrict NFS access to explicitly trusted clients and follow distribution-specific guidance.

Validation and detection

  • Confirm whether each Linux host runs the NFS server and accepts NFSv4.0 connections.
  • Compare the running kernel package and build against the relevant vendor advisory or stable fix.
  • Verify the patched kernel is active after maintenance, not merely installed.
  • Review kernel logs and monitoring for memory-corruption or nfsd crash indicators.
  • Test NFS locking and replay behavior in a non-production environment after updating.
Prepared
Confidence
high
Sources
6

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-787: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2026-31402 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Critical
CVSS
9.8 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

2CVSS vectors
5Timeline events
2ADP providers
38Source links

CVSS vector scores

2 official scores

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
9.8CVSS 3.1CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H3.95.9Linux
7.8CVSS 3.1HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H1.85.9redhat-SADP

Vulnerability scoring details

Base CVSS 3.1 score

9.8Critical
CVSS 3.1 vector shape for CVE-2026-31402Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

Vulnerability timeline

Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.

  1. CVE reservedCVE Program

    The CVE ID was reserved by the assigning CNA.

  2. ADP timelineredhat-SADP

    Reported to Red Hat.

  3. ADP timelineredhat-SADP

    Made public.

  4. CVE publishedCVE Program

    The CVE record was published.

  5. CVE updatedCVE Program

    The CVE record metadata indicates this as the latest update time.

ADP provider summaries

redhat-SADPkernel: nfsd: fix heap overflow in NFSv4.0 LOCK replay cache
other:Red Hat severity ratingcvssV3_1
  • 2026-04-03T00:00:00.000Z: Reported to Red Hat.
  • 2026-04-03T00:00:00.000Z: Made public.
siemens-SADPADP container

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
LinuxLinux1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2unaffected
LinuxLinux2.6.12, 0, 5.10.253, 5.15.210, 6.1.167, 6.6.130, 6.12.78, 6.18.20, 6.19.10, 7.0affected
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-787 · source CWE mapping

Out-of-bounds Write

Out-of-bounds Write represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.