CVE-2026-31402: nfsd: fix heap overflow in NFSv4.0 LOCK replay cache
CVE-2026-31402 key facts
- CISA KEV
- Not listed (catalogue checked )
- Highest advisory rating
- Critical
- CVSS base score
- 9.8 (NetApp), 7.8 (Red Hat)
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H· base score 9.8, scored by LinuxAttack vector: network. Attack complexity: low. Privileges required: none. User interaction: none. Scope: unchanged. Confidentiality impact: high. Integrity impact: high. Availability impact: high.- Weakness
- CWE-787 Out-of-bounds Write
- EPSS
- 1.57% chance of exploitation in the next 30 days (76th percentile). FIRST EPSS, .
- CISA SSVC
- Exploitation: none observed. Automatable: yes. Technical impact: total. CISA, .
- Fixed releases
- NetApp: NetApp Console Agent OVA: 4.13.0, ONTAP tools for VMware vSphere 10: 10.5P2
- Red Hat: RHSA-2026:13936
- Assigned by
- Linux (CNA)
- CVE record published
- Listed by VulniPulse
- Record changed
Ratings, versions and fixes are quoted from the vendor advisories that cover only CVE-2026-31402; each belongs to its advisory, not to every product listed. How records are collected and checked.
Am I affected by CVE-2026-31402?
You are affected if you run Red Hat Enterprise Linux Server -EXTENSION(v. 6 ELS-EXTENSION), Red Hat Enterprise Linux Server Optional -EXTENSION (v. 6 ELS -EXTENSION), Red Hat Enterprise Linux Server (v. 7 ELS) at one of the versions below. If you do, upgrade to the fixed release listed for your version.
| Affected | Fixed in |
|---|---|
| Red Hat: kernel-0:4.18.0-553.123.1.el8_10 | No fixed release on this branch listed by the vendor |
| Red Hat: kernel-0:4.18.0-372.190.1.el8_6 | No fixed release on this branch listed by the vendor |
| Red Hat: kernel-0:4.18.0-477.139.1.el8_8 | No fixed release on this branch listed by the vendor |
| Red Hat: kernel-0:6.12.0-55.72.1.el10_0 | No fixed release on this branch listed by the vendor |
| Red Hat: kernel-rt-0:5.14.0-70.178.1.rt21.250.el9_0 | No fixed release on this branch listed by the vendor |
| Red Hat: kernel-rt-0:4.18.0-553.123.1.rt7.464.el8_10 | No fixed release on this branch listed by the vendor |
| Red Hat: kernel-0:5.14.0-611.54.1.el9_7 | No fixed release on this branch listed by the vendor |
| Red Hat: kernel-0:5.14.0-687.10.1.el9_8 | No fixed release on this branch listed by the vendor |
| Red Hat: kernel-0:5.14.0-427.121.1.el9_4 | No fixed release on this branch listed by the vendor |
| Red Hat: kernel-0:5.14.0-570.110.1.el9_6 | No fixed release on this branch listed by the vendor |
| Red Hat: kernel-0:5.14.0-70.178.1.el9_0 | No fixed release on this branch listed by the vendor |
| Red Hat: kernel-rt-0:3.10.0-1160.149.1.rt56.1301.el7 | No fixed release on this branch listed by the vendor |
Also listed as fixed: Red Hat: RHSA-2026:13936
Description
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.
Text from the CVE.org record (Linux).
How do I fix CVE-2026-31402?
Upgrade to a fixed release named by the vendor:
- NetApp: NetApp Console Agent OVA: 4.13.0, ONTAP tools for VMware vSphere 10: 10.5P2
- Red Hat: RHSA-2026:13936
- Update affected NetApp products to a fixed release: NetApp Console Agent OVA: 4.13.0, ONTAP tools for VMware vSphere 10: 10.5P2. (NetApp)
- NetApp Console Agent OVA: Customers using older versions should upgrade to the latest release, version 4.13.0. (NetApp)
- Update the affected package(s) to the fixed version shipped in RHSA-2026:13936 (`sudo dnf update` / `yum update`). (Red Hat)
Vendor advisories for CVE-2026-31402
NetApp
1 advisory- Advisory severityCritical9.8
Critical [CVE-2026-31402] Linux Kernel Vulnerability in NetApp Products
NTAP-20260417-0008Source published Source updated
Multiple NetApp products incorporate Linux kernel. Certain Linux kernel versions are susceptible to a vulnerability which when successfully exploited could lead to disclosure of sensitive information, addition or modification of data, or Denial of Service (DoS). Affected products: NetApp Console Agent OVA, ONTAP tools for VMware vSphere 10. NetApp reports that one or more additional products remain under investigation; review the canonical advisory for current status. NetApp states there is no workaround available at this time.
- Affected products in this advisory
- NetApp Console Agent OVA
- ONTAP tools for VMware vSphere 10
- Source-reported affected versions
- Affected-version details not available in this record.
- Source-reported fixed versions
- NetApp Console Agent OVA: 4.13.0
- ONTAP tools for VMware vSphere 10: 10.5P2
- Mitigation guidance
- Update affected NetApp products to a fixed release: NetApp Console Agent OVA: 4.13.0, ONTAP tools for VMware vSphere 10: 10.5P2.
- NetApp Console Agent OVA: Customers using older versions should upgrade to the latest release, version 4.13.0.
Red Hat
1 advisory- Advisory severityHigh7.8
High [CVE-2026-31402] fix heap overflow in NFSv4.0 LOCK replay cache
CVE-2026-31402Source published
fix heap overflow in NFSv4.0 LOCK replay cache. Red Hat rates this important (CVSS 7.8). Weakness: CWE-787. Affected package(s): kernel, kernel-rt. Resolved in Red Hat advisory RHSA-2026:13936 — update the affected packages (`sudo dnf update`).
- Affected products in this advisory
- Red Hat Enterprise Linux Server -EXTENSION(v. 6 ELS-EXTENSION)
- Red Hat Enterprise Linux Server Optional -EXTENSION (v. 6 ELS -EXTENSION)
- Red Hat Enterprise Linux Server (v. 7 ELS)
- Red Hat Enterprise Linux for Real Time (v. 7 ELS)
60 more entries in the full advisory.
- Source-reported affected versions
- kernel-0:4.18.0-553.123.1.el8_10
- kernel-0:4.18.0-372.190.1.el8_6
- kernel-0:4.18.0-477.139.1.el8_8
- kernel-0:6.12.0-55.72.1.el10_0
8 more entries in the full advisory.
- Source-reported fixed versions
- RHSA-2026:13936
- Mitigation guidance
- Update the affected package(s) to the fixed version shipped in RHSA-2026:13936 (`sudo dnf update` / `yum update`).
References
- CVE-2026-31402 recordCVE.org
- CVE-2026-31402 detailNVD
- git.kernel.org/stable/c/f9fcb4441f6c02bb20c2eb340101e27dfe23607c
- git.kernel.org/stable/c/2665887a69437a8a4f552f69509eecfb73d4aa19
- git.kernel.org/stable/c/c9452c0797c95cf2378170df96cf4f4b3bca7eff
- git.kernel.org/stable/c/8afb437ea1f70cacb4bbdf11771fb5c4d720b965
- git.kernel.org/stable/c/dad0c3c0a8e5d1d6eb0fc455694ce3e25e6c57d0
- git.kernel.org/stable/c/0f0e2a54a31a7f9ad2915db99156114872317388
- git.kernel.org/stable/c/ae8498337dfdfda71bdd0b807c9a23a126011d76
- git.kernel.org/stable/c/5133b61aaf437e5f25b1b396b14242a6bb0508e2
Timeline
- First vendor advisory listed by VulniPulse
- CVE record published
- CVE record last updated
More NetApp advisories
CVE-2026-99288Nov 18, 2026Linux Kernel Vulnerability in NetApp ProductsCVE-2026-98432Nov 2, 2026Linux Kernel Vulnerability in NetApp ProductsCVE-2026-23066Sep 11, 2026Linux Kernel Vulnerability in NetApp ProductsCVE-2026-22990May 8, 2026Linux Kernel Vulnerability in NetApp ProductsCVE-2026-106582Dec 2, 2026OpenSSH Vulnerability in NetApp ProductsCVE-2026-46675Dec 2, 2026Libpng Vulnerability in NetApp Products
Get an email when NetApp publishes the next one.
See NetApp's last 90 days first. Live alerts for one product are free for life; every vendor is US$10 a month with Pro (first month US$5).