CVE-2025-21945Published Apr 1, 2025 · Apr 1Updated Oct 28
ksmbd: fix use-after-free in smb2_lock
Linux
High8.8Fix 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 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.
From the CVE record · Linux
A flaw in Linux kernel ksmbd's smb2_lock handling can cause a use-after-free during error handling when a lock has zero length. An attacker may be able to trigger the flaw, but the input does not specify whether access, authentication, or user interaction is required.
Engineers running the Linux kernel should check whether their version includes the ksmbd fix; affected versions are not specified.