{"id":"CVE-2026-99289","kind":"vulnerability","aliases":["CVE-2026-99289"],"related":[],"title":"Linux kernel ksmbd: use-after-free when superseding SMB app-instance opens","description":"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.","summary":"A flaw in the Linux kernel's ksmbd SMB server lets a session reach freed memory when another session supersedes a non-durable open with the same AppInstanceId. The sources describe a use-after-free that can be triggered during SMB2 open handling, with the freed memory then written to.","severity":"unknown","cvss":null,"epss":0.00198,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["file-server","ksmbd","linux-kernel","runtime","smb"],"not_affected_if":["ksmbd-not-enabled"],"how_to_check":null,"fix":null,"status":"open","published_at":"2026-11-16T10:17:00+00:00","first_seen_at":"2026-11-16T10:39:25+00:00","triaged_at":"2026-11-16T10:40:13+00:00","updated_at":"2026-11-16T18:53:18+00:00","category":"runtime","confidence":0.5,"triage":{"at":"2026-11-16T10:40:13Z","model":"claude-haiku-5-5","output":{"fix":"unknown","reach":"network","title":"Linux kernel ksmbd: use-after-free when superseding SMB app-instance opens","impact":"high","summary":"A flaw in the Linux kernel's ksmbd SMB server lets a session reach freed memory when another session supersedes a non-durable open with the same AppInstanceId. The sources describe a use-after-free that can be triggered during SMB2 open handling, with the freed memory then written to.","audience":"businesses","category":"runtime","nicknames":[],"who_cares":["linux-kernel","ksmbd","smb","file-server"],"confidence":0.5,"fix_status":"unknown","needs_auth":"unknown","worst_case":"memory corruption in the kernel; possible code execution","analyst_note":"Check the kernel.org stable commit for affected and fixed kernel versions and whether an attacker needs a valid SMB session.","how_to_check":"unknown","plain_action":"","product_name":"","needs_analyst":true,"not_affected_if":["ksmbd-not-enabled"],"who_is_affected":"Systems running the Linux kernel's ksmbd in-kernel SMB server with SMB2 clients connected; the sources do not list affected kernel versions. Hosts that do not run ksmbd are not affected by this description.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"yes","severity_if_unknown":"unknown"},"cost_usd":0.000733,"input_tokens":4952,"output_tokens":475,"severity_before":"unknown"},"analyst_status":null,"analyst_note":null,"search":"'+0':204C,211C,219C,224C,234C '-2026':16A,19A '-99289':17A,20A '212':230C 'anoth':47B,165C 'app':12A,94C,105C,216C 'app-inst':11A,93C 'appinstanceid':58B,116C 'break':255C 'bug':193C 'call':206C 'channel':257C 'close':103C,214C 'collect':256C 'cve':15A,18A 'deadlock':297C 'describ':61B 'destroy':233C,277C 'detach':133C,144C 'durabl':53B,98C,134C,148C 'fd':104C,215C 'file':22B,191C 'file-serv':21B 'fix':92C,237C 'flaw':31B 'follow':86C 'free':7A,66B,138C,199C 'freed':44B,77B,164C,188C,227C 'handl':74B,135C 'held':276C 'id':107C,218C,247C 'instanc':13A,95C,106C,217C 'kasan':194C 'kernel':2A,27B,35B,84C 'ksmbd':3A,24B,37B,91C,102C,213C,221C,226C,231C,236C 'let':40B 'linux':1A,26B,34B,83C 'linux-kernel':25B 'lock':181C,203C,210C,275C,282C,287C 'look':240C 'lookup':249C,272C 'm':274C,281C 'memori':45B,78B 'non':52B,97C,147C 'non-dur':51B,96C,146C 'open':14A,54B,73B,111C,120C,149C,151C,170C,223C 'opinfo':124C,158C,245C,261C 'order':294C 'point':153C,264C 'pointer':127C,185C 'previous':278C 'prior':110C 'raw':201C,208C 'reach':43B,118C 'recheck':259C 'refcount':130C 'refer':252C 'resolv':90C 'return':250C 'runtim':28B 'server':23B,39B 'sess':125C,159C,262C 'session':42B,48B,100C,122C,131C,140C,156C,162C,166C,189C,232C,242C,246C,279C,285C 'slab':196C 'slab-use-after-fre':195C 'smb':10A,29B,38B 'smb2':72B,222C,254C 'sourc':60B 'stale':184C 'still':152C,263C 'supersed':9A,49B,99C,108C,168C,176C 'tabl':192C,286C 'take':178C,280C,289C 'task':229C 'teardown':132C 'time':174C 'trace':207C 'trigger':70B 'uaf':101C 'use':5A,64B,197C,268C 'use-after-fre':4A,63B 'vulner':87C 'without':273C 'would':296C 'write':180C,202C,209C 'written':80B 'x38d/0x480':235C 'x3e10/0xd910':225C 'x71/0xd0':205C,212C 'xd9/0x670':220C","nicknames":[],"mitigations":[],"who_affected":"Systems running the Linux kernel's ksmbd in-kernel SMB server with SMB2 clients connected; the sources do not list affected kernel versions. Hosts that do not run ksmbd are not affected by this description.","tier":"C","verified":{},"analyst_revisit_at":null,"fix_status":"unknown","audience":"businesses","plain_action":null,"pkeys":[],"ptokens":[],"labels":["fileserver","ksmbd","linuxkernel","runtime","smb","unknown"],"campaign_type":null,"search_a":"'-2026':16A,19A '-99289':17A,20A 'app':12A 'app-inst':11A 'cve':15A,18A 'free':7A 'instanc':13A 'kernel':2A 'ksmbd':3A 'linux':1A 'open':14A 'smb':10A 'supersed':9A 'use':5A 'use-after-fre':4A","search_b":"'anoth':47B 'appinstanceid':58B 'describ':61B 'durabl':53B 'file':22B 'file-serv':21B 'flaw':31B 'free':66B 'freed':44B,77B 'handl':74B 'kernel':27B,35B 'ksmbd':24B,37B 'let':40B 'linux':26B,34B 'linux-kernel':25B 'memori':45B,78B 'non':52B 'non-dur':51B 'open':54B,73B 'reach':43B 'runtim':28B 'server':23B,39B 'session':42B,48B 'smb':29B,38B 'smb2':72B 'sourc':60B 'supersed':49B 'trigger':70B 'use':64B 'use-after-fre':63B 'written':80B","search_c":"'+0':204C,211C,219C,224C,234C '212':230C 'anoth':165C 'app':94C,105C,216C 'app-inst':93C 'appinstanceid':116C 'break':255C 'bug':193C 'call':206C 'channel':257C 'close':103C,214C 'collect':256C 'deadlock':297C 'destroy':233C,277C 'detach':133C,144C 'durabl':98C,134C,148C 'fd':104C,215C 'file':191C 'fix':92C,237C 'follow':86C 'free':138C,199C 'freed':164C,188C,227C 'handl':135C 'held':276C 'id':107C,218C,247C 'instanc':95C,106C,217C 'kasan':194C 'kernel':84C 'ksmbd':91C,102C,213C,221C,226C,231C,236C 'linux':83C 'lock':181C,203C,210C,275C,282C,287C 'look':240C 'lookup':249C,272C 'm':274C,281C 'non':97C,147C 'non-dur':96C,146C 'open':111C,120C,149C,151C,170C,223C 'opinfo':124C,158C,245C,261C 'order':294C 'point':153C,264C 'pointer':127C,185C 'previous':278C 'prior':110C 'raw':201C,208C 'reach':118C 'recheck':259C 'refcount':130C 'refer':252C 'resolv':90C 'return':250C 'sess':125C,159C,262C 'session':100C,122C,131C,140C,156C,162C,166C,189C,232C,242C,246C,279C,285C 'slab':196C 'slab-use-after-fre':195C 'smb2':222C,254C 'stale':184C 'still':152C,263C 'supersed':99C,108C,168C,176C 'tabl':192C,286C 'take':178C,280C,289C 'task':229C 'teardown':132C 'time':174C 'trace':207C 'uaf':101C 'use':197C,268C 'vulner':87C 'without':273C 'would':296C 'write':180C,202C,209C 'x38d/0x480':235C 'x3e10/0xd910':225C 'x71/0xd0':205C,212C 'xd9/0x670':220C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-11-16T10:17:00+00:00","kev":null,"cvss_vector":null,"cvss_by":null,"poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-99289","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99289","severity":null,"published_at":"2026-11-16T10:17:00+00:00","modified_at":"2026-11-16T10:17:00+00:00","first_seen_at":"2026-11-16T10:39:25+00:00","fetched_at":"2026-11-16T10:39:25+00:00","note":null},{"source":"epss","external_id":"CVE-2026-99289","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-99289","severity":null,"published_at":null,"modified_at":null,"first_seen_at":"2026-11-16T18:53:18+00:00","fetched_at":"2026-11-16T18:53:18+00:00","note":null}],"documents":[],"disclosures":[],"exploit_sources":[{"type":"epss","score":0.00198,"url":"https://api.first.org/data/v1/epss?cve=CVE-2026-99289"}],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}