{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99289","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-09-25T10:25:14.405Z","datePublished":"2026-11-16T09:59:18.827Z","dateUpdated":"2026-11-19T13:52:06.516Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-11-19T13:52:06.516Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix app-instance non-durable supersede session UAF\n\nksmbd_close_fd_app_instance_id() supersedes a prior open that has the\nsame AppInstanceId. It reaches that open's session through opinfo->sess.\nThis pointer is not refcounted.\n\nSession teardown detaches durable handles before it frees the session.\nIt does not detach a non-durable open. That open still points at the\nsession through opinfo->sess after the session is freed. Another session\ncan supersede the open at the same time. The supersede then takes a\nwrite lock through the stale pointer, in the freed session's file table.\n\n  BUG: KASAN: slab-use-after-free in _raw_write_lock+0x71/0xd0\n  Call Trace:\n   _raw_write_lock+0x71/0xd0\n   ksmbd_close_fd_app_instance_id+0xd9/0x670 [ksmbd]\n   smb2_open+0x3e10/0xd910 [ksmbd]\n  Freed by task 212:\n   ksmbd_session_destroy+0x38d/0x480 [ksmbd]\n\nFix this by looking the session up by opinfo->session_id. The lookup\nreturns a reference, as smb2_break_collect_channels() does. Recheck that\nopinfo->sess still points at it before using it.\n\nDo the lookup without m_lock held. destroy_previous_session() takes\nm_lock under the session table lock, and taking them in the other order\nhere would deadlock."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":8.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:N - SMB2 CREATE on TCP carries SMB2_CREATE_APP_INSTANCE_ID, which parse_app_instance_id() copies; smb2_open() then calls smb2_handle_app_instance_id() and ksmbd_close_fd_app_instance_id(), which write-locks opinfo->sess->file_table after ksmbd_session_destroy() has freed that session.\nAC:L - The client opens a non-durable file so session_fd_check() leaves opinfo->sess set, then races smb2_session_logoff() or ksmbd_server_terminate_conn() against a second connection's CREATE with the same AppInstanceId and a different ClientGUID. Both connections are the attacker's.\nPR:L - __handle_ksmbd_work() calls smb2_check_user_session() before smb2_open(), and CREATE proceeds only for an SMB2_SESSION_VALID session established by smb2_sess_setup(), so the attacker must already be a share user.\nUI:N - The attacker issues the AppInstanceId CREATE, tears that session down, and sends the superseding CREATE. No other user has to mount, click, or open a file.\nS:U - The dangling opinfo->sess is a ksmbd_session in the host kernel that serves the share, so the corruption stays in that same security authority.\nC:H - ksmbd_close_fd_app_instance_id() write-locks file_table.lock inside the ksmbd_session freed by ksmbd_session_destroy(). Reclaiming that slab makes the lock read the object now at opinfo->sess, which is a disclosure primitive.\nI:H - KASAN reports a slab use-after-free in _raw_write_lock on the freed session's embedded rwlock, reached from ksmbd_close_fd_app_instance_id() via smb2_open(). Reclaiming the slot makes that lock write corrupt a chosen object and can hijack control flow.\nA:H - The use-after-free oopses in _raw_write_lock inside ksmbd_close_fd_app_instance_id(), and locking the freed rwlock can hang the ksmbd worker. Either fault stops the host kernel."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/server/vfs_cache.c"],"versions":[{"version":"16c30649709d949b439273e61769028b1e706327","lessThan":"a5b190b352b0ba85f4debe436f42950ced10fadb","status":"affected","versionType":"git"},{"version":"16c30649709d949b439273e61769028b1e706327","lessThan":"f728cfee6929057087c303d07d7a6a7c61196b48","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/server/vfs_cache.c"],"versions":[{"version":"7.2","status":"affected"},{"version":"0","lessThan":"7.2","status":"unaffected","versionType":"semver"},{"version":"7.3.2","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.2","versionEndExcluding":"7.3.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.2","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/a5b190b352b0ba85f4debe436f42950ced10fadb"},{"url":"https://git.kernel.org/stable/c/f728cfee6929057087c303d07d7a6a7c61196b48"}],"title":"ksmbd: fix app-instance non-durable supersede session UAF","x_generator":{"engine":"bippy-1.2.0"}}}}