CVE-2025-68786: 
Linux Debian vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Exploitability

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).

Mitigation and workarounds

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).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

linux: 6.1.162-1

Fixed

sid

linux: 6.18.3-1

Fixed

trixie

linux: 6.12.69-1

Fixed

Ubuntu

Fixed

bionic

linux

Not Affected

bionic (esm-infra)

linux

Not Affected

bionic (fips-updates)

linux-fips

Not Affected

bionic (fips)

linux-fips

Not Affected

devel

linux

Not Affected

focal

linux

Not Affected

focal (esm-infra)

linux-hwe-5.15

Affected

focal (fips-updates)

linux-fips

Not Affected

RHEL / CentOS

Affected

RHEL 8

Not Affected

RHEL 9

Not Affected

RHEL 10

Not Affected

Source: This report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-116612HIGH7.8
  • Linux Debian logoLinux Debian
  • gstreamer-editing-services1.0
NoYesOct 26, 2026
CVE-2026-115909HIGH7.5
  • Linux Debian logoLinux Debian
  • rust-zip
NoNoOct 26, 2026
CVE-2026-115907HIGH7.5
  • Linux Debian logoLinux Debian
  • rust-zip
NoNoOct 26, 2026
CVE-2026-115910MEDIUM6.8
  • Python logoPython
  • social-auth-core
NoYesOct 26, 2026
CVE-2026-2270MEDIUM5.9
  • NixOS logoNixOS
  • kubernetes
NoYesOct 26, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management