Security Resilience

CVE-2026-31708

Memory Safety in Linux Kernel 5.1 – 6.6.136

Published
01 May 2026
Modified
16 October 2026
Patch / advisory
CVSS Score v3.1 8.1
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
EPSS Score 0.0035 27th percentile
Risk Priority 60 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2026-31708 is a high-severity Out-of-bounds Read (CWE-125) vulnerability in Linux Linux Kernel. Its CVSS base score is 8.1 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploitation for Privilege Escalation (T1068); ranked at the 27th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and SA-8 (Security and Privacy Engineering Principles) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

CVE-2026-31708 is an out-of-bounds read vulnerability in the Linux kernel's SMB client, specifically in the smb2_ioctl_query_info() function when handling the QUERY_INFO path. The flaw occurs because the function clamps qi.input_buffer_length to the server-reported OutputBufferLength and copies that length from the response buffer to userspace without verifying that the flexible-array payload fits within rsp_iov[1].iov_len. A malicious server can thus trigger reads beyond the response buffer, exposing adjacent kernel heap memory.

A remote attacker who controls a malicious SMB server can exploit this by returning an OutputBufferLength larger than the actual QUERY_INFO response buffer. Exploitation requires user interaction, such as a victim mounting the share or issuing an SMB2 ioctl query via the Linux kernel's SMB client. This results in kernel heap data leakage to userspace, with a CVSS v3.1 base score of 8.1 (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H), enabling high-impact confidentiality violations and potential denial of service through crashes.

Mitigation patches are available in multiple Linux kernel stable branches, as detailed in the referenced git commits (e.g., 078fae8f50adebb903ccf2252b44391324571e78). These fixes add a bounds check on the actual Buffer payload using struct_size(qi_rsp, Buffer, qi.input_buffer_length) to prevent overflow, particularly on 32-bit builds, and ensure the copy_to_user() operation stays within the response buffer. Security practitioners should update affected kernels promptly.

EU & UK References

Vulnerability Data

In the Linux kernel, the following vulnerability has been resolved: smb: client: fix OOB read in smb2_ioctl_query_info QUERY_INFO path smb2_ioctl_query_info() has two response-copy branches: PASSTHRU_FSCTL and the default QUERY_INFO path. The QUERY_INFO branch clamps qi.input_buffer_length to the server-reported OutputBufferLength and…

more

then copies qi.input_buffer_length bytes from qi_rsp->Buffer to userspace, but it never verifies that the flexible-array payload actually fits within rsp_iov[1].iov_len. A malicious server can return OutputBufferLength larger than the actual QUERY_INFO response, causing copy_to_user() to walk past the response buffer and expose adjacent kernel heap to userspace. Guard the QUERY_INFO copy with a bounds check on the actual Buffer payload. Use struct_size(qi_rsp, Buffer, qi.input_buffer_length) rather than an open-coded addition so the guard cannot overflow on 32-bit builds.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

T1068 Exploitation for Privilege Escalation Privilege Escalation
Adversaries may exploit software vulnerabilities in an attempt to elevate privileges.
T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1203 Exploitation for Client Execution Execution
Adversaries may exploit software vulnerabilities in client applications to execute code.
T1211 Exploitation for Stealth Stealth
Adversaries may exploit vulnerabilities to evade detection by hiding activity, suppressing logging, or operating within trusted or unmonitored components.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2026-52999Same product: Linux Linux Kernel
CVE-2025-22118Same product: Linux Linux Kernel
CVE-2026-63985Same product: Linux Linux Kernel
CVE-2026-31779Same product: Linux Linux Kernel
CVE-2023-39179Same product: Linux Linux Kernel
CVE-2026-43190Same product: Linux Linux Kernel
CVE-2026-45903Same product: Linux Linux Kernel
CVE-2024-39471Same product: Linux Linux Kernel
CVE-2024-57928Same product: Linux Linux Kernel
CVE-2024-53082Same product: Linux Linux Kernel

Affected Assets

linux
linux kernel
5.1 — 6.6.136 · 6.7 — 6.12.84 · 6.13 — 6.18.25

Mitigating Controls

Mitigating Controls (NIST 800-53 r5) AI

Developer testing and evaluation directly finds out-of-bounds read flaws through static analysis, fuzzing, and dynamic bounds checks.

Secure engineering principles require bounds checking and memory-safe constructs that stop out-of-bounds reads from being introduced.

Process isolation confines the effects of an out-of-bounds read to the compromised process.

Input validation rejects malformed indices or lengths that would otherwise cause reads outside buffer bounds.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-06 mostly match
blocks

Secure-development practices such as bounds checking and memory-safe languages directly prevent out-of-bounds reads.

ID.RA-01 partial match
blocks

Vulnerability scanning and recording can discover instances of out-of-bounds reads after code is deployed.

PR.PS-02 partial match
blocks

Routine patching replaces vulnerable code containing out-of-bounds read flaws.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

finds

Security testing in development and acceptance includes fuzzing and static analysis that detect out-of-bounds read defects before release.

A.8.15 Logging partial match
finds

Logging can record evidence of an out-of-bounds read but does not prevent the weakness itself.

prevents

Secure coding standards explicitly forbid unsafe pointer arithmetic and mandate bounds-checked reads, eliminating CWE-125.

References