Skip to main content
VulnerabilityPublished Updated

CVE-2026-31477: Linux kernel · ksmbd: fix memory leaks and NULL deref in smb2_lock()

Affects Linux kernelSource GCVE Database

0
Compare

Not known to be exploited · CVSS 7.5 High.

Data as of 12 Nov 2026, 03:34 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (Linux)CVSS 3.17.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 22 Apr 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

Community reviews

Loading reviews…