CVE-2026-64390

ksmbd: track the connection owning a byte-range lock

HIGH
8.8
CVSS Score
Published: July 25, 2026 at 08:50 AM UTC
Updated: September 4, 2026 at 07:26 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH8.8
Exploit prediction
EPSS 0.5%

Description

In the Linux kernel, the following vulnerability has been resolved: ksmbd: track the connection owning a byte-range lock SMB2_LOCK adds each granted byte-range lock to both the file lock list and the lock list of the connection which handled the request. The final close and durable handle paths, however, remove the connection list entry while holding fp->conn->llist_lock. With SMB3 multichannel, the connection handling the LOCK request can be different from the connection which opened the file. The entry can therefore be removed under a different spinlock from the one protecting the list it belongs to. A concurrent traversal can then access freed struct ksmbd_lock and struct file_lock objects. Record the connection owning each lock's clist entry and hold a reference to it while the entry is linked. Use that connection and its llist_lock for unlock, rollback, close, and durable preserve. Durable reconnect assigns the new connection as the owner when publishing the locks again.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.15 ≤ v < 5.15.2125.15 ≤ v < 6.1.1785.15 ≤ v < 6.12.975.15 ≤ v < 6.18.405.15 ≤ v < 6.6.1455.15 ≤ v < 7.1.45.15 ≤ v < 7.25.16 ≤ v < 6.1.1786.13 ≤ v < 6.18.406.19 ≤ v < 7.1.46.2 ≤ v < 6.6.1456.7 ≤ v < 6.12.975.15f5a544e3bab78142207e0242d22442db85ba1eff
Vendor states this is fixed in 22d38cf75b556c20b039743bdf3654d535b858be (fixed)
Vendor states this is fixed in 427faaa52b0b399940c1a88065a5c310d10dad15 (fixed)
Vendor states this is fixed in 5fecc15a30cb9ebd310f7b52c1ab607edcea78f6 (fixed)
Vendor states this is fixed in 66eb3643164e5e1029907793926c132f8b5c6148 (fixed)
Vendor states this is fixed in c1016dd1d8b2bcd1158bbaabe94a31bb7e7431fb (fixed)
Vendor states this is fixed in ea5c9bf99f626a15cc59f645dc895f2b3f01992e (fixed)
Vendor states this is fixed in fe20d492a69a6f79e637f438072b212e21ed3b78 (fixed)
Vendor states this is fixed in 5.15 (unaffected)
Vendor states this is fixed in 5.15.212 (unaffected)
Vendor states this is fixed in 6.1.178 (unaffected)
Vendor states this is fixed in 6.12.97 (unaffected)
Vendor states this is fixed in 6.18.40 (unaffected)
Vendor states this is fixed in 6.6.145 (unaffected)
Vendor states this is fixed in 7.1.4 (unaffected)
Vendor states this is fixed in 7.2 (unaffected)

CVSS

8.8HIGHLinux
Vector?

Quick Info

StatusANALYZED
CWE
NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card