CVE-2025-68786 json
ksmbd: skip lock-range check on equal size to avoid size==0 underflow
published 2026-01-13 9 mo ago modified 2026-06-17 4 mo ago also EUVD-2026-2301
- cvss
- —
- not scored
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 10%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- Linux Linux 6.1.160, 6.6.120, 6.12.64, 6.18.3, 6.19
- linux Debian 12 6.1.162-1
- linux Debian 13 6.12.69-1
- linux Debian 14 6.18.3-1
debian advisories DEBIAN-CVE-2025-68786
- linux Ubuntu 24.04 LTS 6.8.0-110.110
- linux Ubuntu 25.10 6.17.0-22.22
- linux-aws Ubuntu 24.04 LTS 6.8.0-1052.55
- linux-aws Ubuntu 25.10 6.17.0-1012.12
- linux-gcp Ubuntu 24.04 LTS 6.8.0-1054.57
- linux-gcp Ubuntu 25.10 6.17.0-1012.12
- linux-gke Ubuntu 24.04 LTS 6.8.0-1050.56
- linux-ibm Ubuntu 24.04 LTS 6.8.0-1051.51
ubuntu advisories UBUNTU-CVE-2025-68786
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- git.kernel.org/stable/c/52fcbb92e0d3acfd1448b2a43b6595d540da5295 commit
- git.kernel.org/stable/c/da29cd197246c85c0473259f1cad897d9d28faea commit
- git.kernel.org/stable/c/a6f4cfa3783804336491e0edcb250c25f9b59d33 commit
- git.kernel.org/stable/c/571204e4758a528fbd67330bd4b0dfbdafb33dd8 commit
- git.kernel.org/stable/c/5d510ac31626ed157d2182149559430350cf2104 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-68786 updated
kernel: ksmbd: skip lock-range check on equal size to avoid size==0 underflow
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 more Red Hat Enterprise Linux 10 kernelnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.20% chance of exploitation in the next 30 days, higher than 10% of all scored CVEs (FIRST EPSS, 2026-11-08).
Affected products
- Linux Linux
Classification
- Technology feeds
References
- git.kernel.org /stable/c/52fcbb92e0d3acfd1448b2a43b6595d540da5295
- git.kernel.org /stable/c/da29cd197246c85c0473259f1cad897d9d28faea
- git.kernel.org /stable/c/a6f4cfa3783804336491e0edcb250c25f9b59d33
- git.kernel.org /stable/c/571204e4758a528fbd67330bd4b0dfbdafb33dd8
- git.kernel.org /stable/c/5d510ac31626ed157d2182149559430350cf2104
Sources
- CVE List CVE-2025-68786
- NVD CVE-2025-68786
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.