{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-64141","id":"CVE-2026-64141","title":"ksmbd: fix null pointer dereference in compare_guid_key()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix null pointer dereference in compare_guid_key()\n\nsession_fd_check() walks the per-inode m_op_list during durable-handle\nsession teardown and sets op->conn = NULL for every opinfo whose conn\nmatched the closing session's connection. The matching opinfo, however,\nstays linked in its per-ClientGuid lease_table_list entry's","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix null pointer dereference in compare_guid_key()\n\nsession_fd_check() walks the per-inode m_op_list during durable-handle\nsession teardown and sets op->conn = NULL for every opinfo whose conn\nmatched the closing session's connection. The matching opinfo, however,\nstays linked in its per-ClientGuid lease_table_list entry's lb->lease_list\nbecause destroy_lease_table() only runs on full TCP-connection teardown,\nnot on SESSION_LOGOFF.\n\nIf the same TCP connection then negotiates a fresh session with the\nsame ClientGuid (ClientGuid is bound to NEGOTIATE, not the session, and\nis unchanged across LOGOFF + SETUP) and issues a SMB2 CREATE with a\nlease context on a different inode, find_same_lease_key() walks\nlb->lease_list, reaches the stale opinfo, and calls compare_guid_key(),\nwhich unconditionally dereferences opinfo->conn->ClientGUID. The conn\npointer is NULL and the kernel panics.\n\nReproducer requires only a successful SMB2 SESSION_SETUP and a share\nconfigured with 'durable handles = yes'. KASAN report on mainline\n70390501d194:\n\n  general protection fault, probably for non-canonical address\n  0xdffffc0000000069: 0000 [#1] SMP KASAN PTI\n  KASAN: null-ptr-deref in range [0x0000000000000348-0x000000000000034f]\n  Workqueue: ksmbd-io handle_ksmbd_work\n  RIP: 0010:bcmp+0x5b/0x230\n  Call Trace:\n   compare_guid_key+0x4b/0xd0\n   find_same_lease_key+0x324/0x690\n   smb2_open+0x6aea/0x8e60\n   handle_ksmbd_work+0x796/0xee0\n   ...\n\nFaulting address 0x348 is the offset of ClientGUID within struct\nksmbd_conn, confirming opinfo->conn was NULL.\n\nRead opinfo->conn once and bail out if it has been cleared by a\nconcurrent session_fd_check(). A half-detached opinfo cannot be the\nowner of an active lease, so returning 0 is the correct match result.","published":"2026-07-19T15:40:33.890Z","updated":"2026-11-17T07:03:35.956555495Z","reserved":"2026-07-19T07:54:57.037Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"Linux"},"metrics":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"Linux"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8df4bcdb0a4232192b2445256c39b787d58ef14d","lessThan":"e43cb36d4d7827710cfcd48e95e29a507f0d87be","status":"affected","versionType":"git"},{"version":"c8efcc786146a951091588e5fa7e3c754850cb3c","lessThan":"0836081b394ca074d1b910f2b990ff7b4b4404c7","status":"affected","versionType":"git"},{"version":"c8efcc786146a951091588e5fa7e3c754850cb3c","lessThan":"cd5c1b75d2f454f625d7dc55bd3ae21d0855f6ad","status":"affected","versionType":"git"},{"version":"c8efcc786146a951091588e5fa7e3c754850cb3c","lessThan":"af86896ca3239e25a6bd7d352213371265073d38","status":"affected","versionType":"git"},{"version":"c8efcc786146a951091588e5fa7e3c754850cb3c","lessThan":"4b83cbc4c15f09b000cc06f033f64b0824b6dc87","status":"affected","versionType":"git"},{"version":"6.6.32","lessThan":"6.6.142","status":"affected","versionType":"semver"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.9","status":"affected"},{"version":"0","lessThan":"6.9","status":"unaffected","versionType":"semver"},{"version":"6.6.142","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.92","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.34","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.0.11","lessThanOrEqual":"7.0.*","status":"unaffected","versionType":"semver"},{"version":"7.1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-476"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/e43cb36d4d7827710cfcd48e95e29a507f0d87be","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/0836081b394ca074d1b910f2b990ff7b4b4404c7","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/cd5c1b75d2f454f625d7dc55bd3ae21d0855f6ad","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/af86896ca3239e25a6bd7d352213371265073d38","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/4b83cbc4c15f09b000cc06f033f64b0824b6dc87","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64141.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-64141","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.0063,"epssPercentile":0.50987,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-64141","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-64141","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-64141","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-64141","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}