# CVE-2026-64390: ksmbd: track the connection owning a byte-range lock

- Severity: High 8.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.47%, higher than 42% of CVEs (2026-12-01)
- Published: 2026-07-25T08:50:37.406Z
- Modified: 2026-09-04T19:07:30.470Z
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from f5a544e3bab78142207e0242d22442db85ba1eff before 22d38cf75b556c20b039743bdf3654d535b858be; from f5a544e3bab78142207e0242d22442db85ba1eff before 66eb3643164e5e1029907793926c132f8b5c6148; from f5a544e3bab78142207e0242d22442db85ba1eff before ea5c9bf99f626a15cc59f645dc895f2b3f01992e; from f5a544e3bab78142207e0242d22442db85ba1eff before fe20d492a69a6f79e637f438072b212e21ed3b78; from f5a544e3bab78142207e0242d22442db85ba1eff before 427faaa52b0b399940c1a88065a5c310d10dad15; from f5a544e3bab78142207e0242d22442db85ba1eff before 5fecc15a30cb9ebd310f7b52c1ab607edcea78f6; from f5a544e3bab78142207e0242d22442db85ba1eff before c1016dd1d8b2bcd1158bbaabe94a31bb7e7431fb; 5.15 (not affected: before 5.15; from 5.15.212 up to 5.15.*; from 6.1.178 up to 6.1.*; from 6.6.145 up to 6.6.*; from 6.12.97 up to 6.12.*; from 6.18.40 up to 6.18.*; from 7.1.4 up to 7.1.*; from 7.2 up to *)
- linux linux_kernel: from 5.15 before 5.15.212; from 5.16 before 6.1.178; from 6.2 before 6.6.145; from 6.7 before 6.12.97; from 6.13 before 6.18.40; from 6.19 before 7.1.4

## References

- <https://git.kernel.org/stable/c/22d38cf75b556c20b039743bdf3654d535b858be> (patch)
- <https://git.kernel.org/stable/c/66eb3643164e5e1029907793926c132f8b5c6148> (patch)
- <https://git.kernel.org/stable/c/ea5c9bf99f626a15cc59f645dc895f2b3f01992e> (patch)
- <https://git.kernel.org/stable/c/fe20d492a69a6f79e637f438072b212e21ed3b78> (patch)
- <https://git.kernel.org/stable/c/427faaa52b0b399940c1a88065a5c310d10dad15> (patch)
- <https://git.kernel.org/stable/c/5fecc15a30cb9ebd310f7b52c1ab607edcea78f6> (patch)
- <https://git.kernel.org/stable/c/c1016dd1d8b2bcd1158bbaabe94a31bb7e7431fb> (patch)

## Sources

- CVE List: [CVE-2026-64390](https://www.cve.org/CVERecord?id=CVE-2026-64390), CVE Terms of Use, modified 2026-08-17
- NVD: [CVE-2026-64390](https://nvd.nist.gov/vuln/detail/CVE-2026-64390), Public domain, modified 2026-09-04

---

Page: https://cve.day/CVE-2026-64390 · Whole record: https://cve.day/CVE-2026-64390.json · Rebuilt by cve.day 2026-11-25T22:59:30.098Z
