CVE-2025-68786Published Jan 13, 2026 · Jan 13Updated Oct 28
ksmbd: skip lock-range check on equal size to avoid size==0 underflow
Linux
Unrated
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: skip lock-range check on equal size to avoid size==0 underflow
When size equals the current i_size (including 0), the code used to call check_lock_range(filp, i_size, size - 1, WRITE), which computes `size - 1` and can underflow for size==0. Skip the equal case.
From the CVE record · Linux
The Linux kernel's ksmbd lock-range check can underflow when the requested size equals the current file size and both are zero. The input does not specify what an attacker could achieve or the access conditions needed to trigger it.
Operators running Linux kernels with ksmbd should check their kernel version; affected versions are not specified.