{"id":"CVE-2026-64390","summary":"ksmbd: track the connection owning a byte-range lock","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: track the connection owning a byte-range lock\n\nSMB2_LOCK adds each granted byte-range lock to both the file lock list\nand the lock list of the connection which handled the request.  The\nfinal close and durable handle paths, however, remove the connection\nlist entry while holding fp-\u003econn-\u003ellist_lock.\n\nWith SMB3 multichannel, the connection handling the LOCK request can be\ndifferent from the connection which opened the file.  The entry can\ntherefore be removed under a different spinlock from the one protecting\nthe list it belongs to.  A concurrent traversal can then access freed\nstruct ksmbd_lock and struct file_lock objects.\n\nRecord the connection owning each lock's clist entry and hold a\nreference to it while the entry is linked.  Use that connection and its\nllist_lock for unlock, rollback, close, and durable preserve.  Durable\nreconnect assigns the new connection as the owner when publishing the\nlocks again.","modified":"2026-08-18T03:30:48.059329049Z","published":"2026-07-25T08:50:37.406Z","related":["openSUSE-SU-2026:11476-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64390.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/22d38cf75b556c20b039743bdf3654d535b858be"},{"type":"WEB","url":"https://git.kernel.org/stable/c/427faaa52b0b399940c1a88065a5c310d10dad15"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5fecc15a30cb9ebd310f7b52c1ab607edcea78f6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/66eb3643164e5e1029907793926c132f8b5c6148"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c1016dd1d8b2bcd1158bbaabe94a31bb7e7431fb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ea5c9bf99f626a15cc59f645dc895f2b3f01992e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fe20d492a69a6f79e637f438072b212e21ed3b78"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64390.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-64390"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"f5a544e3bab78142207e0242d22442db85ba1eff"},{"fixed":"22d38cf75b556c20b039743bdf3654d535b858be"},{"fixed":"66eb3643164e5e1029907793926c132f8b5c6148"},{"fixed":"ea5c9bf99f626a15cc59f645dc895f2b3f01992e"},{"fixed":"fe20d492a69a6f79e637f438072b212e21ed3b78"},{"fixed":"427faaa52b0b399940c1a88065a5c310d10dad15"},{"fixed":"5fecc15a30cb9ebd310f7b52c1ab607edcea78f6"},{"fixed":"c1016dd1d8b2bcd1158bbaabe94a31bb7e7431fb"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-64390.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.15.0"},{"fixed":"5.15.212"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.178"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.145"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.97"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.40"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.1.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-64390.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}