{"id":"CVE-2025-68786","aliases":["CVE-2025-68786"],"related":[],"kind":"vulnerability","state":"published","title":"ksmbd: skip lock-range check on equal size to avoid size==0 underflow","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nksmbd: omitir la comprobación del rango de bloqueo en tamaño igual para evitar el desbordamiento negativo cuando size==0\n\nCuando size es igual al i_size actual (incluyendo 0), el código solía llamar a check_lock_range(filp, i_size, size - 1, WRITE), que calcula size - 1 y puede sufrir un desbordamiento negativo cuando size==0. Omitir el caso de igualdad.","source":"nvd"}],"published":"2026-01-13T15:28:59.578Z","modified":"2026-06-17T09:59:35.243Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"f44158485826c076335d6860d35872271a83791d","fixed":"52fcbb92e0d3acfd1448b2a43b6595d540da5295","status":"affected"},{"type":"git","introduced":"f44158485826c076335d6860d35872271a83791d","fixed":"da29cd197246c85c0473259f1cad897d9d28faea","status":"affected"},{"type":"git","introduced":"f44158485826c076335d6860d35872271a83791d","fixed":"a6f4cfa3783804336491e0edcb250c25f9b59d33","status":"affected"},{"type":"git","introduced":"f44158485826c076335d6860d35872271a83791d","fixed":"571204e4758a528fbd67330bd4b0dfbdafb33dd8","status":"affected"},{"type":"git","introduced":"f44158485826c076335d6860d35872271a83791d","fixed":"5d510ac31626ed157d2182149559430350cf2104","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.15","status":"unaffected"},{"type":"semver","introduced":"6.1.160","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.120","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.64","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.3","lastAffected":"6.18.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.19","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/52fcbb92e0d3acfd1448b2a43b6595d540da5295","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/da29cd197246c85c0473259f1cad897d9d28faea","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a6f4cfa3783804336491e0edcb250c25f9b59d33","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/571204e4758a528fbd67330bd4b0dfbdafb33dd8","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5d510ac31626ed157d2182149559430350cf2104","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-68786","url":"https://www.cve.org/CVERecord?id=CVE-2025-68786","licence":"CVE Terms of Use","modified":"2026-05-11T21:53:19.839Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-68786","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-68786","licence":"Public domain","modified":"2026-06-17T09:59:35.243Z"}],"updatedAt":"2026-11-25T22:59:10.531Z","epss":{"score":0.002,"percentile":0.10403,"date":"2026-12-01T12:00:22.000Z"}}