
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-68786 is an integer underflow vulnerability in the Linux kernel's ksmbd (kernel SMB server) module affecting the lock-range check logic. When a file's size equals the current i_size — including when both are zero — the code previously called check_lock_range(filp, i_size, size - 1, WRITE), causing an integer underflow on size - 1 when size == 0. The vulnerability was published on January 13, 2026, and affects Linux kernel versions across multiple stable branches. No official CVSS score has been assigned by NVD; Feedly estimates the severity as Medium with an EPSS score of 0.00018 (Feedly, EUVD).
The root cause is an integer underflow (related to CWE-191) in the ksmbd module's write-path lock-range validation. When size equals i_size (the current file size), including the edge case where both are 0, the expression size - 1 wraps around to a very large unsigned value, producing an invalid range passed to check_lock_range(). An attacker with access to the ksmbd SMB server could craft SMB write operations targeting zero-byte or same-size files to trigger this condition. The fix skips the lock-range check entirely when size == i_size, eliminating the underflow (kernel.org patches).
Successful exploitation of this vulnerability could lead to memory corruption, kernel denial of service, or other undefined behavior within the kernel's SMB server implementation, depending on how the underflowed value is subsequently consumed by the lock-range checking logic. The impact is confined to systems running ksmbd as an active SMB server; exploitation would affect the availability and potentially the integrity of the kernel. Lateral movement or data exfiltration is not a primary concern, but kernel-level instability could be leveraged to disrupt services on affected hosts (Feedly).
There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation as of the time of this report. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is 0.00018, indicating a very low probability of exploitation in the near term. No threat actor attribution has been reported (Feedly).
Patches are available across multiple Linux kernel stable branches. Update to the following fixed versions: 6.1.160, 6.6.120, 6.12.64, 6.18.3, or 6.19-rc1 (or later). Debian LTS users should apply the linux 6.1.162-1 package or later. Ubuntu users should apply the relevant USN advisories (USN-8177-1, USN-8179-1, USN-8183-1, USN-8184-1, USN-8185-1, USN-8203-1, USN-8245-1, USN-8257-1, USN-8258-1, USN-8260-1, USN-8265-1). If immediate patching is not possible and ksmbd is not required, disable the ksmbd service to eliminate the attack surface (Feedly, Debian LTS, Ubuntu USN-8177-1).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."