What’s Vulnerable › Vulnerabilities

CVE-2025-21945: ksmbd: fix use-after-free in smb2_lock

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.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 6.1.131, 6.12.19, 6.13.7, 6.6.83. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-21945 or the next vulnerability affects your stack