CVE-2026-31402: Heap buffer overflow in Linux nfsd NFSv4.0 LOCK replay cache
- Vendor
- Linux
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.
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.
Exploits
No validated public exploits yet. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
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.
References
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.
Recent activity
62 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.