CVE-2026-31433
ksmbd: fix potencial OOB in get_file_all_info() for compound requests
Description
In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix potencial OOB in get_file_all_info() for compound requests When a compound request consists of QUERY_DIRECTORY + QUERY_INFO (FILE_ALL_INFORMATION) and the first command consumes nearly the entire max_trans_size, get_file_all_info() would blindly call smbConvertToUTF16() with PATH_MAX, causing out-of-bounds write beyond the response buffer. In get_file_all_info(), there was a missing validation check for the client-provided OutputBufferLength before copying the filename into FileName field of the smb2_file_all_info structure. If the filename length exceeds the available buffer space, it could lead to potential buffer overflows or memory corruption during smbConvertToUTF16 conversion. This calculating the actual free buffer size using smb2_calc_max_out_buf_len() and returning -EINVAL if the buffer is insufficient and updating smbConvertToUTF16 to use the actual filename length (clamped by PATH_MAX) to ensure a safe copy operation.
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
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | HIGH | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
Solution
- Validate client-provided OutputBufferLength.
- Ensure safe copy operations for filenames.
- Update smbConvertToUTF16 for safe conversion.
- Apply the kernel patch for ksmbd.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-31433.
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-31433 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-31433
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-31433 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-31433 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: corregir potencial OOB en get_file_all_info() para solicitudes compuestas Cuando una solicitud compuesta consiste en QUERY_DIRECTORY + QUERY_INFO (FILE_ALL_INFORMATION) y el primer comando consume casi la totalidad de max_trans_size, get_file_all_info() llamaría ciegamente a smbConvertToUTF16() con PATH_MAX, causando una escritura fuera de límites más allá del búfer de respuesta. En get_file_all_info(), faltaba una verificación de validación para el OutputBufferLength proporcionado por el cliente antes de copiar el nombre de archivo en el campo FileName de la estructura smb2_file_all_info. Si la longitud del nombre de archivo excede el espacio de búfer disponible, podría conducir a potenciales desbordamientos de búfer o corrupción de memoria durante la conversión smbConvertToUTF16. Esto calculando el tamaño real del búfer libre usando smb2_calc_max_out_buf_len() y devolviendo -EINVAL si el búfer es insuficiente y actualizando smbConvertToUTF16 para usar la longitud real del nombre de archivo (limitada por PATH_MAX) para asegurar una operación de copia segura. -
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': 'f2283680a80571ca82d710bc6ecd8f8beac67d63', 'lessThan': '3a852f9d1c981fb14f6bf4e24999e0ea8088a7d7', 'versionType': 'git'}, {'status': 'affected', 'version': '9f297df20d93411c0b4ddad7f88ba04a7cd36e77', 'lessThan': '4cca3eff2099b18672934a39cee70aed835d652c', 'versionType': 'git'}, {'status': 'affected', 'version': 'e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d', 'lessThan': '358cdaa1f7fbf2712cb4c5f6b59cb9a5c673c5fe', 'versionType': 'git'}, {'status': 'affected', 'version': 'e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d', 'lessThan': '7aec5a769d2356cbf344d85bcfd36de592ac96a5', 'versionType': 'git'}, {'status': 'affected', 'version': 'e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d', 'lessThan': 'b0cd9725fe2bcc9f37d096b132318a9060373f5d', 'versionType': 'git'}, {'status': 'affected', 'version': 'e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d', 'lessThan': '9d7032851d6f5adbe2739601ca456c0ad3b422f0', 'versionType': 'git'}, {'status': 'affected', 'version': 'e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d', 'lessThan': 'beef2634f81f1c086208191f7228bce1d366493d', 'versionType': 'git'}, {'status': 'affected', 'version': '5.15.145', 'lessThan': '5.15.203', 'versionType': 'semver'}, {'status': 'affected', 'version': '6.1.71', 'lessThan': '6.1.168', 'versionType': 'semver'}], 'programFiles': ['fs/smb/server/smb2pdu.c'], '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': '5.15.203', 'versionType': 'semver', 'lessThanOrEqual': '5.15.*'}, {'status': 'unaffected', 'version': '6.1.168', 'versionType': 'semver', 'lessThanOrEqual': '6.1.*'}, {'status': 'unaffected', 'version': '6.6.131', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.80', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.21', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '6.19.11', 'versionType': 'semver', 'lessThanOrEqual': '6.19.*'}, {'status': 'unaffected', 'version': '7.0', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['fs/smb/server/smb2pdu.c'], 'defaultStatus': 'affected'}] -
Initial Analysis by [email protected]
May. 22, 2026
Action Type Old Value New Value Added CWE CWE-125 Added CPE Configuration OR *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:*:*:*:*:*:*:*:* versions from (including) 6.13 up to (excluding) 6.18.21 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.19 up to (excluding) 6.19.11 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.12.80 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.15.145 up to (excluding) 5.15.203 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.1.71 up to (excluding) 6.1.168 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.6 up to (excluding) 6.6.131 Added Reference Type kernel.org: https://git.kernel.org/stable/c/358cdaa1f7fbf2712cb4c5f6b59cb9a5c673c5fe Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/3a852f9d1c981fb14f6bf4e24999e0ea8088a7d7 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/4cca3eff2099b18672934a39cee70aed835d652c Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/7aec5a769d2356cbf344d85bcfd36de592ac96a5 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/9d7032851d6f5adbe2739601ca456c0ad3b422f0 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/b0cd9725fe2bcc9f37d096b132318a9060373f5d Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/beef2634f81f1c086208191f7228bce1d366493d 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 potencial OOB in get_file_all_info() for compound requests When a compound request consists of QUERY_DIRECTORY + QUERY_INFO (FILE_ALL_INFORMATION) and the first command consumes nearly the entire max_trans_size, get_file_all_info() would blindly call smbConvertToUTF16() with PATH_MAX, causing out-of-bounds write beyond the response buffer. In get_file_all_info(), there was a missing validation check for the client-provided OutputBufferLength before copying the filename into FileName field of the smb2_file_all_info structure. If the filename length exceeds the available buffer space, it could lead to potential buffer overflows or memory corruption during smbConvertToUTF16 conversion. This calculating the actual free buffer size using smb2_calc_max_out_buf_len() and returning -EINVAL if the buffer is insufficient and updating smbConvertToUTF16 to use the actual filename length (clamped by PATH_MAX) to ensure a safe copy operation. Added Reference https://git.kernel.org/stable/c/358cdaa1f7fbf2712cb4c5f6b59cb9a5c673c5fe Added Reference https://git.kernel.org/stable/c/3a852f9d1c981fb14f6bf4e24999e0ea8088a7d7 Added Reference https://git.kernel.org/stable/c/4cca3eff2099b18672934a39cee70aed835d652c Added Reference https://git.kernel.org/stable/c/7aec5a769d2356cbf344d85bcfd36de592ac96a5 Added Reference https://git.kernel.org/stable/c/9d7032851d6f5adbe2739601ca456c0ad3b422f0 Added Reference https://git.kernel.org/stable/c/b0cd9725fe2bcc9f37d096b132318a9060373f5d Added Reference https://git.kernel.org/stable/c/beef2634f81f1c086208191f7228bce1d366493d