CVE-2025-68786
ksmbd: skip lock-range check on equal size to avoid size==0 underflow
Check your servers for CVE-2025-68786
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-68786 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.
Exploitation
EPSS 0.20%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 10.4% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from f44158485826c076335d6860d35872271a83791d, before 52fcbb92e0d3acfd1448b2a43b6595d540da5295 affected from f44158485826c076335d6860d35872271a83791d, before da29cd197246c85c0473259f1cad897d9d28faea affected from f44158485826c076335d6860d35872271a83791d, before a6f4cfa3783804336491e0edcb250c25f9b59d33 affected from f44158485826c076335d6860d35872271a83791d, before 571204e4758a528fbd67330bd4b0dfbdafb33dd8 affected from f44158485826c076335d6860d35872271a83791d, before 5d510ac31626ed157d2182149559430350cf2104
Other versions: unaffected
|
| Linux |
affected 5.15 unaffected before 5.15 unaffected from 6.1.160 up to and including 6.1.* unaffected from 6.6.120 up to and including 6.6.* unaffected from 6.12.64 up to and including 6.12.* unaffected from 6.18.3 up to and including 6.18.* unaffected 6.19 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-68786 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-68786
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-68786
trivy image --scanners vuln IMAGE | grep CVE-2025-68786
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/52fcbb92e0d3acfd1448b2a43b6595d540da5295 git.kernel.org
- https://git.kernel.org/stable/c/da29cd197246c85c0473259f1cad897d9d28faea git.kernel.org
- https://git.kernel.org/stable/c/a6f4cfa3783804336491e0edcb250c25f9b59d33 git.kernel.org
- https://git.kernel.org/stable/c/571204e4758a528fbd67330bd4b0dfbdafb33dd8 git.kernel.org
- https://git.kernel.org/stable/c/5d510ac31626ed157d2182149559430350cf2104 git.kernel.org
Source: the record CVE-2025-68786 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse