Linux: Out-of-bounds Write
CVE-2026-31402 is a critical-severity out-of-bounds write vulnerability in Linux, with a CVSS 3.1 base score of 9.8 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. The record lists versions f9fcb4441f6c02bb20c2eb340101e27dfe23607c, 2665887a69437a8a4f552f69509eecfb73d4aa19, c9452c0797c95cf2378170df96cf4f4b3bca7eff as the first without the flaw, so updating Linux to one of those releases or later removes the exposure. There is no confirmed exploitation so far. EPSS estimates a 1.22% chance of exploitation within 30 days, higher than 69% of scored CVEs.
Critical severity: a successful attack would have severe impact.
What to do
- Update Linux to f9fcb4441f6c02bb20c2eb340101e27dfe23607c or 2665887a69437a8a4f552f69509eecfb73d4aa19 or c9452c0797c95cf2378170df96cf4f4b3bca7eff or 8afb437ea1f70cacb4bbdf11771fb5c4d720b965, whichever matches your release line, or a later version.
- Update Linux Kernel to 5.10.253 or 6.1.167 or 6.6.130 or 6.12.78, whichever matches your release line, or a later version.
- Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Linux | Linux | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 up to, but not including, f9fcb4441f6c02bb20c2eb340101e27dfe23607c; 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 up to, but not including, 2665887a69437a8a4f552f69509eecfb73d4aa19; 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 up to, but not including, c9452c0797c95cf2378170df96cf4f4b3bca7eff; 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 up to, but not including, 8afb437ea1f70cacb4bbdf11771fb5c4d720b965; 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 up to, but not including, dad0c3c0a8e5d1d6eb0fc455694ce3e25e6c57d0; 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 up to, but not including, 0f0e2a54a31a7f9ad2915db99156114872317388; 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 up to, but not including, ae8498337dfdfda71bdd0b807c9a23a126011d76; 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 up to, but not including, 5133b61aaf437e5f25b1b396b14242a6bb0508e2; and 1 more ranges | f9fcb4441f6c02bb20c2eb340101e27dfe23607c, 2665887a69437a8a4f552f69509eecfb73d4aa19, c9452c0797c95cf2378170df96cf4f4b3bca7eff, 8afb437ea1f70cacb4bbdf11771fb5c4d720b965, dad0c3c0a8e5d1d6eb0fc455694ce3e25e6c57d0, 0f0e2a54a31a7f9ad2915db99156114872317388 |
| Red Hat | Red Hat Enterprise Linux 10 | Not specified in the record | Not stated |
| Red Hat | Red Hat Enterprise Linux 10.0 Extended Update Support | Not specified in the record | Not stated |
| Red Hat | Red Hat Enterprise Linux 6 Extended Lifecycle Support - EXTENSION | Not specified in the record | Not stated |
| Red Hat | Red Hat Enterprise Linux 7 Extended Lifecycle Support | Not specified in the record | Not stated |
| Red Hat | Red Hat Enterprise Linux 8 | Not specified in the record | Not stated |
| Red Hat | Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | Not specified in the record | Not stated |
| Red Hat | Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On | Not specified in the record | Not stated |
| Red Hat | Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support | Not specified in the record | Not stated |
| Red Hat | Red Hat Enterprise Linux 8.6 Telecommunications Update Service | Not specified in the record | Not stated |
| Red Hat | Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions | Not specified in the record | Not stated |
| Red Hat | Red Hat Enterprise Linux 8.8 Telecommunications Update Service | Not specified in the record | Not stated |
| Red Hat | Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions | Not specified in the record | Not stated |
| Red Hat | Red Hat Enterprise Linux 9 | Not specified in the record | Not stated |
| Red Hat | Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions | Not specified in the record | Not stated |
| Red Hat | Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions | Not specified in the record | Not stated |
| Red Hat | Red Hat Enterprise Linux 9.4 Extended Update Support | Not specified in the record | Not stated |
| Red Hat | Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions | Not specified in the record | Not stated |
| Red Hat | Red Hat Enterprise Linux 9.6 Extended Update Support | Not specified in the record | Not stated |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) | V3.1.6 and later; V3.1.5 and later; V3.1.7 and later | Not stated |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) | V3.1.6 and later; V3.1.5 and later; V3.1.7 and later | Not stated |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) | V3.1.6 and later; V3.1.5 and later; V3.1.7 and later | Not stated |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) | V3.1.6 and later; V3.1.5 and later; V3.1.7 and later | Not stated |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) | V3.1.6 and later; V3.1.5 and later; V3.1.7 and later | Not stated |
| Linux | Linux Kernel | 2.6.12.1 up to, but not including, 5.10.253; 5.11 up to, but not including, 6.1.167; 6.2 up to, but not including, 6.6.130; 6.7 up to, but not including, 6.12.78; 6.13 up to, but not including, 6.18.20; 6.19 up to, but not including, 6.19.10; 2.6.12; 7.0 | 5.10.253, 6.1.167, 6.6.130, 6.12.78, 6.18.20, 6.19.10 |
Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- NoneNo account or login is needed.
- User interaction
- NoneNo action by a victim is required.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- HighAll data handled by the component can be read.
- Integrity
- HighData or code can be modified at will.
- Availability
- HighThe component can be taken down completely.
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. Scored by CNA.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 9.8 | Critical | CNA |
| CVSS 3.1 | 7.8 | High | CNA |
Official 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.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Out-of-bounds Write
The product writes data past the end, or before the beginning, of the intended buffer.
How developers prevent this class of flaw
- Use a language that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. For example, many languages that perform their own memory management, such as Java and Perl, are not subject to buffer overflows. Other languages, such as Ada and C#, typically provide overflow protection, but the protection can be disabled by the programmer. Be wary that a language's interface to native code may still be subject to overflows, even if the language itself is theoretically safe.
- Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. Examples include the Safe C String Library (SafeStr) by Messier and Viega, and the Strsafe.h library from Microsoft. These libraries provide safer versions of overflow-prone string-handling functions.
- Use automatic buffer overflow detection mechanisms that are offered by certain compilers or compiler extensions. Examples include: the Microsoft Visual Studio /GS flag, Fedora/Red Hat FORTIFY_SOURCE GCC flag, StackGuard, and ProPolice, which provide various mechanisms including canary-based detection and range/index checking. D3-SFCV (Stack Frame Canary Validation) from D3FEND discusses canary-based detection in detail.
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: none, automatable: yes, technical impact: total).
- Record last changed materially (score, affected products, status or references).
References
Patches and release notes
- git.kernel.org/stable/c/0f0e2a54a31a7f9ad2915db99156114872317388
- git.kernel.org/stable/c/5133b61aaf437e5f25b1b396b14242a6bb0508e2
- git.kernel.org/stable/c/8afb437ea1f70cacb4bbdf11771fb5c4d720b965
- git.kernel.org/stable/c/ae8498337dfdfda71bdd0b807c9a23a126011d76
- git.kernel.org/stable/c/c9452c0797c95cf2378170df96cf4f4b3bca7eff
- git.kernel.org/stable/c/dad0c3c0a8e5d1d6eb0fc455694ce3e25e6c57d0
- git.kernel.org/stable/c/f9fcb4441f6c02bb20c2eb340101e27dfe23607c
Other references
- git.kernel.org/stable/c/2665887a69437a8a4f552f69509eecfb73d4aa19
- access.redhat.com/errata/RHSA-2026:10108
- access.redhat.com/errata/RHSA-2026:11313
- access.redhat.com/errata/RHSA-2026:13565
- access.redhat.com/errata/RHSA-2026:13566
- access.redhat.com/errata/RHSA-2026:13577
- access.redhat.com/errata/RHSA-2026:13578
- access.redhat.com/errata/RHSA-2026:13664
- access.redhat.com/errata/RHSA-2026:13681
- access.redhat.com/errata/RHSA-2026:13734
- access.redhat.com/errata/RHSA-2026:13936
- access.redhat.com/errata/RHSA-2026:14137
- access.redhat.com/errata/RHSA-2026:14165
- access.redhat.com/errata/RHSA-2026:14301
- access.redhat.com/errata/RHSA-2026:14823
Recent Out-of-bounds Write vulnerabilities
- 7.8 High severity
- 7.8 High severity
- 8.8 High severity
- 8.8 High severity
- 8.8 High severity
- 8.8 High severity
Spotted an error? Tell us.