{"id":"CVE-2026-99276","summary":"ksmbd: defer connection scavenging while session locks are busy","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: defer connection scavenging while session locks are busy\n\nThe expiration worker holds conn_list_lock for reading while checking\nfor authenticated sessions. Without this change, the check can wait for\nconn-\u003esession_lock or sessions_table_lock.\n\nIn destroy_previous_session(), the status updates after\nksmbd_conn_wait_idle_sess() run with both session locks held for\nwriting. Both the KSMBD_SESS_GOOD error path and the\nKSMBD_SESS_NEED_SETUP success path call ksmbd_all_conn_set_status(),\nwhich takes conn_list_lock for reading.\n\nA writer queued on conn_list_lock can block these new read acquisitions.\nThe worker then waits for a session lock held by\ndestroy_previous_session(), which waits behind the writer. The writer\ncannot proceed until the worker releases conn_list_lock.\n\nTry both session locks instead of waiting in the scavenging check. Keep\nthe connection when either lock is busy and let the periodic worker\nretry later.","modified":"2026-11-26T20:46:09.931323534Z","published":"2026-11-07T14:08:46.432Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99276.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/4e4e8b38994a0b0fc23f00ca6698b469a41abe70"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b4bae7af1154089be87c7475218264fcbfd16d10"},{"type":"WEB","url":"https://github.com/suruurism/cve-writeups-and-pocs/blob/main/CVE-2026-99276/CVE-2026-99276.md"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99276.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99276"},{"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":"d7fd1f98607f2cd358e583f9548bdf0173090a86"},{"fixed":"4e4e8b38994a0b0fc23f00ca6698b469a41abe70"},{"fixed":"b4bae7af1154089be87c7475218264fcbfd16d10"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"c99ea7855124ca1428a1e59c2b4590aaef34eacf"}]}],"versions":["v7.2.15","v7.2.14","v7.2.13","v7.2.12","v7.2.11","v7.2.10","v7.2.9","v7.2.8"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99276.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.2.8"},{"fixed":"7.3"}]},{"type":"ECOSYSTEM","events":[{"introduced":"7.3.0"},{"fixed":"7.3.2"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99276.json"}}],"schema_version":"1.9.2"}