{"schema_version":"1.9.0","id":"CVE-2025-68786","published":"2026-01-13T15:28:59.578Z","modified":"2026-08-12T03:51:37.540361308Z","summary":"ksmbd: skip lock-range check on equal size to avoid size==0 underflow","details":"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.","affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"f44158485826c076335d6860d35872271a83791d"},{"fixed":"52fcbb92e0d3acfd1448b2a43b6595d540da5295"},{"fixed":"da29cd197246c85c0473259f1cad897d9d28faea"},{"fixed":"a6f4cfa3783804336491e0edcb250c25f9b59d33"},{"fixed":"571204e4758a528fbd67330bd4b0dfbdafb33dd8"},{"fixed":"5d510ac31626ed157d2182149559430350cf2104"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-68786.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.15.0"},{"fixed":"6.1.160"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.120"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.64"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.3"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-68786.json"}}],"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/52fcbb92e0d3acfd1448b2a43b6595d540da5295"},{"type":"WEB","url":"https://git.kernel.org/stable/c/571204e4758a528fbd67330bd4b0dfbdafb33dd8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5d510ac31626ed157d2182149559430350cf2104"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a6f4cfa3783804336491e0edcb250c25f9b59d33"},{"type":"WEB","url":"https://git.kernel.org/stable/c/da29cd197246c85c0473259f1cad897d9d28faea"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/68xxx/CVE-2025-68786.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-68786"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/68xxx/CVE-2025-68786.json"}}