CVE-2025-68786
NoneCVSS
—
EPSS
0.2%
Published
Jan 13, 2026
CISA due date
—
Cloudanix analysis
A coding error in the Linux kernel's file-sharing component could cause crashes when handling lock requests on empty files.
- Exploitation
- Remote Authenticated
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- OS kernel
- Class
- Improper Input Validation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Integer underflow in ksmbd when computing size-1 for check_lock_range on a file whose i_size equals the requested lock size of zero, bypassing intended validation.
Why it matters to the business
Potential kernel instability or crashes on Linux systems running ksmbd SMB shares, which could disrupt file serving workloads; low likelihood of exploitation given stable low EPSS and absence from KEV.
How an attack unfolds
An attacker establishes an SMB session to a ksmbd server and issues a crafted lock request where the range size exactly matches the target's current i_size of zero, causing the underflow during the skipped-equal-size check that was previously performed.
How to fix it
Apply the upstream fix by updating to Linux kernel commit 52fcbb92e0d3acfd1448b2a43b6595d540da5295 or any stable tree incorporating that change; rebuild and deploy updated kernel packages.
How to confirm the fix worked
Confirm the running kernel contains commit 52fcbb92e0d3acfd1448b2a43b6595d540da5295 via git log or kernel version string; perform functional testing of SMB lock operations on zero-length files.
Typical attack path
- Locate Linux hosts exposing ksmbd SMB shares
- Authenticate and open a file handle via SMB
- Issue SMB locking request with start offset equal to current i_size and length zero
- Trigger the size-1 underflow path in check_lock_range
How to detect it
Review kernel logs for ksmbd-related oops or underflow panics; inspect SMB network traffic for lock requests where length equals the reported file size of zero.
What your security team should do
- Prioritize kernel updates on all systems using ksmbd
- Audit environments for ksmbd usage and disable the module where SMB sharing is not required
- Monitor kernel logs for oops/panic entries referencing ksmbd lock range handling
The record
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 packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Linux | Kernel | 5.15.0 | 6.1.160 |
| Mageia:9 | kernel | 0 | 6.6.120-1.mga9 |
| Mageia:9 | kernel-linus | 0 | 6.6.120-1.mga9 |
| Mageia:9 | kmod-virtualbox | 0 | 7.1.14-14.mga9 |
| Mageia:9 | kmod-xtables-addons | 0 | 3.24-88.mga9 |
Related vulnerabilities
- CVE-2026-23226 In the Linux kernel, the following vulnerability has been resolved: ksmbd: add chann_lock… Also affects Kernel
- CVE-2026-23225 In the Linux kernel, the following vulnerability has been resolved: sched/mmcid: Don't… Also affects Kernel
- CVE-2026-23230 In the Linux kernel, the following vulnerability has been resolved: smb: client: split… Also affects Kernel
- CVE-2026-23224 In the Linux kernel, the following vulnerability has been resolved: erofs: fix UAF issue… Also affects Kernel
- CVE-2026-23227 In the Linux kernel, the following vulnerability has been resolved: drm/exynos: vidi: use… Also affects Kernel
- CVE-2026-23223 In the Linux kernel, the following vulnerability has been resolved: xfs: fix UAF in… Also affects Kernel
- CVE-2026-23228 In the Linux kernel, the following vulnerability has been resolved: smb: server: fix leak… Also affects Kernel
- CVE-2026-23229 In the Linux kernel, the following vulnerability has been resolved: crypto: virtio - Add… Also affects Kernel