{"id":"CVE-2025-68786","published":"2026-01-13T15:28:59Z","modified":"2026-05-11T21:53:19Z","title":"ksmbd: skip lock-range check on equal size to avoid size==0 underflow","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: skip lock-range check on equal size to avoid size==0 underflow\n\nWhen size equals the current i_size (including 0), the code used to call\ncheck_lock_range(filp, i_size, size - 1, WRITE), which computes `size - 1`\nand can underflow for size==0. Skip the equal case.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.002,"percentile":0.09942,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/52fcbb92e0d3acfd1448b2a43b6595d540da5295","tags":[]},{"url":"https://git.kernel.org/stable/c/da29cd197246c85c0473259f1cad897d9d28faea","tags":[]},{"url":"https://git.kernel.org/stable/c/a6f4cfa3783804336491e0edcb250c25f9b59d33","tags":[]},{"url":"https://git.kernel.org/stable/c/571204e4758a528fbd67330bd4b0dfbdafb33dd8","tags":[]},{"url":"https://git.kernel.org/stable/c/5d510ac31626ed157d2182149559430350cf2104","tags":[]}],"priority":{"score":2.0,"factors":[{"name":"EPSS percentile","points":1.99}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= f44158485826c076335d6860d35872271a83791d, < 52fcbb92e0d3acfd1448b2a43b6595d540da5295",">= f44158485826c076335d6860d35872271a83791d, < da29cd197246c85c0473259f1cad897d9d28faea",">= f44158485826c076335d6860d35872271a83791d, < a6f4cfa3783804336491e0edcb250c25f9b59d33",">= f44158485826c076335d6860d35872271a83791d, < 571204e4758a528fbd67330bd4b0dfbdafb33dd8",">= f44158485826c076335d6860d35872271a83791d, < 5d510ac31626ed157d2182149559430350cf2104"]},{"vendor":"Linux","product":"Linux","versions":["5.15"]}],"euvd":{"id":"EUVD-2026-2301","exploited":false,"provenance":"source"}}