ZeroDay Brief
CVE-2026-31708

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…

CVSS
8.1High
Chance of exploitation (EPSS)
0.35%
Published
May 1, 2026
In the news
1 story
Vendor advisory More from this vendor

What to do

A serious memory read flaw in Linux kernel that can be attacked over the network without logging in, if someone is tricked into an action. No attacks are reported yet; it can go in your normal patch cycle.

Action: Apply the vendor's update or follow its advisory.

Fixed in: 6.6.136, 6.12.84, 6.18.25, 7.0.2

Affected versions
Linux
5.1
Linux kernel
5.1 to before 6.6.136; 6.13 to before 6.18.25; 6.19 to before 7.0.2; 6.7 to before 6.12.84

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.

CWE-125

Affected products

Get alerts for these →

Timeline 25

Latest change: Nessus plugin 392045: Ubuntu 24.04 LTS : linux-hwe-7.0 vulnerabilities (USN-8569-1) (Dec 2, 2026)

News, advisories, exploit code, scanner detection and exploitation, newest first.

Thu, Oct 22, 2026

  1. AdvisorySiemens SIMATIC S7 Webserver APICISA · 12:00 UTC
  2. AdvisorySiemens SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFPCISA · 12:00 UTC
  3. AdvisorySiemens SIMATIC IPCsCISA · 12:00 UTC
  4. AdvisorySiemens SIMATIC S7 PLCs Web ServerCISA · 12:00 UTC
  5. AdvisorySiemens SIMATIC S7-1500 TM MFPCISA · 12:00 UTC

Fri, May 1, 2026

  1. CVECVE-2026-31708 published (CVSS 8.1)CVE Program · 14:16 UTC

References 9

You are leaving ZeroDay Brief

This link goes to exploit code on a third-party site. We find these links automatically and do not test, review or vouch for them. They may contain malware or fake exploits.

We are not responsible for anything that happens if you open the page or run its code. Never run exploit code on systems you care about.

↑ ↓ moveEnter openEsc closeTry “CVE-2026”, “fortinet” or “ivanti”