What’s Vulnerable › Vulnerabilities

CVE-2025-21944: ksmbd: fix bug on trap in smb2_lock

Description

In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix bug on trap in smb2_lock If lock count is greater than 1, flags could be old value. It should be checked with flags of smb_lock, not flags. It will cause bug-on trap from locks_free_lock in 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-21944 or the next vulnerability affects your stack