CVE-2025-68786
ksmbd: skip lock-range check on equal size to avoid size==0 underflow
Mitigation
- Upgrade Linux to 5d510ac31626ed157d2182149559430350cf2104 or later.
Who should check
- Anyone running Linux >= f44158485826c076335d6860d35872271a83791d, < 52fcbb92e0d3acfd1448b2a43b6595d540da5295; >= f44158485826c076335d6860d35872271a83791d, < da29cd197246c85c0473259f1cad897d9d28faea; >= f44158485826c076335d6860d35872271a83791d, < a6f4cfa3783804336491e0edcb250c25f9b59d33; >= f44158485826c076335d6860d35872271a83791d, < 571204e4758a528fbd67330bd4b0dfbdafb33dd8; >= f44158485826c076335d6860d35872271a83791d, < 5d510ac31626ed157d2182149559430350cf2104
- Anyone running Linux 5.15
Vulnerability facts
- Affected
- Linux >= f44158485826c076335d6860d35872271a83791d, < 52fcbb92e0d3acfd1448b2a43b6595d540da5295; >= f44158485826c076335d6860d35872271a83791d, < da29cd197246c85c0473259f1cad897d9d28faea; >= f44158485826c076335d6860d35872271a83791d, < a6f4cfa3783804336491e0edcb250c25f9b59d33; >= f44158485826c076335d6860d35872271a83791d, < 571204e4758a528fbd67330bd4b0dfbdafb33dd8; >= f44158485826c076335d6860d35872271a83791d, < 5d510ac31626ed157d2182149559430350cf2104; Linux 5.15
- Fixed in
- Linux 52fcbb92e0d3acfd1448b2a43b6595d540da5295, Linux 571204e4758a528fbd67330bd4b0dfbdafb33dd8, Linux 5d510ac31626ed157d2182149559430350cf2104
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- EPSS
- 0.26% chance of exploitation in 30 days (percentile 11, 2026-11-26)
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= f44158485826c076335d6860d35872271a83791d, < 52fcbb92e0d3acfd1448b2a43b6595d540da5295; >= f44158485826c076335d6860d35872271a83791d, < da29cd197246c85c0473259f1cad897d9d28faea; >= f44158485826c076335d6860d35872271a83791d, < a6f4cfa3783804336491e0edcb250c25f9b59d33; >= f44158485826c076335d6860d35872271a83791d, < 571204e4758a528fbd67330bd4b0dfbdafb33dd8; >= f44158485826c076335d6860d35872271a83791d, < 5d510ac31626ed157d2182149559430350cf2104 | — | cvelist |
| Linux | 5.15 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-68786. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-68786.md Affected: Linux >= f44158485826c076335d6860d35872271a83791d, < 52fcbb92e0d3acfd1448b2a43b6595d540da5295; >= f44158485826c076335d6860d35872271a83791d, < da29cd197246c85c0473259f1cad897d9d28faea; >= f44158485826c076335d6860d35872271a83791d, < a6f4cfa3783804336491e0edcb250c25f9b59d33; >= f44158485826c076335d686… Fixed in: Linux 52fcbb92e0d3acfd1448b2a43b6595d540da5295, Linux 571204e4758a528fbd67330bd4b0dfbdafb33dd8, Linux 5d510ac31626ed157d2182149559430350cf2104 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Other
- 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
FAQ
Is CVE-2025-68786 being exploited?
There is no confirmed exploitation: CVE-2025-68786 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.26% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-68786?
It has no CVSS score yet. Unknown.
Which versions are affected by CVE-2025-68786?
Linux >= f44158485826c076335d6860d35872271a83791d, < 52fcbb92e0d3acfd1448b2a43b6595d540da5295; >= f44158485826c076335d6860d35872271a83791d, < da29cd197246c85c0473259f1cad897d9d28faea; >= f44158485826c076335d6860d35872271a83791d, < a6f4cfa3783804336491e0edcb250c25f9b59d33; >= f44158485826c076335d6860d35872271a83791d, < 571204e4758a528fbd67330bd4b0dfbdafb33dd8; >= f44158485826c076335d6860d35872271a83791d, < 5d510ac31626ed157d2182149559430350cf2104; Linux 5.15.
Is there a fix for CVE-2025-68786?
Yes. Fixed in Linux 52fcbb92e0d3acfd1448b2a43b6595d540da5295, Linux 571204e4758a528fbd67330bd4b0dfbdafb33dd8, Linux 5d510ac31626ed157d2182149559430350cf2104. Upgrade Linux to 5d510ac31626ed157d2182149559430350cf2104 or later.
How do I check if I'm affected by CVE-2025-68786?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.