CVE-2026-31612
ksmbd: validate EaNameLength in smb2_get_ea()
Description
In the Linux kernel, the following vulnerability has been resolved: ksmbd: validate EaNameLength in smb2_get_ea() smb2_get_ea() reads ea_req->EaNameLength from the client request and passes it directly to strncmp() as the comparison length without verifying that the length of the name really is the size of the input buffer received. Fix this up by properly checking the size of the name based on the value received and the overall size of the request, to prevent a later strncmp() call to use the length as a "trusted" size of the buffer. Without this check, uninitialized heap values might be slowly leaked to the client.
INFO
Published Date :
April 24, 2026, 3:16 p.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
- Apply the kernel patch for ksmbd.
- Update the Linux kernel to a fixed version.
- Validate EaNameLength in smb2_get_ea.
- Ensure input sizes are checked before use.
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-31612.
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-31612 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-31612
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-31612 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-31612 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: validar EaNameLength en smb2_get_ea() smb2_get_ea() lee ea_req -> EaNameLength de la solicitud del cliente y lo pasa directamente a strncmp() como la longitud de comparación sin verificar que la longitud del nombre realmente sea el tamaño del búfer de entrada recibido. Esto se soluciona comprobando correctamente el tamaño del nombre basándose en el valor recibido y el tamaño total de la solicitud, para evitar que una llamada posterior a strncmp() use la longitud como un tamaño ’confiable’ del búfer. Sin esta comprobación, los valores de pila no inicializados podrían filtrarse lentamente al cliente. -
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-31612.json">CVE-2026-31612</a> Added Reference https://cert-portal.siemens.com/productcert/html/ssa-784472.html -
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/243b206bcb5a7137e8bddd57b2eec81e1ebd3859 Added Reference https://git.kernel.org/stable/c/3363a770b193f555f29d76ddf4ced3305c0ccf6d Added Reference https://git.kernel.org/stable/c/4b73376feecb3b61172fe5b4ff42bbbb8531669d Added Reference https://git.kernel.org/stable/c/551dfb15b182abad4600eaf7b37e6eb7000d5b1b Added Reference https://git.kernel.org/stable/c/66751841212c2cc196577453c37f7774ff363f02 Added Reference https://git.kernel.org/stable/c/859f11e1bc81a4d32bb3ceeae54bcd296ac675d3 Added Reference https://git.kernel.org/stable/c/dfc6878d14acafffbe670bf2576620757a10a3d8 Removed Reference https://git.kernel.org/stable/c/243b206bcb5a7137e8bddd57b2eec81e1ebd3859 Removed Reference https://git.kernel.org/stable/c/3363a770b193f555f29d76ddf4ced3305c0ccf6d Removed Reference https://git.kernel.org/stable/c/4b73376feecb3b61172fe5b4ff42bbbb8531669d Removed Reference https://git.kernel.org/stable/c/551dfb15b182abad4600eaf7b37e6eb7000d5b1b Removed Reference https://git.kernel.org/stable/c/66751841212c2cc196577453c37f7774ff363f02 Removed Reference https://git.kernel.org/stable/c/859f11e1bc81a4d32bb3ceeae54bcd296ac675d3 Removed Reference https://git.kernel.org/stable/c/dfc6878d14acafffbe670bf2576620757a10a3d8 Removed Reference Type https://git.kernel.org/stable/c/243b206bcb5a7137e8bddd57b2eec81e1ebd3859 Types: Patch Removed Reference Type https://git.kernel.org/stable/c/3363a770b193f555f29d76ddf4ced3305c0ccf6d Types: Patch Removed Reference Type https://git.kernel.org/stable/c/4b73376feecb3b61172fe5b4ff42bbbb8531669d Types: Patch Removed Reference Type https://git.kernel.org/stable/c/551dfb15b182abad4600eaf7b37e6eb7000d5b1b Types: Patch Removed Reference Type https://git.kernel.org/stable/c/66751841212c2cc196577453c37f7774ff363f02 Types: Patch Removed Reference Type https://git.kernel.org/stable/c/dfc6878d14acafffbe670bf2576620757a10a3d8 Types: Patch -
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': 'e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9', 'lessThan': '859f11e1bc81a4d32bb3ceeae54bcd296ac675d3', 'versionType': 'git'}, {'status': 'affected', 'version': 'e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9', 'lessThan': '4b73376feecb3b61172fe5b4ff42bbbb8531669d', 'versionType': 'git'}, {'status': 'affected', 'version': 'e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9', 'lessThan': '551dfb15b182abad4600eaf7b37e6eb7000d5b1b', 'versionType': 'git'}, {'status': 'affected', 'version': 'e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9', 'lessThan': '3363a770b193f555f29d76ddf4ced3305c0ccf6d', 'versionType': 'git'}, {'status': 'affected', 'version': 'e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9', 'lessThan': '243b206bcb5a7137e8bddd57b2eec81e1ebd3859', 'versionType': 'git'}, {'status': 'affected', 'version': 'e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9', 'lessThan': 'dfc6878d14acafffbe670bf2576620757a10a3d8', 'versionType': 'git'}, {'status': 'affected', 'version': 'e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9', 'lessThan': '66751841212c2cc196577453c37f7774ff363f02', 'versionType': 'git'}], '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': '5.15'}, {'status': 'unaffected', 'version': '0', 'lessThan': '5.15', '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.83', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.24', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '6.19.14', 'versionType': 'semver', 'lessThanOrEqual': '6.19.*'}, {'status': 'unaffected', 'version': '7.0.1', 'versionType': 'semver', 'lessThanOrEqual': '7.0.*'}, {'status': 'unaffected', 'version': '7.1', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['fs/smb/server/smb2pdu.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/859f11e1bc81a4d32bb3ceeae54bcd296ac675d3 -
Initial Analysis by [email protected]
Apr. 29, 2026
Action Type Old Value New Value Added CWE NVD-CWE-noinfo Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.13 up to (excluding) 6.18.24 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.19 up to (excluding) 6.19.14 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 7.0 up to (excluding) 7.0.1 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.12.83 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.15 up to (excluding) 6.6.136 Added Reference Type kernel.org: https://git.kernel.org/stable/c/243b206bcb5a7137e8bddd57b2eec81e1ebd3859 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/3363a770b193f555f29d76ddf4ced3305c0ccf6d Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/4b73376feecb3b61172fe5b4ff42bbbb8531669d Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/551dfb15b182abad4600eaf7b37e6eb7000d5b1b Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/66751841212c2cc196577453c37f7774ff363f02 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/dfc6878d14acafffbe670bf2576620757a10a3d8 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:N/UI:N/S:U/C:H/I:N/A:N -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Apr. 27, 2026
Action Type Old Value New Value Added Reference https://git.kernel.org/stable/c/4b73376feecb3b61172fe5b4ff42bbbb8531669d -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Apr. 27, 2026
Action Type Old Value New Value Added Reference https://git.kernel.org/stable/c/66751841212c2cc196577453c37f7774ff363f02 -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Apr. 24, 2026
Action Type Old Value New Value Added Description In the Linux kernel, the following vulnerability has been resolved: ksmbd: validate EaNameLength in smb2_get_ea() smb2_get_ea() reads ea_req->EaNameLength from the client request and passes it directly to strncmp() as the comparison length without verifying that the length of the name really is the size of the input buffer received. Fix this up by properly checking the size of the name based on the value received and the overall size of the request, to prevent a later strncmp() call to use the length as a "trusted" size of the buffer. Without this check, uninitialized heap values might be slowly leaked to the client. Added Reference https://git.kernel.org/stable/c/243b206bcb5a7137e8bddd57b2eec81e1ebd3859 Added Reference https://git.kernel.org/stable/c/3363a770b193f555f29d76ddf4ced3305c0ccf6d Added Reference https://git.kernel.org/stable/c/551dfb15b182abad4600eaf7b37e6eb7000d5b1b Added Reference https://git.kernel.org/stable/c/dfc6878d14acafffbe670bf2576620757a10a3d8