CVE-2026-31612: Linux kernel · ksmbd: validate EaNameLength in smb2_get_ea()
Affects Linux kernelSource GCVE Database
Not known to be exploited · CVSS 7.5 High.
Data as of 12 Nov 2026, 03:20 UTC
Thin evidence
One scorer or none| CNA (Linux) | CVSS 3.1 | 7.5 |
|---|
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 24 Apr 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 11 Nov 2026.
What to do
AI-suggested
A fix for this vulnerability has been implemented in the Linux kernel by adding proper validation of the EaNameLength field in smb2_get_ea(). Users should apply the official Linux kernel updates that include this patch to remediate the issue. Since this is a kernel vulnerability, updating to the fixed kernel version is the recommended mitigation. No alternative workarounds are indicated.
Description
CVE-2026-31612 is a high-severity vulnerability in the Linux kernel's ksmbd component. It involves improper validation of the EaNameLength field in the smb2_get_ea() function, which can lead to uninitialized heap data being leaked to a client. The flaw arises because the length value is used directly in a strncmp() call without verifying that it matches the actual size of the input buffer. This vulnerability has been resolved by adding proper size checks to prevent misuse of the length as a trusted buffer size.
References
- git.kernel.org/stable/c/859f11e1bc81a4d32bb3ceeae54bcd296ac675d3 (opens in a new tab)
- git.kernel.org/stable/c/4b73376feecb3b61172fe5b4ff42bbbb8531669d (opens in a new tab)
- git.kernel.org/stable/c/551dfb15b182abad4600eaf7b37e6eb7000d5b1b (opens in a new tab)
- git.kernel.org/stable/c/3363a770b193f555f29d76ddf4ced3305c0ccf6d (opens in a new tab)
- git.kernel.org/stable/c/243b206bcb5a7137e8bddd57b2eec81e1ebd3859 (opens in a new tab)
- git.kernel.org/stable/c/dfc6878d14acafffbe670bf2576620757a10a3d8 (opens in a new tab)
- git.kernel.org/stable/c/66751841212c2cc196577453c37f7774ff363f02 (opens in a new tab)
- cert-portal.siemens.com/productcert/html/ssa-784472.html (opens in a new tab)