# CVE-2025-68786: ksmbd: skip lock-range check on equal size to avoid size==0 underflow

- Priority: **Routine**
- Reason: Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-01-13 · Modified: 2026-05-11
- Aliases: UBUNTU-CVE-2025-68786, DEBIAN-CVE-2025-68786
- Record: https://cvemate.com/vulnerability/CVE-2025-68786 · JSON: https://cvemate.com/vulnerability/CVE-2025-68786/json

## Description

```text
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.
```

## Signals

- CVSS: 5.3 medium (v4.0, OSV · Ubuntu) CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
- EPSS: 0.2%, percentile 10.377%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 160)

- debian linux (Debian): \< 6.1.162-1 \| \< 6.12.69-1 \| \< 6.18.3-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-110.110 \| \< 6.17.0-22.22
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1052.55 \| \< 6.17.0-1012.12
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.14 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.17 (Ubuntu): \< 6.17.0-1012.12~24.04.1
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1052.55~22.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1052.55+fips1
- ubuntu linux-aws-hwe (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1054.60 \| \< 6.17.0-1013.13

## References (first 20 of 29)

- <https://git.kernel.org/stable/c/52fcbb92e0d3acfd1448b2a43b6595d540da5295>
- <https://git.kernel.org/stable/c/da29cd197246c85c0473259f1cad897d9d28faea>
- <https://git.kernel.org/stable/c/a6f4cfa3783804336491e0edcb250c25f9b59d33>
- <https://git.kernel.org/stable/c/571204e4758a528fbd67330bd4b0dfbdafb33dd8>
- <https://git.kernel.org/stable/c/5d510ac31626ed157d2182149559430350cf2104>
- <https://ubuntu.com/security/CVE-2025-68786>
- <https://www.cve.org/CVERecord?id=CVE-2025-68786>
- <https://git.kernel.org/linus/5d510ac31626ed157d2182149559430350cf2104>
- <https://ubuntu.com/security/notices/USN-8177-1>
- <https://ubuntu.com/security/notices/USN-8179-1>
- <https://ubuntu.com/security/notices/USN-8177-2>
- <https://ubuntu.com/security/notices/USN-8183-1>
- <https://ubuntu.com/security/notices/USN-8184-1>
- <https://ubuntu.com/security/notices/USN-8179-2>
- <https://ubuntu.com/security/notices/USN-8185-1>
- <https://ubuntu.com/security/notices/USN-8183-2>
- <https://ubuntu.com/security/notices/USN-8179-3>
- <https://ubuntu.com/security/notices/USN-8203-1>
- <https://ubuntu.com/security/notices/USN-8204-1>
- <https://ubuntu.com/security/notices/USN-8185-2>

---

Data as of 2026-12-05T03:44:32.647Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
