CVE-2026-64390
ksmbd: track the connection owning a byte-range lock
Reported by linux · Published July 25, 2026
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.
EPSS 0.47% · 41.4th percentile
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| linux_kernel | linux | 7.1.4, 6.18.40, 6.12.97, 6.6.145, 6.1.178, 5.15.212 |
| Linux | Linux | fe20d492a69a6f79e637f438072b212e21ed3b78, ea5c9bf99f626a15cc59f645dc895f2b3f01992e, c1016dd1d8b2bcd1158bbaabe94a31bb7e7431fb, 66eb3643164e5e1029907793926c132f8b5c6148, 5fecc15a30cb9ebd310f7b52c1ab607edcea78f6, 427faaa52b0b399940c1a88065a5c310d10dad15, 22d38cf75b556c20b039743bdf3654d535b858be |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | f5a544e3bab78142207e0242d22442db85ba1eff, f5a544e3bab78142207e0242d22442db85ba1eff, f5a544e3bab78142207e0242d22442db85ba1eff |
| Linux | Linux | 5.15, 0, 5.15.212 |
| Linux | Linux | 7.2, 0, 5.15.212 |
| linux | linux_kernel | 5.15, 5.15, 5.15 |
Timeline
- Jul 25, 2026 EPSS Score (30 in total, the first dated here)
- Jul 25, 2026 CVE Published
- Jul 26, 2026 Security Advisory (20 in total, the first dated here)
- Aug 9, 2026 CVE Updated
- Aug 12, 2026 Distribution Patch (21 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-64390
vulnetix vdb fixes CVE-2026-64390
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-64390/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart