{"id":"CVE-2026-99276","state":"PUBLISHED","title":"ksmbd: defer connection scavenging while session locks are busy","description":"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.","publishedAt":"2026-11-07T14:08:46.432Z","updatedAt":"2026-11-07T14:08:46.432Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d7fd1f98607f2cd358e583f9548bdf0173090a86","status":"affected","lessThan":"4e4e8b38994a0b0fc23f00ca6698b469a41abe70","versionType":"git"},{"version":"d7fd1f98607f2cd358e583f9548bdf0173090a86","status":"affected","lessThan":"b4bae7af1154089be87c7475218264fcbfd16d10","versionType":"git"},{"version":"c99ea7855124ca1428a1e59c2b4590aaef34eacf","status":"affected","versionType":"git"},{"version":"7.2.8","status":"affected","lessThan":"7.3","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/server/mgmt/user_session.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.3","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.3","versionType":"semver"},{"version":"7.3.2","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/server/mgmt/user_session.c"]}],"references":["https://git.kernel.org/stable/c/4e4e8b38994a0b0fc23f00ca6698b469a41abe70","https://git.kernel.org/stable/c/b4bae7af1154089be87c7475218264fcbfd16d10"],"weaknesses":[],"ingestedAt":"2026-11-07T14:16:06.286Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/99xxx/CVE-2026-99276.json","commit":"67a646f2856a5a4f3b693bbdf716708f10067be8","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99276","state":"PUBLISHED","datePublished":"2026-11-07T14:08:46.432Z","dateUpdated":"2026-11-07T14:08:46.432Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:25:14.405Z"},"containers":{"cna":{"title":"ksmbd: defer connection scavenging while session locks are busy","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d7fd1f98607f2cd358e583f9548bdf0173090a86","status":"affected","lessThan":"4e4e8b38994a0b0fc23f00ca6698b469a41abe70","versionType":"git"},{"version":"d7fd1f98607f2cd358e583f9548bdf0173090a86","status":"affected","lessThan":"b4bae7af1154089be87c7475218264fcbfd16d10","versionType":"git"},{"version":"c99ea7855124ca1428a1e59c2b4590aaef34eacf","status":"affected","versionType":"git"},{"version":"7.2.8","status":"affected","lessThan":"7.3","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/server/mgmt/user_session.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.3","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.3","versionType":"semver"},{"version":"7.3.2","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/server/mgmt/user_session.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/4e4e8b38994a0b0fc23f00ca6698b469a41abe70"},{"url":"https://git.kernel.org/stable/c/b4bae7af1154089be87c7475218264fcbfd16d10"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-07T14:08:46.432Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.3","versionEndExcluding":"7.3.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.3","versionEndExcluding":"7.4-rc1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.2.8"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}