CVE-2026-31402 - In the Linux kernel, the following vulnerability has been resolved: nfsd: fix heap overflow in NFSv4.0 LOCK re
CVE-2026-31402 + In the Linux kernel, the following vulnerability has been resolved: nfsd: fix heap overflow in NFSv4.0 LOCK re + Critical + 2026-04-03
One-sentence business risk
Broken authentication or authorization can expose tenant data and administrator actions, which buyers treat as a release blocker.
Research notes
- Root cause: 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.
- Affected versions: before copying into the replay buffer.
- Fixed / safe versions: fixed 112-byte inline buffer.
- Public exploit / PoC signal: the consulted NVD/GHSA/vendor sources describe the trigger class; treat it as reproducible until patched.
- CVSS: 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
Exact vulnerable code pattern
update_or_read(request.body.target_id) # no owner/role check
Fixed / mitigated code pattern
target = load_owned_resource(actor, target_id); require_role(actor, target, "admin")
Dependency or runtime update:
rg -n "affected component|CVE-2026-31402" .
# update affected runtime/product to fixed 112-byte inline buffer
Step-by-step integration guide
- Inventory
affected componentacross source, lockfiles, SBOMs, container images, CI images, and deployment manifests. - Upgrade to
fixed 112-byte inline bufferor apply the exact vendor patch referenced below. - Replace the vulnerable
authzpattern with the fixed pattern and fail closed on malformed input. - Add a regression test that exercises the advisory trigger and proves the request is rejected, bounded, or authorized.
- Deploy through canary, monitor security logs and resource metrics, then remove temporary edge blocks only after all runtimes are fixed.
Alternative mitigations
- Disable the vulnerable feature path while the package/runtime update rolls out.
- Add WAF or reverse-proxy rules for traversal tokens, prototype-polluting keys, oversized frames, shell metacharacters, or unauthenticated tool calls matching the trigger class.
- Restrict internal egress, rotate exposed secrets, and revoke affected tokens/keys if the vulnerability can disclose config, logs, JWT secrets, proxy credentials, or PKI material.
- For admin/API authorization issues, temporarily require elevated roles and explicit ownership checks at the gateway.
Detection signature
id: cve-2026-31402-in-the-linux-kernel-the-following-vulnerability-
source: NVD bulk JSON feed
dependency_or_product: "affected component"
affected: "before copying into the replay buffer"
fixed: "fixed 112-byte inline buffer"
signals:
- "authz"
- "../"
- "__proto__"
- "tools/call"
- "wp_ajax_nopriv"
- "pickle.loads"
- "shell command construction"
action: "upgrade, add regression test, and verify deploy artifact"
Copy-paste skill
You are remediating CVE-2026-31402 (In the Linux kernel, the following vulnerability has been resolved: nfsd: fix heap overflow in NFSv4.0 LOCK re) in this repository.
Find every affected dependency, runtime, image, service configuration, and reachable code path. Upgrade or patch to fixed 112-byte inline buffer. Replace the vulnerable authz pattern with a fail-closed implementation, add a regression test for the trigger shape, and update deployment/SBOM artifacts. If this repository does not control the affected runtime, create TRIAGE.md naming the owner, affected version, fixed version, and blocking decision.
Keywords, affected tech stack, and revenue tags
- Keywords:
CVE-2026-31402,authz,affected component,NVD bulk JSON feed. - Affected tech stack:
general. - Revenue tags:
sellable_to_fintech,enterprise_blocker,zero_day_gold.
References
- https://access.redhat.com/errata/RHSA-2026:10108
- https://access.redhat.com/errata/RHSA-2026:11313
- https://access.redhat.com/errata/RHSA-2026:13565
- https://access.redhat.com/errata/RHSA-2026:13566
- https://access.redhat.com/errata/RHSA-2026:13577
- https://access.redhat.com/errata/RHSA-2026:13578
- https://access.redhat.com/errata/RHSA-2026:13664
- https://access.redhat.com/errata/RHSA-2026:13681
- https://access.redhat.com/errata/RHSA-2026:13734
- https://access.redhat.com/errata/RHSA-2026:13936
- https://access.redhat.com/errata/RHSA-2026:14137
- https://access.redhat.com/errata/RHSA-2026:14165
- https://access.redhat.com/errata/RHSA-2026:14301
- https://access.redhat.com/errata/RHSA-2026:14823
- https://access.redhat.com/errata/RHSA-2026:14869
- https://access.redhat.com/errata/RHSA-2026:14925
- https://access.redhat.com/errata/RHSA-2026:15883
- https://access.redhat.com/errata/RHSA-2026:19568
- https://access.redhat.com/errata/RHSA-2026:19569
- https://access.redhat.com/security/cve/CVE-2026-31402
- https://bugzilla.redhat.com/show_bug.cgi?id=2454844
- https://git.kernel.org/stable/c/0f0e2a54a31a7f9ad2915db99156114872317388
- https://git.kernel.org/stable/c/2665887a69437a8a4f552f69509eecfb73d4aa19
- https://git.kernel.org/stable/c/5133b61aaf437e5f25b1b396b14242a6bb0508e2
- https://git.kernel.org/stable/c/8afb437ea1f70cacb4bbdf11771fb5c4d720b965
- https://git.kernel.org/stable/c/ae8498337dfdfda71bdd0b807c9a23a126011d76
- https://git.kernel.org/stable/c/c9452c0797c95cf2378170df96cf4f4b3bca7eff
- https://git.kernel.org/stable/c/dad0c3c0a8e5d1d6eb0fc455694ce3e25e6c57d0
- https://git.kernel.org/stable/c/f9fcb4441f6c02bb20c2eb340101e27dfe23607c
- https://nvd.nist.gov/vuln/detail/CVE-2026-31402
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-31402.json