CVE-2026-31705: Linux kernel · ksmbd: fix out-of-bounds write in smb2_get_ea() EA alignment
Source GCVE Database
Not known to be exploited · CVSS 9.8 Critical.
Data as of 23 Nov 2026, 10:25 UTC
Thin evidence
One scorer or none| CNA (Linux) | CVSS 3.1 | 9.8 |
|---|
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 1 May 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 22 Nov 2026.
What to do
AI-suggested
No explicit patch links are provided in the input data. Until a fix is applied, avoid processing untrusted SMB2 compound requests with ksmbd or apply any vendor-recommended mitigations once available.
Description
CVE-2026-31705 is a critical out-of-bounds write vulnerability in the Linux kernel's ksmbd component, specifically in the smb2_get_ea() function. The flaw arises because alignment padding is applied unconditionally after writing each Extended Attribute (EA) entry without verifying sufficient buffer space. This can cause 1-3 bytes to be written past the allocated buffer boundary, potentially corrupting adjacent kernel heap memory during compound SMB2 requests. The issue is similar to previously fixed bugs in ksmbd related to out-of-bounds writes in QUERY_INFO response handlers.
References
- nvd.nist.gov/vuln/detail/CVE-2026-31705 (opens in a new tab)
- cert-portal.siemens.com/productcert/html/ssa-784472.html (opens in a new tab)
- git.kernel.org/stable/c/1616f77677a30d13baac9fa166999ac1e85f7c61 (opens in a new tab)
- git.kernel.org/stable/c/30010c952077a1c89ecdd71fc4d574c75a8f5617 (opens in a new tab)
- git.kernel.org/stable/c/790304c02bf9bd7b8171feda4294d6e62d32ae8f (opens in a new tab)
- git.kernel.org/stable/c/922d48fe8c19f388ffa2f709f33acaae4e408de2 (opens in a new tab)
- git.kernel.org/stable/c/98f3de6ef4efbd899348d333f0902dc4ff14380c (opens in a new tab)
- git.kernel.org/stable/c/ddbbc8b2a09dd2cfed90871313e3691ae1db08a2 (opens in a new tab)
- git.kernel.org/stable/c/ffbce350c6fd1e99116ea57383b9031717e36d3b (opens in a new tab)