KernelScan.io

HIGH Introduced in 5.15

ksmbd LeaseBreak ValidationBypass

CVE-2026-98901

CVSS 7.1 / 10.0 KernelScan AI

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L

01

In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix lease break and ack state handling Do not skip valid lease states containing WRITE_CACHING when breaking level-II/read leases for writes and truncates. Handle lease break acknowledgments according to the SMB2 rule that the acknowledged state must be a subset of the server's break target. Apply the acknowledged state directly and keep the break pending on failed ACKs.

02

Engine v0.9.0

Risk summary

The ksmbd SMB server incorrectly validates lease break acknowledgments from clients, allowing a remote authenticated attacker to cause lease state mismatches. This can lead to silent data corruption when clients cache file data incorrectly, or limited information disclosure when stale cached data is exposed. Any system running ksmbd with network exposure is at risk.

Affectedfs/smb/server/oplock.c, fs/smb/server/smb2pdu.c (ksmbd)

Vulnerability analysis

The ksmbd kernel SMB server mishandles SMB2 lease break acknowledgments in two ways. First, when breaking level-II/read leases for write or truncate operations, the server incorrectly skipped leases that included the WRITE_CACHING flag — a valid state for leases that had been previously upgraded. Second, when processing a client's lease break acknowledgment, the server used complex and buggy logic to validate the acknowledged state instead of enforcing the SMB2 rule that the acknowledged state must be a subset of the server's break target. The fix removes the incorrect skip check, simplifies the lease-to-oplock mapping, and replaces the acknowledgment validation with a direct subset check. An authenticated SMB client can trigger this by sending crafted lease break acknowledgments, making it reachable over the network on TCP port 445 wherever ksmbd is enabled and listening.

03

BranchIntroducedFixed inPatch commit
6.125.156.12.1113251ea36df5e
6.185.156.18.53fba4653a0b4d
6.65.156.6.15817699905a381
mainline5.157.25015191096db
cip/6.125.156.12.111-cip323251ea36df5e

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.111-cip32
cip/6.1Affected — no CIP fix yet (latest 6.1.190-cip62)
cip/6.1-rtAffected — no CIP fix yet (latest 6.1.189-cip61-rt32)