CVE-2025-68786

published 13 Jan 2026 · updated 11 May 2026

ksmbd: skip lock-range check on equal size to avoid size==0 underflow

7.8HighCVSS 7.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 52fcbb92e0d3acfd1448b2a43b6595d540da5295, Kernel 571204e4758a528fbd67330bd4b0dfbdafb33dd8, Kernel 5d510ac31626ed157d2182149559430350cf2104 and 2 more.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=5.15, >=f44158485826c076335d6860d35872271a83791d <52fcbb92e0d3acfd1448b2a43b6595d540da5295, >=f44158485826c076335d6860d35872271a83791d <571204e4758a528fbd67330bd4b0dfbdafb33dd8, >=f44158485826c076335d6860d35872271a83791d <5d510ac31626ed157d2182149559430350cf2104, >=f44158485826c076335d6860d35872271a83791d <a6f4cfa3783804336491e0edcb250c25f9b59d33, >=f44158485826c076335d6860d35872271a83791d <da29cd197246c85c0473259f1cad897d9d28faea52fcbb92e0d3acfd1448b2a43b6595d540da5295, 571204e4758a528fbd67330bd4b0dfbdafb33dd8, 5d510ac31626ed157d2182149559430350cf2104, a6f4cfa3783804336491e0edcb250c25f9b59d33, da29cd197246c85c0473259f1cad897d9d28faea

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-68786 severity on Zeptric[![CVE-2025-68786](https://zeptric.io/badge/cve/CVE-2025-68786.svg)](https://zeptric.io/cve/CVE-2025-68786)