Skip to main content
Mallory
HighVulnerability

CVE-2026-31402: Heap buffer overflow in Linux nfsd NFSv4.0 LOCK replay cache

Published Apr 3, 2026 · Updated today
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days2 mentions · peak 1 in a dayToday
CVSS7.8High · v3.1
EPSS0.62%44th percentile
CISA KEVNoNot listed
In the wildNoneNo exploitation reported
Vendor
Linux
IdentifiersCVE-2026-31402CWE-122 · Heap-based Buffer Overflow

CVE-2026-31402 is a heap buffer overflow in the Linux kernel NFS server's NFSv4.0 LOCK replay cache. The cache stores encoded operation responses in a fixed 112-byte inline buffer, rp_ibuf, sized by NFSD4_REPLAY_ISIZE. Although sized for OPEN responses, this buffer cannot accommodate LOCK-denied responses containing a conflicting lock-owner identifier of up to 1,024 bytes. When such a response is generated, nfsd4_encode_operation() copies it through read_bytes_from_xdr_buf() without checking the destination capacity. The resulting slab-out-of-bounds write can extend up to 944 bytes beyond the buffer and corrupt adjacent kernel heap memory. An unauthenticated remote attacker can trigger the condition using two cooperating NFSv4.0 clients.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation corrupts adjacent kernel heap memory and can cause a kernel crash and denial of service affecting the NFS server and other workloads on the host. Arbitrary code execution, privilege escalation, and information disclosure have not been established for this vulnerability.

Mitigation

If you can’t patch tonight, do this now.

Until patched, restrict NFS access to trusted clients using network segmentation and access controls. Disable NFSv4.0 where operationally feasible to remove access to the affected protocol path. These measures reduce exposure but do not correct the underlying memory-safety defect.

Remediation

Patch, then assume compromise.

Apply the distribution- or product-supported kernel update containing the fix for CVE-2026-31402. The fix validates the encoded response length against NFSD4_REPLAY_ISIZE before copying. For oversized responses, it sets rp_buflen to zero, skipping replay-payload caching while retaining the cached operation status; the original request still receives the correct response. Reboot into the updated kernel unless an applicable vendor-supported live patch is deployed. For RHEL 9.4, RHSA-2026:10108 supplies kernel version 5.14.0-427.121.1.el9_4. Relevant RHEL 8.8 and 9.2 configurations also have kpatch updates under RHSA-2026:36531 and RHSA-2026:36532, respectively.

Public exploits

Exploits

No validated public exploits yet. Hidden: 1 rejected by Mallory's analysis as not a working exploit.

View more in app →
Every candidate exploit was rejected by Mallory's analysis.
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
LinuxLinux Kerneloperating_system
FAQ

Frequently asked questions

Is CVE-2026-31402 exploited in the wild?
As of Nov 27, 2026, Mallory has no reports of CVE-2026-31402 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2026-31402?
As of Nov 27, 2026, Mallory has found no public exploit for CVE-2026-31402.
Is there a patch for CVE-2026-31402?
Apply the distribution- or product-supported kernel update containing the fix for CVE-2026-31402. The fix validates the encoded response length against NFSD4_REPLAY_ISIZE before copying.
What products are affected by CVE-2026-31402?
Linux Kernel.
How severe is CVE-2026-31402?
CVE-2026-31402 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 0.62% (44th percentile) as of Nov 27, 2026.
Activity feed

Recent activity

62 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
tenable nessus pluginsNews · Nov 26, 2026Unity Linux 20.1050a Security Update: kernel (UTSA-2026-168746) | Tenable®A heap overflow in the Linux kernel's NFSv4.0 LOCK replay cache affects the Unity Linux kernel package. Oversized lock-denial responses are copied into a fixed 112-byte buffer without bounds checking, allowing up to 944 bytes of adjacent heap corruption. The description states that an unauthenticated remote attacker can trigger the flaw using two cooperating NFSv4.0 clients. A kernel update is available.Read more ↗tenable nessus pluginsNews · Nov 19, 2026Unity Linux 20.1070e Security Update: kernel (UTSA-2026-167009) | Tenable®A heap buffer overflow in the Linux kernel's NFSv4.0 server LOCK replay cache affects the kernel package in Unity Linux 20. A denied LOCK response containing a large conflicting lock-owner string can overflow a fixed 112-byte replay buffer, writing up to 944 bytes beyond its boundary and corrupting adjacent heap memory. The description states that an unauthenticated remote attacker can trigger this using two cooperating NFSv4.0 clients. The fix checks the encoded response length and skips caching oversized payloads.Read more ↗tenable cloud security pluginsNews · Oct 2, 2026Google: sys-kernel/csql-kernel-6_6, sys-kernel/lakitu-kernel-6... | Tenable®A heap buffer overflow in the Linux kernel's NFSv4.0 server replay cache. Encoded LOCK denial responses are copied into an undersized buffer without bounds checking, corrupting adjacent heap memory. The description states that an unauthenticated remote attacker can trigger the flaw using two cooperating NFSv4.0 clients. The fix checks response length and skips caching oversized payloads. The plugin's CVSS v3 vector describes local, low-privilege access, which conflicts with the remote unauthenticated attack described in its vulnerability text.Read more ↗tenable cloud security pluginsNews · Oct 1, 2026Google: sys-kernel/csql-kernel-6_1, sys-kernel/lakitu-kernel-6... | Tenable®A Linux kernel NFSD heap-overflow vulnerability in NFSv4.0 LOCK replay-cache handling. An oversized encoded LOCK-denied response can overflow the fixed replay buffer and corrupt adjacent heap memory; the content states it can be remotely triggered by unauthenticated cooperating NFSv4.0 clients.Read more ↗
+29 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity7Community discussion across Reddit, Mastodon, and other social sources.