cve.bz

CVE-2026-31402 linux linux kernel: Out-of-bounds Write

9.8 criticalEPSS 1.2%Fix available

Critical (9.8) in linux linux kernel. EPSS 1.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
1.2% (unchanged from 1.2% a week ago; 1.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 69th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2026-10-16. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-787 Out-of-bounds Write
CWE-122 Heap-based Buffer Overflow
Published
Modified
Assigned by
Linux (CNA)
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-31402 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-31402?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-31402?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-31402 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2026-31402

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2026-31402](https://cve.bz/cve/badge/CVE-2026-31402.svg)](https://cve.bz/cve/CVE-2026-31402)

HTML:

<a href="https://cve.bz/cve/CVE-2026-31402"><img src="https://cve.bz/cve/badge/CVE-2026-31402.svg" alt="CVE-2026-31402"></a>

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Linux2.6.12 and later

Fixed in

ProductRelease lineFixed in
Linux5.105.10.253
Linux5.155.15.210
Linux6.16.1.167
Linux6.66.6.130
Linux6.126.12.78
Linux6.186.18.20
Linux6.196.19.10
Linuxlater releases7.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12linux6.1.170-1DEBIAN-CVE-2026-31402
Debian13linux6.12.85-1DEBIAN-CVE-2026-31402
Debian14linux6.19.10-1DEBIAN-CVE-2026-31402
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2026-31402
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 12 moreno fix listedUBUNTU-CVE-2026-31402
Ubuntu20.04:LTSlinux-gke, linux-gkeop, linux-riscv and 26 moreno fix listedUBUNTU-CVE-2026-31402
Ubuntu22.04:LTSlinux5.15.0-185.195UBUNTU-CVE-2026-31402 USN-8493-1
Ubuntu22.04:LTSlinux-aws5.15.0-1111.118UBUNTU-CVE-2026-31402 USN-8493-1
Ubuntu22.04:LTSlinux-aws-6.86.8.0-1060.63~22.04.1UBUNTU-CVE-2026-31402 USN-8492-2
Ubuntu22.04:LTSlinux-azure, linux-azure-fde5.15.0-1116.125UBUNTU-CVE-2026-31402 USN-8493-1
Ubuntu22.04:LTSlinux-azure-6.86.8.0-1063.71~22.04.1UBUNTU-CVE-2026-31402 USN-8606-1
Ubuntu22.04:LTSlinux-azure-fde-6.86.8.0-1062.69~22.04.1UBUNTU-CVE-2026-31402 USN-8609-1
Ubuntu22.04:LTSlinux-gcp5.15.0-1111.121UBUNTU-CVE-2026-31402 USN-8493-1
Ubuntu22.04:LTSlinux-gcp-6.86.8.0-1063.69~22.04.1UBUNTU-CVE-2026-31402 USN-8492-2
Ubuntu22.04:LTSlinux-gke5.15.0-1107.113UBUNTU-CVE-2026-31402 USN-8493-1
167 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:8::baseoskpatch-patch-4_18_0-553_109_1, kpatch-patch-4_18_0-553_109_1-debuginfo, kpatch-patch-4_18_0-553_109_1-debugsource0:1-6.el8_10RHSA-2026:36530
Red Hatenterprise_linux:8::baseoskpatch-patch-4_18_0-553_125_1, kpatch-patch-4_18_0-553_125_1-debuginfo, kpatch-patch-4_18_0-553_125_1-debugsource0:1-3.el8_10RHSA-2026:36530
Red Hatenterprise_linux:8::baseoskpatch-patch-4_18_0-553_53_1, kpatch-patch-4_18_0-553_53_1-debuginfo, kpatch-patch-4_18_0-553_53_1-debugsource0:1-13.el8_10RHSA-2026:36530
Red Hatenterprise_linux:8::baseoskpatch-patch-4_18_0-553_72_1, kpatch-patch-4_18_0-553_72_1-debuginfo, kpatch-patch-4_18_0-553_72_1-debugsource0:1-10.el8_10RHSA-2026:36530
Red Hatenterprise_linux:8::baseoskpatch-patch-4_18_0-553_85_1, kpatch-patch-4_18_0-553_85_1-debuginfo, kpatch-patch-4_18_0-553_85_1-debugsource0:1-8.el8_10RHSA-2026:36530
Red Hatenterprise_linux:8::baseosperf, kernel, bpftool and 30 more0:4.18.0-553.123.1.el8_10RHSA-2026:13577
Red Hatenterprise_linux:8::crbperf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 7 more0:4.18.0-553.123.1.el8_10RHSA-2026:13577
Red Hatenterprise_linux:8::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 12 more0:4.18.0-553.123.1.rt7.464.el8_10RHSA-2026:13578
Red Hatenterprise_linux:8::realtimekernel-rt, kernel-rt-core, kernel-rt-debug and 10 more0:4.18.0-553.123.1.rt7.464.el8_10RHSA-2026:13578
Red Hatenterprise_linux:9::appstreamrv, perf, rtla and 29 more0:5.14.0-611.54.1.el9_7RHSA-2026:13565
Red Hatenterprise_linux:9::appstreamrv, perf, rtla and 29 more0:5.14.0-687.10.1.el9_8RHSA-2026:19568
Red Hatenterprise_linux:9::baseoskernel, kernel-64k, kernel-core and 45 more0:5.14.0-611.54.1.el9_7RHSA-2026:13565
59 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Availability Extension 15 SP6, Linux Enterprise Live Patching 15 SP6kernel-default6.4.0-150600.23.112.1SUSE-SU-2026:2195-1
SUSELinux Enterprise High Availability Extension 15 SP7, Linux Enterprise Live Patching 15 SP7, Linux Enterprise Module for Legacy 15 SP7 and 1 morekernel-default6.4.0-150700.53.55.1SUSE-SU-2026:2238-1
SUSELinux Enterprise Live Patching 12 SP5kgraft-patch-SLE12-SP5_Update_6917-2.1SUSE-SU-2026:2494-1
SUSELinux Enterprise Live Patching 12 SP5kgraft-patch-SLE12-SP5_Update_7017-2.1SUSE-SU-2026:2518-1
SUSELinux Enterprise Live Patching 12 SP5kgraft-patch-SLE12-SP5_Update_7114-2.1SUSE-SU-2026:2549-1
SUSELinux Enterprise Live Patching 12 SP5kgraft-patch-SLE12-SP5_Update_795-2.1SUSE-SU-2026:2592-1
SUSELinux Enterprise Live Patching 12 SP5kgraft-patch-SLE12-SP5_Update_804-2.1SUSE-SU-2026:2603-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4_Update_4021-150400.2.1SUSE-SU-2026:2567-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4_Update_4415-150400.2.1SUSE-SU-2026:2607-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4_Update_4513-150400.2.1SUSE-SU-2026:2601-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4_Update_469-150400.2.1SUSE-SU-2026:2496-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4_Update_479-150400.2.1SUSE-SU-2026:2511-1
35 more for SUSE in the JSON and on SUSE's page.

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This Important flaw in the Linux kernel's NFSv4.0 server (nfsd) allows a heap overflow. In this flaw a local attacker can trigger this by orchestrating two NFSv4.0 clients to create a conflicting lock with an oversized owner string.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10kernel-0:6.12.0-124.55.1.el10_1Fixed 2026-05-04RHSA-2026:13566
Red Hat Enterprise Linux 10kernel-0:6.12.0-211.16.1.el10_2Fixed 2026-05-20RHSA-2026:19569
Red Hat Enterprise Linux 10.0 Extended Update Supportkernel-0:6.12.0-55.72.1.el10_0Fixed 2026-05-11RHSA-2026:15883
Red Hat Enterprise Linux 6 Extended Lifecycle Support - EXTENSIONkernel-0:2.6.32-754.60.1.el6Fixed 2026-05-07RHSA-2026:14823
Red Hat Enterprise Linux 7 Extended Lifecycle Supportkernel-rt-0:3.10.0-1160.149.1.rt56.1301.el7Fixed 2026-05-07RHSA-2026:14869
Red Hat Enterprise Linux 7 Extended Lifecycle Supportkernel-0:3.10.0-1160.149.1.el7Fixed 2026-05-07RHSA-2026:14925
Red Hat Enterprise Linux 8kernel-rt-0:4.18.0-553.123.1.rt7.464.el8_10Fixed 2026-05-05RHSA-2026:13578
Red Hat Enterprise Linux 8kernel-0:4.18.0-553.123.1.el8_10Fixed 2026-05-05RHSA-2026:13577
Red Hat Enterprise Linux 8kpatch-patchFixed 2026-07-08RHSA-2026:36530
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportkernel-0:4.18.0-305.190.1.el8_4Fixed 2026-05-06RHSA-2026:14165
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-Onkernel-0:4.18.0-305.190.1.el8_4Fixed 2026-05-06RHSA-2026:14165
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportkernel-0:4.18.0-372.190.1.el8_6Fixed 2026-05-05RHSA-2026:13664
Red Hat Enterprise Linux 8.6 Telecommunications Update Servicekernel-0:4.18.0-372.190.1.el8_6Fixed 2026-05-05RHSA-2026:13664
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutionskernel-0:4.18.0-372.190.1.el8_6Fixed 2026-05-05RHSA-2026:13664
Red Hat Enterprise Linux 8.8 Telecommunications Update Servicekernel-0:4.18.0-477.139.1.el8_8Fixed 2026-05-05RHSA-2026:13681
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionskernel-0:4.18.0-477.139.1.el8_8Fixed 2026-05-05RHSA-2026:13681
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionskpatch-patchFixed 2026-07-08RHSA-2026:36531
Red Hat Enterprise Linux 9kernel-0:5.14.0-611.54.1.el9_7Fixed 2026-05-04RHSA-2026:13565
Red Hat Enterprise Linux 9kernel-0:5.14.0-687.10.1.el9_8Fixed 2026-05-20RHSA-2026:19568
Red Hat Enterprise Linux 9kernel-rtAffected
9 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-31402.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-26-295-11Siemens SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP2026-10-13Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) >= V3.1.7, SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) >= V3.1.7, SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) >= V3.1.7 and 2 morenone listed
ICSA-26-209-04Siemens SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP2026-07-14Critical ManufacturingSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) >= V3.1.6, SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) >= V3.1.6, SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) >= V3.1.6 and 2 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

GitHub PoC (unverified)

Repositories on GitHub named after this CVE. Nobody has checked them and they are not scanned: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON