CVE-2025-21944Published Apr 1, 2025 · Apr 1Updated Oct 28
ksmbd: fix bug on trap in smb2_lock
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
In the Linux kernel's ksmbd smb2_lock, an incorrect flags check when the lock count exceeds one can cause a bug-on trap during error handling. The input does not establish who can trigger it or whether authentication or user interaction is required.
Engineers running Linux kernels with ksmbd should check their systems; affected versions are not specified.