8.1
HIGH CVSS 3.1
CVE-2026-31708
smb: client: fix OOB read in smb2_ioctl_query_info QUERY_INFO path
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.

INFO

Published Date :

May 1, 2026, 2:16 p.m.

Last Modified :

Nov. 11, 2026, 9:10 p.m.

Remotely Exploit :

Yes !

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products

The following products are affected by CVE-2026-31708 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 134c704f-9b21-4f2e-91b3-4a467353bcc0
CVSS 3.1 HIGH 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Solution
Apply kernel updates to fix an out-of-bounds read vulnerability in the SMB client.
  • Update the Linux kernel to the latest stable version.
  • Ensure the system has received the security patch.
  • Reboot the system after updating.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-31708 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2026-31708 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-31708 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-31708 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Translated by [email protected]

    Nov. 11, 2026

    Action Type Old Value New Value
    Added Translation Title: Linux Kernel, Description: En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: smb: cliente: corregir lectura fuera de límites en la ruta QUERY_INFO de smb2_ioctl_query_info smb2_ioctl_query_info() tiene dos ramas de copia de respuesta: PASSTHRU_FSCTL y la ruta QUERY_INFO predeterminada. La rama QUERY_INFO limita qi.input_buffer_length a la OutputBufferLength reportada por el servidor y luego copia qi.input_buffer_length bytes de qi_rsp -> Buffer al espacio de usuario, pero nunca verifica que la carga útil del array flexible realmente quepa dentro de rsp_iov[1].iov_len. Un servidor malicioso puede devolver una OutputBufferLength mayor que la respuesta QUERY_INFO real, haciendo que copy_to_user() se desplace más allá del búfer de respuesta y exponga el heap adyacente del kernel al espacio de usuario. Proteger la copia QUERY_INFO con una comprobación de límites en la carga útil real del Buffer. Usar struct_size(qi_rsp, Buffer, qi.input_buffer_length) en lugar de una adición codificada abiertamente para que la protección no pueda desbordarse en compilaciones de 32 bits.
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Oct. 19, 2026

    Action Type Old Value New Value
    Added CWE CWE-125
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Oct. 16, 2026

    Action Type Old Value New Value
    Added SSVC {'id': 'CVE-2026-31708', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'no'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2026-10-16T15:12:45.456025Z'}
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Oct. 15, 2026

    Action Type Old Value New Value
    Added Reference https://git.kernel.org/stable/c/078fae8f50adebb903ccf2252b44391324571e78
    Added Reference https://git.kernel.org/stable/c/1dd757379997b71a328a4b591ffaf481acd0ead1
    Added Reference https://git.kernel.org/stable/c/85fd46ee26a11841c670449508025965f61ce131
    Added Reference https://git.kernel.org/stable/c/9e203dbb5402897c43130fb171a2617008a91f45
    Added Reference https://git.kernel.org/stable/c/a34d456934fe42e4da5d2cc07787bf418bee99c6
    Added Reference https://git.kernel.org/stable/c/a58c5af19ff0d6f44f6e9fe31e33a2c92223f77e
    Added Reference https://git.kernel.org/stable/c/ac2f14e4705d020f04e806efa0d49ab8dc2b145f
    Added Reference https://git.kernel.org/stable/c/e66bdc0704977ecee667a81d38255b579c2353d0
    Removed Reference https://git.kernel.org/stable/c/078fae8f50adebb903ccf2252b44391324571e78
    Removed Reference https://git.kernel.org/stable/c/1dd757379997b71a328a4b591ffaf481acd0ead1
    Removed Reference https://git.kernel.org/stable/c/85fd46ee26a11841c670449508025965f61ce131
    Removed Reference https://git.kernel.org/stable/c/9e203dbb5402897c43130fb171a2617008a91f45
    Removed Reference https://git.kernel.org/stable/c/a34d456934fe42e4da5d2cc07787bf418bee99c6
    Removed Reference https://git.kernel.org/stable/c/a58c5af19ff0d6f44f6e9fe31e33a2c92223f77e
    Removed Reference https://git.kernel.org/stable/c/ac2f14e4705d020f04e806efa0d49ab8dc2b145f
    Removed Reference https://git.kernel.org/stable/c/e66bdc0704977ecee667a81d38255b579c2353d0
    Removed Reference Type https://git.kernel.org/stable/c/078fae8f50adebb903ccf2252b44391324571e78 Types: Patch
    Removed Reference Type https://git.kernel.org/stable/c/85fd46ee26a11841c670449508025965f61ce131 Types: Patch
    Removed Reference Type https://git.kernel.org/stable/c/a34d456934fe42e4da5d2cc07787bf418bee99c6 Types: Patch
    Removed Reference Type https://git.kernel.org/stable/c/a58c5af19ff0d6f44f6e9fe31e33a2c92223f77e Types: Patch
    Removed Reference Type https://git.kernel.org/stable/c/ac2f14e4705d020f04e806efa0d49ab8dc2b145f Types: Patch
  • CVE Modified by 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e

    Oct. 15, 2026

    Action Type Old Value New Value
    Added Affected New affected value received. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/31xxx/CVE-2026-31708.json">CVE-2026-31708</a>
    Added Reference https://cert-portal.siemens.com/productcert/html/ssa-784472.html
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Jun. 19, 2026

    Action Type Old Value New Value
    Added Reference https://git.kernel.org/stable/c/9e203dbb5402897c43130fb171a2617008a91f45
    Added Reference https://git.kernel.org/stable/c/e66bdc0704977ecee667a81d38255b579c2353d0
    Changed Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': 'f5778c398713692a16150ae96e5c8270bab8399f', 'lessThan': '1dd757379997b71a328a4b591ffaf481acd0ead1', 'versionType': 'git'}, {'status': 'affected', 'version': 'f5778c398713692a16150ae96e5c8270bab8399f', 'lessThan': 'a34d456934fe42e4da5d2cc07787bf418bee99c6', 'versionType': 'git'}, {'status': 'affected', 'version': 'f5778c398713692a16150ae96e5c8270bab8399f', 'lessThan': 'ac2f14e4705d020f04e806efa0d49ab8dc2b145f', 'versionType': 'git'}, {'status': 'affected', 'version': 'f5778c398713692a16150ae96e5c8270bab8399f', 'lessThan': '078fae8f50adebb903ccf2252b44391324571e78', 'versionType': 'git'}, {'status': 'affected', 'version': 'f5778c398713692a16150ae96e5c8270bab8399f', 'lessThan': '85fd46ee26a11841c670449508025965f61ce131', 'versionType': 'git'}, {'status': 'affected', 'version': 'f5778c398713692a16150ae96e5c8270bab8399f', 'lessThan': 'a58c5af19ff0d6f44f6e9fe31e33a2c92223f77e', 'versionType': 'git'}], 'programFiles': ['fs/smb/client/smb2ops.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '5.1'}, {'status': 'unaffected', 'version': '0', 'lessThan': '5.1', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.1.175', 'versionType': 'semver', 'lessThanOrEqual': '6.1.*'}, {'status': 'unaffected', 'version': '6.6.136', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.84', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.25', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.0.2', 'versionType': 'semver', 'lessThanOrEqual': '7.0.*'}, {'status': 'unaffected', 'version': '7.1', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['fs/smb/client/smb2ops.c'], 'defaultStatus': 'affected'}] [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': 'f5778c398713692a16150ae96e5c8270bab8399f', 'lessThan': 'e66bdc0704977ecee667a81d38255b579c2353d0', 'versionType': 'git'}, {'status': 'affected', 'version': 'f5778c398713692a16150ae96e5c8270bab8399f', 'lessThan': '9e203dbb5402897c43130fb171a2617008a91f45', 'versionType': 'git'}, {'status': 'affected', 'version': 'f5778c398713692a16150ae96e5c8270bab8399f', 'lessThan': '1dd757379997b71a328a4b591ffaf481acd0ead1', 'versionType': 'git'}, {'status': 'affected', 'version': 'f5778c398713692a16150ae96e5c8270bab8399f', 'lessThan': 'a34d456934fe42e4da5d2cc07787bf418bee99c6', 'versionType': 'git'}, {'status': 'affected', 'version': 'f5778c398713692a16150ae96e5c8270bab8399f', 'lessThan': 'ac2f14e4705d020f04e806efa0d49ab8dc2b145f', 'versionType': 'git'}, {'status': 'affected', 'version': 'f5778c398713692a16150ae96e5c8270bab8399f', 'lessThan': '078fae8f50adebb903ccf2252b44391324571e78', 'versionType': 'git'}, {'status': 'affected', 'version': 'f5778c398713692a16150ae96e5c8270bab8399f', 'lessThan': '85fd46ee26a11841c670449508025965f61ce131', 'versionType': 'git'}, {'status': 'affected', 'version': 'f5778c398713692a16150ae96e5c8270bab8399f', 'lessThan': 'a58c5af19ff0d6f44f6e9fe31e33a2c92223f77e', 'versionType': 'git'}], 'programFiles': ['fs/smb/client/smb2ops.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '5.1'}, {'status': 'unaffected', 'version': '0', 'lessThan': '5.1', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '5.10.259', 'versionType': 'semver', 'lessThanOrEqual': '5.10.*'}, {'status': 'unaffected', 'version': '5.15.210', 'versionType': 'semver', 'lessThanOrEqual': '5.15.*'}, {'status': 'unaffected', 'version': '6.1.175', 'versionType': 'semver', 'lessThanOrEqual': '6.1.*'}, {'status': 'unaffected', 'version': '6.6.136', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.84', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.25', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.0.2', 'versionType': 'semver', 'lessThanOrEqual': '7.0.*'}, {'status': 'unaffected', 'version': '7.1', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['fs/smb/client/smb2ops.c'], 'defaultStatus': 'affected'}]
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Jun. 17, 2026

    Action Type Old Value New Value
    Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': 'f5778c398713692a16150ae96e5c8270bab8399f', 'lessThan': '1dd757379997b71a328a4b591ffaf481acd0ead1', 'versionType': 'git'}, {'status': 'affected', 'version': 'f5778c398713692a16150ae96e5c8270bab8399f', 'lessThan': 'a34d456934fe42e4da5d2cc07787bf418bee99c6', 'versionType': 'git'}, {'status': 'affected', 'version': 'f5778c398713692a16150ae96e5c8270bab8399f', 'lessThan': 'ac2f14e4705d020f04e806efa0d49ab8dc2b145f', 'versionType': 'git'}, {'status': 'affected', 'version': 'f5778c398713692a16150ae96e5c8270bab8399f', 'lessThan': '078fae8f50adebb903ccf2252b44391324571e78', 'versionType': 'git'}, {'status': 'affected', 'version': 'f5778c398713692a16150ae96e5c8270bab8399f', 'lessThan': '85fd46ee26a11841c670449508025965f61ce131', 'versionType': 'git'}, {'status': 'affected', 'version': 'f5778c398713692a16150ae96e5c8270bab8399f', 'lessThan': 'a58c5af19ff0d6f44f6e9fe31e33a2c92223f77e', 'versionType': 'git'}], 'programFiles': ['fs/smb/client/smb2ops.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '5.1'}, {'status': 'unaffected', 'version': '0', 'lessThan': '5.1', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.1.175', 'versionType': 'semver', 'lessThanOrEqual': '6.1.*'}, {'status': 'unaffected', 'version': '6.6.136', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.84', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.25', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.0.2', 'versionType': 'semver', 'lessThanOrEqual': '7.0.*'}, {'status': 'unaffected', 'version': '7.1', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['fs/smb/client/smb2ops.c'], 'defaultStatus': 'affected'}]
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Jun. 01, 2026

    Action Type Old Value New Value
    Added Reference https://git.kernel.org/stable/c/1dd757379997b71a328a4b591ffaf481acd0ead1
  • Initial Analysis by [email protected]

    May. 06, 2026

    Action Type Old Value New Value
    Added CWE CWE-125
    Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.12.84 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.13 up to (excluding) 6.18.25 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.19 up to (excluding) 7.0.2 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.1 up to (excluding) 6.6.136
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/078fae8f50adebb903ccf2252b44391324571e78 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/85fd46ee26a11841c670449508025965f61ce131 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/a34d456934fe42e4da5d2cc07787bf418bee99c6 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/a58c5af19ff0d6f44f6e9fe31e33a2c92223f77e Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/ac2f14e4705d020f04e806efa0d49ab8dc2b145f Types: Patch
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    May. 03, 2026

    Action Type Old Value New Value
    Added CVSS V3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
  • New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    May. 01, 2026

    Action Type Old Value New Value
    Added 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.
    Added Reference https://git.kernel.org/stable/c/078fae8f50adebb903ccf2252b44391324571e78
    Added Reference https://git.kernel.org/stable/c/85fd46ee26a11841c670449508025965f61ce131
    Added Reference https://git.kernel.org/stable/c/a34d456934fe42e4da5d2cc07787bf418bee99c6
    Added Reference https://git.kernel.org/stable/c/a58c5af19ff0d6f44f6e9fe31e33a2c92223f77e
    Added Reference https://git.kernel.org/stable/c/ac2f14e4705d020f04e806efa0d49ab8dc2b145f
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.