{"id":"CVE-2026-99276","aliases":["CVE-2026-99276"],"related":[],"kind":"vulnerability","state":"published","title":"ksmbd: defer connection scavenging while session locks are busy","summary":"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->session_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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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->session_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.","source":"cvelist"}],"published":"2026-11-07T14:08:46.432Z","modified":"2026-11-25T19:17:43.217Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"d7fd1f98607f2cd358e583f9548bdf0173090a86","fixed":"4e4e8b38994a0b0fc23f00ca6698b469a41abe70","status":"affected"},{"type":"git","introduced":"d7fd1f98607f2cd358e583f9548bdf0173090a86","fixed":"b4bae7af1154089be87c7475218264fcbfd16d10","status":"affected"},{"type":"git","version":"c99ea7855124ca1428a1e59c2b4590aaef34eacf","status":"affected"},{"type":"semver","introduced":"7.2.8","fixed":"7.3","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"7.3","status":"affected"},{"type":"semver","introduced":"0","fixed":"7.3","status":"unaffected"},{"type":"semver","introduced":"7.3.2","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/4e4e8b38994a0b0fc23f00ca6698b469a41abe70","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b4bae7af1154089be87c7475218264fcbfd16d10","tags":[],"sources":["cvelist","nvd"]},{"url":"https://github.com/suruurism/cve-writeups-and-pocs/blob/main/CVE-2026-99276/CVE-2026-99276.md","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99276","url":"https://www.cve.org/CVERecord?id=CVE-2026-99276","licence":"CVE Terms of Use","modified":"2026-11-25T18:18:58.660Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99276","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99276","licence":"Public domain","modified":"2026-11-25T19:17:43.217Z"}],"updatedAt":"2026-11-25T23:18:17.986Z","epss":{"score":0.00155,"percentile":0.04889,"date":"2026-12-01T12:00:22.000Z"}}