CVE-2026-31708
smb: client: fix OOB read in smb2_ioctl_query_info QUERY_INFO path
Check your servers for CVE-2026-31708
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-31708 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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 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.
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- required: a user has to do something, such as open a link or a file
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.67%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 47.1% of all scored CVEs. Scores of 30 Nov 2026.
The assessment of CISA (SSVC, 16 Oct 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-125 Out-of-bounds Read
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from f5778c398713692a16150ae96e5c8270bab8399f, before e66bdc0704977ecee667a81d38255b579c2353d0 affected from f5778c398713692a16150ae96e5c8270bab8399f, before 9e203dbb5402897c43130fb171a2617008a91f45 affected from f5778c398713692a16150ae96e5c8270bab8399f, before 1dd757379997b71a328a4b591ffaf481acd0ead1 affected from f5778c398713692a16150ae96e5c8270bab8399f, before a34d456934fe42e4da5d2cc07787bf418bee99c6 affected from f5778c398713692a16150ae96e5c8270bab8399f, before ac2f14e4705d020f04e806efa0d49ab8dc2b145f affected from f5778c398713692a16150ae96e5c8270bab8399f, before 078fae8f50adebb903ccf2252b44391324571e78 affected from f5778c398713692a16150ae96e5c8270bab8399f, before 85fd46ee26a11841c670449508025965f61ce131 affected from f5778c398713692a16150ae96e5c8270bab8399f, before a58c5af19ff0d6f44f6e9fe31e33a2c92223f77e
Other versions: unaffected
|
| Linux |
affected 5.1 unaffected before 5.1 unaffected from 5.10.259 up to and including 5.10.* unaffected from 5.15.210 up to and including 5.15.* unaffected from 6.1.175 up to and including 6.1.* unaffected from 6.6.136 up to and including 6.6.* unaffected from 6.12.84 up to and including 6.12.* unaffected from 6.18.25 up to and including 6.18.* unaffected from 7.0.2 up to and including 7.0.* unaffected 7.1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-31708 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-31708
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-31708
trivy image --scanners vuln IMAGE | grep CVE-2026-31708
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/e66bdc0704977ecee667a81d38255b579c2353d0 git.kernel.org
- https://git.kernel.org/stable/c/9e203dbb5402897c43130fb171a2617008a91f45 git.kernel.org
- https://git.kernel.org/stable/c/1dd757379997b71a328a4b591ffaf481acd0ead1 git.kernel.org
- https://git.kernel.org/stable/c/a34d456934fe42e4da5d2cc07787bf418bee99c6 git.kernel.org
- https://git.kernel.org/stable/c/ac2f14e4705d020f04e806efa0d49ab8dc2b145f git.kernel.org
- https://git.kernel.org/stable/c/078fae8f50adebb903ccf2252b44391324571e78 git.kernel.org
- https://git.kernel.org/stable/c/85fd46ee26a11841c670449508025965f61ce131 git.kernel.org
- https://git.kernel.org/stable/c/a58c5af19ff0d6f44f6e9fe31e33a2c92223f77e git.kernel.org
- https://cert-portal.siemens.com/productcert/html/ssa-784472.html cert-portal.siemens.com
Source: the record CVE-2026-31708 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse