Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-31708

HIGH 8.1EPSS 46%

smb: client: fix OOB read in smb2_ioctl_query_info QUERY_INFO path

Mitigation

  • No fix listed yet: follow the vendor advisory.

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

Vulnerability facts

Affected
Linux >= f5778c398713692a16150ae96e5c8270bab8399f, < e66bdc0704977ecee667a81d38255b579c2353d0; >= f5778c398713692a16150ae96e5c8270bab8399f, < 9e203dbb5402897c43130fb171a2617008a91f45; >= f5778c398713692a16150ae96e5c8270bab8399f, < 1dd757379997b71a328a4b591ffaf481acd0ead1; >= f5778c398713692a16150ae96e5c8270bab8399f, < a34d456934fe42e4da5d2cc07787bf418bee99c6; >= f5778c398713692a16150ae96e5c8270bab8399f, < ac2f14e4705d020f04e806efa0d49ab8dc2b145f; >= f5778c398713692a16150ae96e5c8270bab8399f, < 078fae8f50adebb903ccf2252b44391324571e78; >= f5778c398713692a16150ae96e5c8270bab8399f, < 85fd46ee26a11841c670449508025965f61ce131; >= f5778c398713692a16150ae96e5c8270bab8399f, < a58c5af19ff0d6f44f6e9fe31e33a2c92223f77e; Linux 5.1
Fixed in
Linux 9e203dbb5402897c43130fb171a2617008a91f45, Linux 1dd757379997b71a328a4b591ffaf481acd0ead1, Linux 078fae8f50adebb903ccf2252b44391324571e78, Linux 85fd46ee26a11841c670449508025965f61ce131
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
8.1 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:HOpen in CVSS calculator
Show all 8 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
EPSS
0.65% chance of exploitation in 30 days (percentile 46, 2026-11-26)
CWE
CWE-125
Published
Modified

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

Package / productAffectedFixedSource
Linux>= f5778c398713692a16150ae96e5c8270bab8399f, < e66bdc0704977ecee667a81d38255b579c2353d0; >= f5778c398713692a16150ae96e5c8270bab8399f, < 9e203dbb5402897c43130fb171a2617008a91f45; >= f5778c398713692a16150ae96e5c8270bab8399f, < 1dd757379997b71a328a4b591ffaf481acd0ead1; >= f5778c398713692a16150ae96e5c8270bab8399f, < a34d456934fe42e4da5d2cc07787bf418bee99c6; >= f5778c398713692a16150ae96e5c8270bab8399f, < ac2f14e4705d020f04e806efa0d49ab8dc2b145f; >= f5778c398713692a16150ae96e5c8270bab8399f, < 078fae8f50adebb903ccf2252b44391324571e78; >= f5778c398713692a16150ae96e5c8270bab8399f, < 85fd46ee26a11841c670449508025965f61ce131; >= f5778c398713692a16150ae96e5c8270bab8399f, < a58c5af19ff0d6f44f6e9fe31e33a2c92223f77e—cvelist
Linux5.1—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors