{"id":"CVE-2026-99295","kind":"vulnerability","aliases":["CVE-2026-99295"],"related":[],"title":"Linux kernel SMB client: use-after-free after a receive error","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: stop processing a read response after a receive error\n\ncifs_read_iter_from_socket() may call cifs_reconnect() before returning an\nerror.  The reconnect path aborts pending mids and invokes their callbacks.\nThe callback can then release the cifs_io_subrequest containing rdata.\n\ncifs_readv_receive() nevertheless continues after a negative return and may\ndereference rdata in cifs_readv_discard().  KASAN reports the resulting\nUAF:\n\n  BUG: KASAN: slab-use-after-free in cifs_readv_receive\n  Read of size 4 by task cifsd\n  cifs_readv_receive (fs/smb/client/transport.c:1284)\n  cifs_demultiplex_thread (fs/smb/client/connect.c:1355)\n  kthread (kernel/kthread.c:436)\n  ret_from_fork (arch/x86/kernel/process.c:158)\n\n  Freed by task 148:\n  netfs_put_subrequest (fs/netfs/objects.c:267)\n  netfs_read_collection (fs/netfs/read_collect.c:460)\n  netfs_wait_for_in_progress (fs/netfs/misc.c:462)\n\nReturn the socket error immediately, as this path did before the iterator\nconversion.  This also avoids adding a negative length to total_read.","summary":"When the Linux kernel's CIFS/SMB client hits a socket receive error during a read, it can keep using a request buffer that was already freed. A malicious or faulty SMB server could turn this into memory corruption in the kernel.","severity":"unknown","cvss":null,"epss":0.00209,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["cifs","file-servers","linux-kernel","package","smb"],"not_affected_if":["cifs-module-not-loaded","no-cifs-mounts"],"how_to_check":"- Check the running kernel version with `uname -r` and compare it to the fixed kernel versions from the kernel stable tree (unknown: the sources do not list them)\n- Check whether the SMB client module is loaded with `lsmod | grep cifs`","fix":null,"status":"open","published_at":"2026-11-16T10:17:02+00:00","first_seen_at":"2026-11-16T10:39:26+00:00","triaged_at":"2026-11-16T10:40:07+00:00","updated_at":"2026-11-16T18:53:18+00:00","category":"package","confidence":0.5,"triage":{"at":"2026-11-16T10:40:07Z","model":"claude-haiku-5-5","output":{"fix":"unknown","reach":"network","title":"Linux kernel SMB client: use-after-free after a receive error","impact":"high","summary":"When the Linux kernel's CIFS/SMB client hits a socket receive error during a read, it can keep using a request buffer that was already freed. A malicious or faulty SMB server could turn this into memory corruption in the kernel.","audience":"businesses","category":"package","nicknames":[],"who_cares":["linux-kernel","smb","cifs","file-servers"],"confidence":0.5,"fix_status":"unknown","needs_auth":"unknown","worst_case":"kernel memory corruption from a freed buffer read","analyst_note":"Find the fixed kernel stable versions for the smb client commit and confirm the affected range from the kernel.org stable advisory.","how_to_check":"- Check the running kernel version with `uname -r` and compare it to the fixed kernel versions from the kernel stable tree (unknown: the sources do not list them)\n- Check whether the SMB client module is loaded with `lsmod | grep cifs`\n- unknown: the sources do not state a fixed kernel version","plain_action":"","product_name":"","needs_analyst":true,"not_affected_if":["no-cifs-mounts","cifs-module-not-loaded"],"who_is_affected":"Systems that mount SMB/CIFS shares through the Linux kernel client and read data from them are the ones exposed. Machines that never mount CIFS shares, or that run without the cifs module, are not affected. The sources do not give the exact kernel ranges.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"unknown","severity_if_unknown":"unknown"},"cost_usd":0.000774,"input_tokens":4906,"output_tokens":566,"severity_before":"unknown"},"analyst_status":null,"analyst_note":null,"search":"'-2026':14A,17A '-99295':15A,18A '1284':168C '1355':173C '148':185C '158':181C '267':190C '4':160C '436':176C '460':195C '462':202C 'abort':106C 'add':219C 'alreadi':52B 'also':217C 'arch/x86/kernel/process.c':180C 'avoid':218C 'buffer':49B 'bug':146C 'call':96C 'callback':112C,114C 'cif':19B,90C,97C,119C,124C,138C,154C,164C,169C 'cifs/smb':33B 'cifsd':163C 'client':4A,34B,80C 'collect':193C 'contain':122C 'continu':128C 'convers':215C 'corrupt':65B 'could':60B 'cve':13A,16A 'demultiplex':170C 'derefer':135C 'discard':140C 'error':12A,39B,89C,102C,206C 'faulti':57B 'file':21B 'file-serv':20B 'follow':74C 'fork':179C 'free':8A,152C 'freed':53B,182C 'fs/netfs/misc.c':201C 'fs/netfs/objects.c':189C 'fs/netfs/read_collect.c':194C 'fs/smb/client/connect.c':172C 'fs/smb/client/transport.c':167C 'hit':35B 'immedi':207C 'invok':110C 'io':120C 'iter':92C,214C 'kasan':141C,147C 'keep':45B 'kernel':2A,25B,31B,68B,72C 'kernel/kthread.c':175C 'kthread':174C 'length':222C 'linux':1A,24B,30B,71C 'linux-kernel':23B 'malici':55B 'may':95C,134C 'memori':64B 'mid':108C 'negat':131C,221C 'netf':186C,191C,196C 'nevertheless':127C 'packag':26B 'path':105C,210C 'pend':107C 'process':82C 'progress':200C 'put':187C 'rdata':123C,136C 'read':42B,84C,91C,157C,192C,225C 'readv':125C,139C,155C,165C 'receiv':11A,38B,88C,126C,156C,166C 'reconnect':98C,104C 'releas':117C 'report':142C 'request':48B 'resolv':78C 'respons':85C 'result':144C 'ret':177C 'return':100C,132C,203C 'server':22B,59B 'size':159C 'slab':149C 'slab-use-after-fre':148C 'smb':3A,27B,58B,79C 'socket':37B,94C,205C 'stop':81C 'subrequest':121C,188C 'task':162C,184C 'thread':171C 'total':224C 'turn':61B 'uaf':145C 'use':6A,46B,150C 'use-after-fre':5A 'vulner':75C 'wait':197C","nicknames":[],"mitigations":[],"who_affected":"Systems that mount SMB/CIFS shares through the Linux kernel client and read data from them are the ones exposed. Machines that never mount CIFS shares, or that run without the cifs module, are not affected. The sources do not give the exact kernel ranges.","tier":"C","verified":{},"analyst_revisit_at":null,"fix_status":"unknown","audience":"businesses","plain_action":null,"pkeys":[],"ptokens":[],"labels":["cifs","fileservers","linuxkernel","package","smb","unknown"],"campaign_type":null,"search_a":"'-2026':14A,17A '-99295':15A,18A 'client':4A 'cve':13A,16A 'error':12A 'free':8A 'kernel':2A 'linux':1A 'receiv':11A 'smb':3A 'use':6A 'use-after-fre':5A","search_b":"'alreadi':52B 'buffer':49B 'cif':19B 'cifs/smb':33B 'client':34B 'corrupt':65B 'could':60B 'error':39B 'faulti':57B 'file':21B 'file-serv':20B 'freed':53B 'hit':35B 'keep':45B 'kernel':25B,31B,68B 'linux':24B,30B 'linux-kernel':23B 'malici':55B 'memori':64B 'packag':26B 'read':42B 'receiv':38B 'request':48B 'server':22B,59B 'smb':27B,58B 'socket':37B 'turn':61B 'use':46B","search_c":"'1284':168C '1355':173C '148':185C '158':181C '267':190C '4':160C '436':176C '460':195C '462':202C 'abort':106C 'add':219C 'also':217C 'arch/x86/kernel/process.c':180C 'avoid':218C 'bug':146C 'call':96C 'callback':112C,114C 'cif':90C,97C,119C,124C,138C,154C,164C,169C 'cifsd':163C 'client':80C 'collect':193C 'contain':122C 'continu':128C 'convers':215C 'demultiplex':170C 'derefer':135C 'discard':140C 'error':89C,102C,206C 'follow':74C 'fork':179C 'free':152C 'freed':182C 'fs/netfs/misc.c':201C 'fs/netfs/objects.c':189C 'fs/netfs/read_collect.c':194C 'fs/smb/client/connect.c':172C 'fs/smb/client/transport.c':167C 'immedi':207C 'invok':110C 'io':120C 'iter':92C,214C 'kasan':141C,147C 'kernel':72C 'kernel/kthread.c':175C 'kthread':174C 'length':222C 'linux':71C 'may':95C,134C 'mid':108C 'negat':131C,221C 'netf':186C,191C,196C 'nevertheless':127C 'path':105C,210C 'pend':107C 'process':82C 'progress':200C 'put':187C 'rdata':123C,136C 'read':84C,91C,157C,192C,225C 'readv':125C,139C,155C,165C 'receiv':88C,126C,156C,166C 'reconnect':98C,104C 'releas':117C 'report':142C 'resolv':78C 'respons':85C 'result':144C 'ret':177C 'return':100C,132C,203C 'size':159C 'slab':149C 'slab-use-after-fre':148C 'smb':79C 'socket':94C,205C 'stop':81C 'subrequest':121C,188C 'task':162C,184C 'thread':171C 'total':224C 'uaf':145C 'use':150C 'vulner':75C 'wait':197C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-11-16T10:17:02+00:00","kev":null,"cvss_vector":null,"cvss_by":null,"poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-99295","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99295","severity":null,"published_at":"2026-11-16T10:17:02+00:00","modified_at":"2026-11-16T10:17:02+00:00","first_seen_at":"2026-11-16T10:39:26+00:00","fetched_at":"2026-11-16T10:39:26+00:00","note":null},{"source":"epss","external_id":"CVE-2026-99295","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-99295","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-99295"}],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}