CVE-2025-21945
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-21945 is a use-after-free vulnerability discovered in the Linux kernel's ksmbd component, specifically in the smb2_lock functionality. The vulnerability was disclosed on April 1, 2025, and affects multiple versions of the Linux kernel. The issue occurs when smb_lock->zero_len has a value, causing ->llist of smb_lock to not be deleted while flock remains as an old instance (NVD, CVE).

Technical details

The vulnerability has been assigned a CVSS v3.1 Base Score of 7.8 (HIGH) with the vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. It is classified as CWE-416 (Use After Free). The affected versions include Linux kernel 6.14-rc1 through rc5, versions from 6.13 up to 6.13.7, versions from 5.15 up to 6.1.131, versions from 6.2 up to 6.6.83, and versions from 6.7 up to 6.12.19 (NVD).

Impact

The vulnerability has received a High severity rating due to its potential impact on system security. With a CVSS score of 7.8, it indicates significant potential for confidentiality, integrity, and availability compromises if successfully exploited (NVD).

Mitigation and workarounds

Multiple patches have been released to address this vulnerability. Debian has released fixes in version 6.1.133-1 for bookworm and 6.12.22-1 for sid. The bullseye release is not affected as the vulnerable code is not present. Users are advised to update their systems to the latest patched versions (Debian).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-71142N/AN/A
  • Linux KernelLinux Kernel
  • kernel-zfcpdump-modules-core
NoNoJan 14, 2026
CVE-2025-71137N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-devel-matched
NoYesJan 14, 2026
CVE-2025-71135N/AN/A
  • Linux KernelLinux Kernel
  • kernel-doc
NoNoJan 14, 2026
CVE-2025-71134N/AN/A
  • Linux KernelLinux Kernel
  • kernel-abi-stablelists
NoNoJan 14, 2026
CVE-2025-71133N/AN/A
  • Linux KernelLinux Kernel
  • kernel-zfcpdump-modules
NoYesJan 14, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management