CVE-2026-31477: Linux kernel · ksmbd: fix memory leaks and NULL deref in smb2_lock()
Affects Linux kernelSource GCVE Database
Not known to be exploited · CVSS 7.5 High.
Data as of 12 Nov 2026, 03:34 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:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 22 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. Users should apply the official Linux kernel updates that include this patch to resolve the memory leak and NULL dereference issues in smb2_lock(). Since no cloud service is involved, manual patching is required. There are no vendor advisories indicating that no action is required or that the issue is already mitigated.
Description
CVE-2026-31477 addresses memory leaks and a NULL pointer dereference in the smb2_lock() function of the Linux kernel's ksmbd component. The vulnerability involves improper error handling after detaching smb_lock from the lock list, leading to resource leaks and potential kernel crashes. The issue was identified through call-graph analysis and fixed by improving cleanup and error propagation logic.
References
- git.kernel.org/stable/c/cdac6f7e7e428dc70e3b5898ac6999a72ed13993 (opens in a new tab)
- git.kernel.org/stable/c/c9b95ef6f5039f19e46c3a521a4fe1752d91dfe9 (opens in a new tab)
- git.kernel.org/stable/c/91aeaa7256006d79a37298f5a1df23325db91599 (opens in a new tab)
- git.kernel.org/stable/c/3cdacd11b41569ce75b3162142240f2355e04900 (opens in a new tab)
- git.kernel.org/stable/c/aab42f0795620cf0d3955a520f571f697d0f9a2a (opens in a new tab)
- git.kernel.org/stable/c/309b44ed684496ed3f9c5715d10b899338623512 (opens in a new tab)