# CVE-2026-31708: smb: client: fix OOB read in smb2\_ioctl\_query\_info QUERY\_INFO path

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.1
- **CVSS:** 8.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.65% (percentile 46, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2026-05-01T13:56:05.880Z
- **Modified:** 2026-11-11T21:10:00.200Z

## Who should check

- Anyone running Linux \>= f5778c398713692a16150ae96e5c8270bab8399f, \< e66bdc0704977ecee667a81d38255b579c2353d0; \>= f5778c398713692a16150ae96e5c8270bab8399f, \< 9e203dbb5402897c43130fb171a2617008a91f45; \>= f5778c398713692a16150ae96e5c8270bab8399f, \< 1dd757379997b71a328a4b591ffaf481acd0ead1; \>= f5778c398713692a16150ae96e5c8270bab8399f, \< a34d456934fe42e4da5d2cc07787bf418bee99c6; \>= f5778c398713692a16150ae96e5c8270bab8399f, \< ac2f14e4705d020f04e806efa0d49ab8dc2b145f; \>= f5778c398713692a16150ae96e5c8270bab8399f, \< 078fae8f50adebb903ccf2252b44391324571e78; \>= f5778c398713692a16150ae96e5c8270bab8399f, \< 85fd46ee26a11841c670449508025965f61ce131; \>= f5778c398713692a16150ae96e5c8270bab8399f, \< a58c5af19ff0d6f44f6e9fe31e33a2c92223f77e
- Anyone running Linux 5.1

## 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.

## Affected and fixed versions

- Linux: \>= f5778c398713692a16150ae96e5c8270bab8399f, \< e66bdc0704977ecee667a81d38255b579c2353d0; \>= f5778c398713692a16150ae96e5c8270bab8399f, \< 9e203dbb5402897c43130fb171a2617008a91f45; \>= f5778c398713692a16150ae96e5c8270bab8399f, \< 1dd757379997b71a328a4b591ffaf481acd0ead1; \>= f5778c398713692a16150ae96e5c8270bab8399f, \< a34d456934fe42e4da5d2cc07787bf418bee99c6; \>= f5778c398713692a16150ae96e5c8270bab8399f, \< ac2f14e4705d020f04e806efa0d49ab8dc2b145f; \>= f5778c398713692a16150ae96e5c8270bab8399f, \< 078fae8f50adebb903ccf2252b44391324571e78; \>= f5778c398713692a16150ae96e5c8270bab8399f, \< 85fd46ee26a11841c670449508025965f61ce131; \>= f5778c398713692a16150ae96e5c8270bab8399f, \< a58c5af19ff0d6f44f6e9fe31e33a2c92223f77e (cvelist)
- Linux: 5.1 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-31708. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-31708.md
Affected: Linux >= f5778c398713692a16150ae96e5c8270bab8399f, < e66bdc0704977ecee667a81d38255b579c2353d0; >= f5778c398713692a16150ae96e5c8270bab8399f, < 9e203dbb5402897c43130fb171a2617008a91f45; >= f5778c398713692a16150ae96e5c8270bab8399f, < 1dd757379997b71a328a4b591ffaf481acd0ead1; >= f5778c398713692a16150ae…
Fixed in: Linux 9e203dbb5402897c43130fb171a2617008a91f45, Linux 1dd757379997b71a328a4b591ffaf481acd0ead1, Linux 078fae8f50adebb903ccf2252b44391324571e78, Linux 85fd46ee26a11841c670449508025965f61ce131

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-31708 being exploited?

There is no confirmed exploitation: CVE-2026-31708 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.65% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-31708?

High: CVSS 8.1 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-31708?

Linux \>= f5778c398713692a16150ae96e5c8270bab8399f, \< e66bdc0704977ecee667a81d38255b579c2353d0; \>= f5778c398713692a16150ae96e5c8270bab8399f, \< 9e203dbb5402897c43130fb171a2617008a91f45; \>= f5778c398713692a16150ae96e5c8270bab8399f, \< 1dd757379997b71a328a4b591ffaf481acd0ead1; \>= f5778c398713692a16150ae96e5c8270bab8399f, \< a34d456934fe42e4da5d2cc07787bf418bee99c6; \>= f5778c398713692a16150ae96e5c8270bab8399f, \< ac2f14e4705d020f04e806efa0d49ab8dc2b145f; \>= f5778c398713692a16150ae96e5c8270bab8399f, \< 078fae8f50adebb903ccf2252b44391324571e78; \>= f5778c398713692a16150ae96e5c8270bab8399f, \< 85fd46ee26a11841c670449508025965f61ce131; \>= f5778c398713692a16150ae96e5c8270bab8399f, \< a58c5af19ff0d6f44f6e9fe31e33a2c92223f77e; Linux 5.1.

### Is there a fix for CVE-2026-31708?

Yes. Fixed in Linux 9e203dbb5402897c43130fb171a2617008a91f45, Linux 1dd757379997b71a328a4b591ffaf481acd0ead1, Linux 078fae8f50adebb903ccf2252b44391324571e78, Linux 85fd46ee26a11841c670449508025965f61ce131. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-31708?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/a34d456934fe42e4da5d2cc07787bf418bee99c6>
- patch: <https://git.kernel.org/stable/c/ac2f14e4705d020f04e806efa0d49ab8dc2b145f>
- patch: <https://git.kernel.org/stable/c/078fae8f50adebb903ccf2252b44391324571e78>
- patch: <https://git.kernel.org/stable/c/85fd46ee26a11841c670449508025965f61ce131>
- patch: <https://git.kernel.org/stable/c/a58c5af19ff0d6f44f6e9fe31e33a2c92223f77e>
- other: <https://git.kernel.org/stable/c/e66bdc0704977ecee667a81d38255b579c2353d0>
- other: <https://git.kernel.org/stable/c/9e203dbb5402897c43130fb171a2617008a91f45>
- other: <https://git.kernel.org/stable/c/1dd757379997b71a328a4b591ffaf481acd0ead1>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-784472.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-31708>

HTML: <https://flawdb.com/CVE-2026-31708> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-31708>
