CVE-2025-21945: Linux kernel · ksmbd: fix use-after-free in smb2_lock
Source GCVE Database
Not known to be exploited · CVSS 7.8 High.
Data as of 29 Oct 2026, 22:52 UTC
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 1 Apr 2025
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 29 Oct 2026.
Description
In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix use-after-free in smb2_lock If smb_lock->zero_len has value, ->llist of smb_lock is not delete and flock is old one. It will cause use-after-free on error handling routine.
References
- nvd.nist.gov/vuln/detail/CVE-2025-21945 (opens in a new tab)
- git.kernel.org/stable/c/410ce35a2ed6d0e114132bba29af49b69880c8c7 (opens in a new tab)
- git.kernel.org/stable/c/636e021646cf9b52ddfea7c809b018e91f2188cb (opens in a new tab)
- git.kernel.org/stable/c/84d2d1641b71dec326e8736a749b7ee76a9599fc (opens in a new tab)
- git.kernel.org/stable/c/8573571060ca466cbef2c6f03306b2cc7b883506 (opens in a new tab)
- git.kernel.org/stable/c/a0609097fd10d618aed4864038393dd75131289e (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/05/msg00045.html (opens in a new tab)