8.8
HIGH CVSS 3.1
CVE-2026-31432
ksmbd: fix OOB write in QUERY_INFO for compound requests
Description

In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix OOB write in QUERY_INFO for compound requests When a compound request such as READ + QUERY_INFO(Security) is received, and the first command (READ) consumes most of the response buffer, ksmbd could write beyond the allocated buffer while building a security descriptor. The root cause was that smb2_get_info_sec() checked buffer space using ppntsd_size from xattr, while build_sec_desc() often synthesized a significantly larger descriptor from POSIX ACLs. This patch introduces smb_acl_sec_desc_scratch_len() to accurately compute the final descriptor size beforehand, performs proper buffer checking with smb2_calc_max_out_buf_len(), and uses exact-sized allocation + iov pinning.

INFO

Published Date :

April 22, 2026, 9:16 a.m.

Last Modified :

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

Remotely Exploit :

Yes !

Source :

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

The following products are affected by CVE-2026-31432 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 3.1 HIGH 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Solution
Fixes an out-of-bounds write in ksmbd by accurately calculating buffer space and performing proper checks.
  • Apply the Linux kernel patch for the ksmbd vulnerability.
  • Ensure buffer space is accurately calculated.
  • Perform proper buffer checking before writing.
  • Use exact-sized allocation and iov pinning.
Public PoC/Exploit Available at Github

CVE-2026-31432 has a 1 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

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-31432 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-31432 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).

Doki — universal containers, zero friction. Docker & Podman compatible. Rootless. Runs anywhere

Makefile Go Python

Updated: 7 months ago
8 stars 0 fork 0 watcher
Born at : May 4, 2026, 1:34 p.m. This repo has been linked 2 different CVEs too.

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-31432 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-31432 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: ksmbd: corrección de escritura fuera de límites en QUERY_INFO para solicitudes compuestas Cuando se recibe una solicitud compuesta como READ + QUERY_INFO(Security), y el primer comando (READ) consume la mayor parte del búfer de respuesta, ksmbd podría escribir más allá del búfer asignado mientras construye un descriptor de seguridad. La causa raíz fue que smb2_get_info_sec() verificaba el espacio del búfer usando ppntsd_size de xattr, mientras que build_sec_desc() a menudo sintetizaba un descriptor significativamente más grande a partir de ACL de POSIX. Este parche introduce smb_acl_sec_desc_scratch_len() para calcular con precisión el tamaño final del descriptor de antemano, realiza una verificación adecuada del búfer con smb2_calc_max_out_buf_len(), y utiliza asignación de tamaño exacto + fijación de iov.
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Oct. 30, 2026

    Action Type Old Value New Value
    Added Affected Affected value modified. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/31xxx/CVE-2026-31432.json">CVE-2026-31432</a>
    Added Reference https://git.kernel.org/stable/c/075ea208c648cc2bcd616295b711d3637c61de45
    Added Reference https://git.kernel.org/stable/c/515c2daab46021221bdf406bef19bc90a44ec617
    Added Reference https://git.kernel.org/stable/c/533f84264e28c54a79257ea87d2f94a0fcc9a611
    Added Reference https://git.kernel.org/stable/c/850452af77f55d185f9445e1f7a1db53c5e4aad4
    Added Reference https://git.kernel.org/stable/c/d48c64fb80ad78b3dd29fb7d79b6ec7bd72bfc09
    Added Reference https://git.kernel.org/stable/c/fda9522ed6afaec45cabc198d8492270c394c7bc
    Removed Reference https://git.kernel.org/stable/c/075ea208c648cc2bcd616295b711d3637c61de45
    Removed Reference https://git.kernel.org/stable/c/515c2daab46021221bdf406bef19bc90a44ec617
    Removed Reference https://git.kernel.org/stable/c/850452af77f55d185f9445e1f7a1db53c5e4aad4
    Removed Reference https://git.kernel.org/stable/c/d48c64fb80ad78b3dd29fb7d79b6ec7bd72bfc09
    Removed Reference https://git.kernel.org/stable/c/fda9522ed6afaec45cabc198d8492270c394c7bc
    Removed Reference Type https://git.kernel.org/stable/c/075ea208c648cc2bcd616295b711d3637c61de45 Types: Patch
    Removed Reference Type https://git.kernel.org/stable/c/515c2daab46021221bdf406bef19bc90a44ec617 Types: Patch
    Removed Reference Type https://git.kernel.org/stable/c/d48c64fb80ad78b3dd29fb7d79b6ec7bd72bfc09 Types: Patch
    Removed Reference Type https://git.kernel.org/stable/c/fda9522ed6afaec45cabc198d8492270c394c7bc Types: Patch
  • 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/850452af77f55d185f9445e1f7a1db53c5e4aad4
    Changed Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': 'e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d', 'lessThan': 'd48c64fb80ad78b3dd29fb7d79b6ec7bd72bfc09', 'versionType': 'git'}, {'status': 'affected', 'version': 'e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d', 'lessThan': '075ea208c648cc2bcd616295b711d3637c61de45', 'versionType': 'git'}, {'status': 'affected', 'version': 'e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d', 'lessThan': '515c2daab46021221bdf406bef19bc90a44ec617', 'versionType': 'git'}, {'status': 'affected', 'version': 'e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d', 'lessThan': 'fda9522ed6afaec45cabc198d8492270c394c7bc', 'versionType': 'git'}, {'status': 'affected', 'version': 'f2283680a80571ca82d710bc6ecd8f8beac67d63', 'versionType': 'git'}, {'status': 'affected', 'version': '9f297df20d93411c0b4ddad7f88ba04a7cd36e77', 'versionType': 'git'}, {'status': 'affected', 'version': '5.15.145', 'lessThan': '5.16', 'versionType': 'semver'}, {'status': 'affected', 'version': '6.1.71', 'lessThan': '6.2', 'versionType': 'semver'}], 'programFiles': ['fs/smb/server/smb2pdu.c', 'fs/smb/server/smbacl.c', 'fs/smb/server/smbacl.h'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '6.6'}, {'status': 'unaffected', 'version': '0', 'lessThan': '6.6', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.12.81', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.22', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '6.19.12', 'versionType': 'semver', 'lessThanOrEqual': '6.19.*'}, {'status': 'unaffected', 'version': '7.0', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['fs/smb/server/smb2pdu.c', 'fs/smb/server/smbacl.c', 'fs/smb/server/smbacl.h'], 'defaultStatus': 'affected'}] [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': 'e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d', 'lessThan': '850452af77f55d185f9445e1f7a1db53c5e4aad4', 'versionType': 'git'}, {'status': 'affected', 'version': 'e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d', 'lessThan': 'd48c64fb80ad78b3dd29fb7d79b6ec7bd72bfc09', 'versionType': 'git'}, {'status': 'affected', 'version': 'e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d', 'lessThan': '075ea208c648cc2bcd616295b711d3637c61de45', 'versionType': 'git'}, {'status': 'affected', 'version': 'e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d', 'lessThan': '515c2daab46021221bdf406bef19bc90a44ec617', 'versionType': 'git'}, {'status': 'affected', 'version': 'e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d', 'lessThan': 'fda9522ed6afaec45cabc198d8492270c394c7bc', 'versionType': 'git'}, {'status': 'affected', 'version': 'f2283680a80571ca82d710bc6ecd8f8beac67d63', 'versionType': 'git'}, {'status': 'affected', 'version': '9f297df20d93411c0b4ddad7f88ba04a7cd36e77', 'versionType': 'git'}, {'status': 'affected', 'version': '5.15.145', 'lessThan': '5.16', 'versionType': 'semver'}, {'status': 'affected', 'version': '6.1.71', 'lessThan': '6.2', 'versionType': 'semver'}], 'programFiles': ['fs/smb/server/smb2pdu.c', 'fs/smb/server/smbacl.c', 'fs/smb/server/smbacl.h'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '6.6'}, {'status': 'unaffected', 'version': '0', 'lessThan': '6.6', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.6.143', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.81', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.22', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '6.19.12', 'versionType': 'semver', 'lessThanOrEqual': '6.19.*'}, {'status': 'unaffected', 'version': '7.0', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['fs/smb/server/smb2pdu.c', 'fs/smb/server/smbacl.c', 'fs/smb/server/smbacl.h'], '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': 'e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d', 'lessThan': 'd48c64fb80ad78b3dd29fb7d79b6ec7bd72bfc09', 'versionType': 'git'}, {'status': 'affected', 'version': 'e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d', 'lessThan': '075ea208c648cc2bcd616295b711d3637c61de45', 'versionType': 'git'}, {'status': 'affected', 'version': 'e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d', 'lessThan': '515c2daab46021221bdf406bef19bc90a44ec617', 'versionType': 'git'}, {'status': 'affected', 'version': 'e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d', 'lessThan': 'fda9522ed6afaec45cabc198d8492270c394c7bc', 'versionType': 'git'}, {'status': 'affected', 'version': 'f2283680a80571ca82d710bc6ecd8f8beac67d63', 'versionType': 'git'}, {'status': 'affected', 'version': '9f297df20d93411c0b4ddad7f88ba04a7cd36e77', 'versionType': 'git'}, {'status': 'affected', 'version': '5.15.145', 'lessThan': '5.16', 'versionType': 'semver'}, {'status': 'affected', 'version': '6.1.71', 'lessThan': '6.2', 'versionType': 'semver'}], 'programFiles': ['fs/smb/server/smb2pdu.c', 'fs/smb/server/smbacl.c', 'fs/smb/server/smbacl.h'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '6.6'}, {'status': 'unaffected', 'version': '0', 'lessThan': '6.6', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.12.81', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.22', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '6.19.12', 'versionType': 'semver', 'lessThanOrEqual': '6.19.*'}, {'status': 'unaffected', 'version': '7.0', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['fs/smb/server/smb2pdu.c', 'fs/smb/server/smbacl.c', 'fs/smb/server/smbacl.h'], 'defaultStatus': 'affected'}]
  • Initial Analysis by [email protected]

    May. 21, 2026

    Action Type Old Value New Value
    Added CWE CWE-787
    Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.15.145 up to (excluding) 5.16 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.1.71 up to (excluding) 6.2 *cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.0:rc6:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.13 up to (excluding) 6.18.22 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.19 up to (excluding) 6.19.12 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.6 up to (excluding) 6.12.81
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/075ea208c648cc2bcd616295b711d3637c61de45 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/515c2daab46021221bdf406bef19bc90a44ec617 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/d48c64fb80ad78b3dd29fb7d79b6ec7bd72bfc09 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/fda9522ed6afaec45cabc198d8492270c394c7bc Types: Patch
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Apr. 27, 2026

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

    Apr. 22, 2026

    Action Type Old Value New Value
    Added Description In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix OOB write in QUERY_INFO for compound requests When a compound request such as READ + QUERY_INFO(Security) is received, and the first command (READ) consumes most of the response buffer, ksmbd could write beyond the allocated buffer while building a security descriptor. The root cause was that smb2_get_info_sec() checked buffer space using ppntsd_size from xattr, while build_sec_desc() often synthesized a significantly larger descriptor from POSIX ACLs. This patch introduces smb_acl_sec_desc_scratch_len() to accurately compute the final descriptor size beforehand, performs proper buffer checking with smb2_calc_max_out_buf_len(), and uses exact-sized allocation + iov pinning.
    Added Reference https://git.kernel.org/stable/c/075ea208c648cc2bcd616295b711d3637c61de45
    Added Reference https://git.kernel.org/stable/c/515c2daab46021221bdf406bef19bc90a44ec617
    Added Reference https://git.kernel.org/stable/c/d48c64fb80ad78b3dd29fb7d79b6ec7bd72bfc09
    Added Reference https://git.kernel.org/stable/c/fda9522ed6afaec45cabc198d8492270c394c7bc
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.