Vulnerabilities · 2025 · Linux
CVE-2025-21945
Linux Kernel vulnerability
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.
Affected products
Linux Kernel. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Linux Kernel runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- git.kernel.org/stable/c/410ce35a2ed6d0e114132bba29af49b69880c8c7 · Patch
- git.kernel.org/stable/c/636e021646cf9b52ddfea7c809b018e91f2188cb · Patch
- git.kernel.org/stable/c/84d2d1641b71dec326e8736a749b7ee76a9599fc · Patch
- git.kernel.org/stable/c/8573571060ca466cbef2c6f03306b2cc7b883506 · Patch
- git.kernel.org/stable/c/a0609097fd10d618aed4864038393dd75131289e · Patch
- lists.debian.org/debian-lts-announce/2025/05/msg00045.html
- nvd.nist.gov/vuln/detail/CVE-2025-21945
- cve.org/CVERecord?id=CVE-2025-21945
More vulnerabilities in Linux products
CVE-2026-46300CVE-2025-40364CVE-2025-40325CVE-2025-40300CVE-2025-40114CVE-2025-40014CVE-2025-39989CVE-2025-39967All 12,086
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.