{"id":"CVE-2026-99290","kind":"vulnerability","aliases":["CVE-2026-99290"],"related":[],"title":"Linux kernel ksmbd: use-after-free after failed durable reconnect","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix use-after-free after a failed durable reconnect\n\nksmbd_reopen_durable_fd() republishes a detached durable handle in the\nreconnecting session's file table and takes no reference for that entry.\nIf smb2_open() then fails, cleanup relies on the final ksmbd_fd_put() to\nremove the volatile id.\n\nTwo reconnects of the same handle can both take a lookup reference before\neither attaches it. If the one that reopens first then fails and drops\nits references first, the other request makes the final put through\nksmbd_put_durable_fd(). That frees the handle without removing the first\nsession's table entry, so tearing that session down writes to freed\nmemory.\n\n  BUG: KASAN: slab-use-after-free in __close_file_table_ids+0x14d/0x740 [ksmbd]\n  Call Trace:\n   __close_file_table_ids+0x14d/0x740 [ksmbd]\n   ksmbd_destroy_file_table+0x76/0x100 [ksmbd]\n   ksmbd_session_destroy+0xf8/0x480 [ksmbd]\n   ksmbd_dispose_sessions+0x13e/0x200 [ksmbd]\n   ksmbd_conn_sessions_cleanup+0x4c3/0x6d0 [ksmbd]\n  Freed by task 1030:\n   __ksmbd_close_fd+0x97d/0x1000 [ksmbd]\n   smb2_open+0x14eb/0xd9f0 [ksmbd]\n\nCommit 3515503322f4 (\"ksmbd: fix durable reconnect error path file\nlifetime\") handles a final put made by the reconnecting request, but not\none made by another holder.\n\nRemove the volatile id under the file-table lock on this error path,\nbefore the references are dropped, as ksmbd_close_fd() does on the\nrequest_open path just above. Removal then no longer depends on which\nholder makes the final put. The stale comment in the reconnect cleanup\nis updated to match. A successful reconnect is unchanged.","summary":"After a failed durable reconnect in the ksmbd SMB server, a stale file handle can be freed while still referenced by another session's file table. Tearing down that session then writes to freed memory, which can crash the kernel or be turned into further compromise.","severity":"unknown","cvss":null,"epss":0.00209,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["ksmbd","linux-kernel","runtime","smb-server"],"not_affected_if":["no-ksmbd","samba-userspace"],"how_to_check":null,"fix":null,"status":"open","published_at":"2026-11-16T10:17:01+00:00","first_seen_at":"2026-11-16T10:39:25+00:00","triaged_at":"2026-11-16T10:40:11+00:00","updated_at":"2026-11-16T18:53:18+00:00","category":"runtime","confidence":0.6,"triage":{"at":"2026-11-16T10:40:11Z","model":"claude-haiku-5-5","output":{"fix":"unknown","reach":"network","title":"Linux kernel ksmbd: use-after-free after failed durable reconnect","impact":"high","summary":"After a failed durable reconnect in the ksmbd SMB server, a stale file handle can be freed while still referenced by another session's file table. Tearing down that session then writes to freed memory, which can crash the kernel or be turned into further compromise.","audience":"businesses","category":"runtime","nicknames":[],"who_cares":["linux-kernel","ksmbd","smb-server"],"confidence":0.6,"fix_status":"unknown","needs_auth":"unknown","worst_case":"kernel memory corruption; possible crash or privilege escalation","analyst_note":"Find the fixed kernel versions and whether an SMB login is required, from the NVD entry or the kernel stable commit referenced by 3515503322f4.","how_to_check":"- unknown","plain_action":"","product_name":"","needs_analyst":true,"not_affected_if":["no-ksmbd","samba-userspace"],"who_is_affected":"Only Linux systems running the ksmbd in-kernel SMB server with durable handles are exposed; systems using Samba's userspace server or no SMB file sharing are not. The sources do not state fixed kernel versions or whether an authenticated session is required.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"unknown","severity_if_unknown":"unknown"},"cost_usd":0.000756,"input_tokens":5149,"output_tokens":482,"severity_before":"unknown"},"analyst_status":null,"analyst_note":null,"search":"'+0':208C,217C,224C,230C,236C,243C,253C,258C '-2026':13A,16A '-99290':14A,17A '1030':249C '3515503322f4':262C 'anoth':47B,285C 'attach':148C 'bug':196C 'call':211C 'cleanup':121C,242C,336C 'close':204C,213C,251C,308C 'comment':332C 'commit':261C 'compromis':71B 'conn':240C 'crash':63B 'cve':12A,15A 'depend':322C 'destroy':221C,229C 'detach':99C 'dispos':234C 'drop':159C,305C 'durabl':10A,29B,91C,95C,100C,173C,265C 'either':147C 'entri':115C,186C 'error':267C,299C 'fail':9A,28B,90C,120C,157C 'fd':96C,127C,174C,252C,309C 'file':38B,50B,107C,205C,214C,222C,269C,294C 'file-t':293C 'final':125C,168C,273C,328C 'first':155C,162C,182C 'fix':83C,264C 'follow':77C 'free':7A,87C,176C,202C 'freed':42B,59B,194C,246C 'handl':39B,101C,139C,178C,271C 'holder':286C,325C 'id':133C,207C,216C,290C 'kasan':197C 'kernel':2A,21B,65B,75C 'ksmbd':3A,18B,33B,82C,93C,126C,171C,210C,219C,220C,226C,227C,232C,233C,238C,239C,245C,250C,255C,260C,263C,307C 'lifetim':270C 'linux':1A,20B,74C 'linux-kernel':19B 'lock':296C 'longer':321C 'lookup':144C 'made':275C,283C 'make':166C,326C 'match':340C 'memori':60B,195C 'one':152C,282C 'open':118C,257C,314C 'path':268C,300C,315C 'put':128C,169C,172C,274C,329C 'reconnect':11A,30B,92C,104C,135C,266C,278C,335C,343C 'refer':112C,145C,161C,303C 'referenc':45B 'reli':122C 'remov':130C,180C,287C,318C 'reopen':94C,154C 'republish':97C 'request':165C,279C,313C 'resolv':81C 'runtim':22B 'server':25B,35B 'session':48B,55B,105C,183C,190C,228C,235C,241C 'slab':199C 'slab-use-after-fre':198C 'smb':24B,34B 'smb-server':23B 'smb2':117C,256C 'stale':37B,331C 'still':44B 'success':342C 'tabl':51B,108C,185C,206C,215C,223C,295C 'take':110C,142C 'task':248C 'tear':52B,188C 'trace':212C 'turn':68B 'two':134C 'unchang':345C 'updat':338C 'use':5A,85C,200C 'use-after-fre':4A,84C 'volatil':132C,289C 'vulner':78C 'without':179C 'write':57B,192C 'x13e/0x200':237C 'x14d/0x740':209C,218C 'x14eb/0xd9f0':259C 'x4c3/0x6d0':244C 'x76/0x100':225C 'x97d/0x1000':254C 'xf8/0x480':231C","nicknames":[],"mitigations":[],"who_affected":"Only Linux systems running the ksmbd in-kernel SMB server with durable handles are exposed; systems using Samba's userspace server or no SMB file sharing are not. The sources do not state fixed kernel versions or whether an authenticated session is required.","tier":"C","verified":{},"analyst_revisit_at":null,"fix_status":"unknown","audience":"businesses","plain_action":null,"pkeys":[],"ptokens":[],"labels":["ksmbd","linuxkernel","runtime","smbserver","unknown"],"campaign_type":null,"search_a":"'-2026':13A,16A '-99290':14A,17A 'cve':12A,15A 'durabl':10A 'fail':9A 'free':7A 'kernel':2A 'ksmbd':3A 'linux':1A 'reconnect':11A 'use':5A 'use-after-fre':4A","search_b":"'anoth':47B 'compromis':71B 'crash':63B 'durabl':29B 'fail':28B 'file':38B,50B 'freed':42B,59B 'handl':39B 'kernel':21B,65B 'ksmbd':18B,33B 'linux':20B 'linux-kernel':19B 'memori':60B 'reconnect':30B 'referenc':45B 'runtim':22B 'server':25B,35B 'session':48B,55B 'smb':24B,34B 'smb-server':23B 'stale':37B 'still':44B 'tabl':51B 'tear':52B 'turn':68B 'write':57B","search_c":"'+0':208C,217C,224C,230C,236C,243C,253C,258C '1030':249C '3515503322f4':262C 'anoth':285C 'attach':148C 'bug':196C 'call':211C 'cleanup':121C,242C,336C 'close':204C,213C,251C,308C 'comment':332C 'commit':261C 'conn':240C 'depend':322C 'destroy':221C,229C 'detach':99C 'dispos':234C 'drop':159C,305C 'durabl':91C,95C,100C,173C,265C 'either':147C 'entri':115C,186C 'error':267C,299C 'fail':90C,120C,157C 'fd':96C,127C,174C,252C,309C 'file':107C,205C,214C,222C,269C,294C 'file-t':293C 'final':125C,168C,273C,328C 'first':155C,162C,182C 'fix':83C,264C 'follow':77C 'free':87C,176C,202C 'freed':194C,246C 'handl':101C,139C,178C,271C 'holder':286C,325C 'id':133C,207C,216C,290C 'kasan':197C 'kernel':75C 'ksmbd':82C,93C,126C,171C,210C,219C,220C,226C,227C,232C,233C,238C,239C,245C,250C,255C,260C,263C,307C 'lifetim':270C 'linux':74C 'lock':296C 'longer':321C 'lookup':144C 'made':275C,283C 'make':166C,326C 'match':340C 'memori':195C 'one':152C,282C 'open':118C,257C,314C 'path':268C,300C,315C 'put':128C,169C,172C,274C,329C 'reconnect':92C,104C,135C,266C,278C,335C,343C 'refer':112C,145C,161C,303C 'reli':122C 'remov':130C,180C,287C,318C 'reopen':94C,154C 'republish':97C 'request':165C,279C,313C 'resolv':81C 'session':105C,183C,190C,228C,235C,241C 'slab':199C 'slab-use-after-fre':198C 'smb2':117C,256C 'stale':331C 'success':342C 'tabl':108C,185C,206C,215C,223C,295C 'take':110C,142C 'task':248C 'tear':188C 'trace':212C 'two':134C 'unchang':345C 'updat':338C 'use':85C,200C 'use-after-fre':84C 'volatil':132C,289C 'vulner':78C 'without':179C 'write':192C 'x13e/0x200':237C 'x14d/0x740':209C,218C 'x14eb/0xd9f0':259C 'x4c3/0x6d0':244C 'x76/0x100':225C 'x97d/0x1000':254C 'xf8/0x480':231C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-11-16T10:17:01+00:00","kev":null,"cvss_vector":null,"cvss_by":null,"poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-99290","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99290","severity":null,"published_at":"2026-11-16T10:17:01+00:00","modified_at":"2026-11-16T10:17:01+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-99290","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-99290","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.00209,"url":"https://api.first.org/data/v1/epss?cve=CVE-2026-99290"}],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}