# CVE-2026-98897: ksmbd: don't hold ci-\>m\_lock while waiting for a lease break ack

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.20% (percentile 5, 2026-11-26)
- **Published:** 2026-10-23T11:54:05.872Z
- **Modified:** 2026-10-26T07:17:14.980Z

## Who should check

- Anyone running Linux \>= d1c189c6cb8b0fb7b5ee549237d27889c40c2f8b, \< 868c9038ffd4af39766d087f68c8f543a3f66635; \>= d1c189c6cb8b0fb7b5ee549237d27889c40c2f8b, \< 27a9bc968d4ae809a3f5ca2f2b136856ee613cb4; 16ece7c5645a68efca22a0a69a7718c8e50c3232; \>= 6.6.35, \< 6.7
- Anyone running Linux 6.9

## Description

In the Linux kernel, the following vulnerability has been resolved:

ksmbd: don't hold ci-\>m\_lock while waiting for a lease break ack

When a cifs.ko client caches a read-handle (RH) lease via deferred close
and a conflicting open arrives, ksmbd breaks the lease and waits for the
acknowledgment in wait\_for\_break\_ack() for up to OPLOCK\_WAIT\_TIME (35s).
\_\_smb\_break\_all\_levII\_oplock() runs that wait while holding ci-\>m\_lock
for read.

cifs.ko reacts to a handle-lease break by closing the deferred handle
rather than sending a lease break acknowledgment. That close path
(close\_id\_del\_oplock() -\> opinfo\_del()) takes ci-\>m\_lock for write and
is exactly what would wake the waiter, but it blocks on the read lock
held by the waiting thread. The break is then resolved only by the 35s
timeout, so xfstests generic/001 takes ~78s with leases enabled versus
~4s with oplocks only.

Collect the target opinfos (each pinned with a reference) while holding
ci-\>m\_lock, then break them after releasing it, matching how
smb\_grant\_oplock() already breaks a conflicting lease using only a
reference.  The reference keeps the opinfo (and its conn and lease)
alive across the unlocked window, and a close racing the break is
handled by the existing OPLOCK\_CLOSING state check. Apply the same fix
to the parent lease break paths.

## Affected and fixed versions

- Linux: \>= d1c189c6cb8b0fb7b5ee549237d27889c40c2f8b, \< 868c9038ffd4af39766d087f68c8f543a3f66635; \>= d1c189c6cb8b0fb7b5ee549237d27889c40c2f8b, \< 27a9bc968d4ae809a3f5ca2f2b136856ee613cb4; 16ece7c5645a68efca22a0a69a7718c8e50c3232; \>= 6.6.35, \< 6.7 (cvelist)
- Linux: 6.9 (cvelist)

## Mitigation

- Upgrade Linux to 6.7 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-98897. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98897.md
Affected: Linux >= d1c189c6cb8b0fb7b5ee549237d27889c40c2f8b, < 868c9038ffd4af39766d087f68c8f543a3f66635; >= d1c189c6cb8b0fb7b5ee549237d27889c40c2f8b, < 27a9bc968d4ae809a3f5ca2f2b136856ee613cb4; 16ece7c5645a68efca22a0a69a7718c8e50c3232; >= 6.6.35, < 6.7; Linux 6.9
Fixed in: Linux 868c9038ffd4af39766d087f68c8f543a3f66635, Linux 27a9bc968d4ae809a3f5ca2f2b136856ee613cb4, Linux 6.7

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

## FAQ

### Is CVE-2026-98897 being exploited?

There is no confirmed exploitation: CVE-2026-98897 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.20% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-98897?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-98897?

Linux \>= d1c189c6cb8b0fb7b5ee549237d27889c40c2f8b, \< 868c9038ffd4af39766d087f68c8f543a3f66635; \>= d1c189c6cb8b0fb7b5ee549237d27889c40c2f8b, \< 27a9bc968d4ae809a3f5ca2f2b136856ee613cb4; 16ece7c5645a68efca22a0a69a7718c8e50c3232; \>= 6.6.35, \< 6.7; Linux 6.9.

### Is there a fix for CVE-2026-98897?

Yes. Fixed in Linux 868c9038ffd4af39766d087f68c8f543a3f66635, Linux 27a9bc968d4ae809a3f5ca2f2b136856ee613cb4, Linux 6.7. Upgrade Linux to 6.7 or later.

### How do I check if I'm affected by CVE-2026-98897?

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.

## References

- other: <https://git.kernel.org/stable/c/868c9038ffd4af39766d087f68c8f543a3f66635>
- other: <https://git.kernel.org/stable/c/27a9bc968d4ae809a3f5ca2f2b136856ee613cb4>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-98897>

HTML: <https://flawdb.com/CVE-2026-98897> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-98897>
