{"id":"CVE-2026-99291","kind":"vulnerability","aliases":["CVE-2026-99291"],"related":[],"title":"Linux ksmbd: SMB2 CREATE response overflows buffer, writing past allocation","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix SMB2 CREATE response buffer overflow\n\nsmb2_allocate_rsp_buf() uses the MAX_CIFS_SMALL_BUFFER_SIZE\n(448-byte) buffer for a single SMB2_CREATE response. That buffer also\nholds a 4-byte length field, which only leaves 444 bytes for the SMB2\nbody.\n\nThe AAPL response made this buffer too small. After 8f1b796ff113, a\nrequest with AAPL response contexts may need at least 456 bytes. In\nthe 456-byte case, create_aapl_rsp_buf() is appended last, clears 128\nbytes, and writes 12 bytes past the allocation.\n\nKASAN reports:\n\n    BUG: KASAN: slab-out-of-bounds in create_aapl_rsp_buf+0x31/0x6e0\n    Write of size 128 at addr ffff88800370954c by task kworker/0:0/9\n    ...\n    create_aapl_rsp_buf+0x31/0x6e0\n    smb2_open+0x58f9/0xef10\n    ...\n    smb2_allocate_rsp_buf+0x19d/0x370\n    ...\n    The buggy address is located 332 bytes inside of\n     allocated 448-byte region [ffff888003709400, ffff8880037095c0)\n\nReserve enough space for any fixed CREATE response KSMBD can build.\nStore the required allocation size in the per-dialect values table.\nThis keeps the small buffer for other commands and avoids using the max\ntransaction buffer for every CREATE.","summary":"The Linux kernel's ksmbd SMB file server writes up to 12 bytes past a 448-byte heap buffer when building an SMB2 CREATE response that includes AAPL (Apple) response contexts. An attacker who can send such requests may corrupt kernel memory.","severity":"unknown","cvss":null,"epss":0.00214,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["file-server","infrastructure","kernel","ksmbd","linux","smb"],"not_affected_if":["ksmbd-not-enabled","samba-used-instead"],"how_to_check":"- Check the kernel version with `uname -r` and whether the ksmbd module is loaded with `lsmod | grep ksmbd`\n- Check whether the SMB server is enabled, for example `systemctl status ksmbd`\n- Compare the kernel against the fixed version in the kernel stable tree, unknown from the sources","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":"infrastructure","confidence":0.5,"triage":{"at":"2026-11-16T10:40:11Z","model":"claude-haiku-5-5","output":{"fix":"unknown","reach":"network","title":"Linux ksmbd: SMB2 CREATE response overflows buffer, writing past allocation","impact":"high","summary":"The Linux kernel's ksmbd SMB file server writes up to 12 bytes past a 448-byte heap buffer when building an SMB2 CREATE response that includes AAPL (Apple) response contexts. An attacker who can send such requests may corrupt kernel memory.","audience":"businesses","category":"infrastructure","nicknames":[],"who_cares":["linux","kernel","ksmbd","smb","file-server"],"confidence":0.5,"fix_status":"unknown","needs_auth":"unknown","worst_case":"kernel memory corruption from a crafted SMB request","analyst_note":"Confirm affected kernel version ranges and the fixed commit or stable release from the kernel.org or NVD entry.","how_to_check":"- Check the kernel version with `uname -r` and whether the ksmbd module is loaded with `lsmod | grep ksmbd`\n- Check whether the SMB server is enabled, for example `systemctl status ksmbd`\n- Compare the kernel against the fixed version in the kernel stable tree, unknown from the sources","plain_action":"","product_name":"","needs_analyst":true,"not_affected_if":["ksmbd-not-enabled","samba-used-instead"],"who_is_affected":"Only systems running the Linux kernel's ksmbd in-kernel SMB server are exposed, which is off by default and must be enabled. Hosts that do not run ksmbd, or that use Samba instead, can skip it. The sources do not give the affected version ranges.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"yes","severity_if_unknown":"unknown"},"cost_usd":0.000801,"input_tokens":4997,"output_tokens":602,"severity_before":"unknown"},"analyst_status":null,"analyst_note":null,"search":"'+0':180C,197C,201C,207C '-2026':12A,15A '-99291':13A,16A '0/9':192C '12':36B,161C '128':157C,185C '332':214C '4':109C '444':116C '448':40B,95C,219C '456':142C,146C '8f1b796ff113':131C 'aapl':52B,123C,135C,150C,177C,194C 'addr':187C 'address':211C 'alloc':10A,85C,165C,204C,218C,238C 'also':106C 'append':154C 'appl':53B 'attack':57B 'avoid':256C 'bodi':121C 'bound':174C 'buf':87C,152C,179C,196C,206C 'buffer':7A,43B,82C,93C,97C,105C,127C,251C,261C 'bug':168C 'buggi':210C 'build':45B,234C 'byte':37B,41B,96C,110C,117C,143C,147C,158C,162C,215C,220C 'case':148C 'cif':91C 'clear':156C 'command':254C 'context':55B,137C 'corrupt':64B 'creat':4A,48B,80C,102C,149C,176C,193C,230C,264C 'cve':11A,14A 'dialect':244C 'enough':225C 'everi':263C 'ffff888003709400':222C 'ffff88800370954c':188C 'ffff8880037095c0':223C 'field':112C 'file':18B,31B 'file-serv':17B 'fix':78C,229C 'follow':72C 'heap':42B 'hold':107C 'includ':51B 'infrastructur':20B 'insid':216C 'kasan':166C,169C 'keep':248C 'kernel':21B,27B,65B,70C 'ksmbd':2A,22B,29B,77C,232C 'kworker/0':191C 'last':155C 'least':141C 'leav':115C 'length':111C 'linux':1A,23B,26B,69C 'locat':213C 'made':125C 'max':90C,259C 'may':63B,138C 'memori':66B 'need':139C 'open':200C 'overflow':6A,83C 'past':9A,38B,163C 'per':243C 'per-dialect':242C 'region':221C 'report':167C 'request':62B,133C 'requir':237C 'reserv':224C 'resolv':76C 'respons':5A,49B,54B,81C,103C,124C,136C,231C 'rsp':86C,151C,178C,195C,205C 'send':60B 'server':19B,32B 'singl':100C 'size':94C,184C,239C 'slab':171C 'slab-out-of-bound':170C 'small':92C,129C,250C 'smb':24B,30B 'smb2':3A,47B,79C,84C,101C,120C,199C,203C 'space':226C 'store':235C 'tabl':246C 'task':190C 'transact':260C 'use':88C,257C 'valu':245C 'vulner':73C 'write':8A,33B,160C,182C 'x19d/0x370':208C 'x31/0x6e0':181C,198C 'x58f9/0xef10':202C","nicknames":[],"mitigations":[],"who_affected":"Only systems running the Linux kernel's ksmbd in-kernel SMB server are exposed, which is off by default and must be enabled. Hosts that do not run ksmbd, or that use Samba instead, can skip it. The sources do not give the affected version ranges.","tier":"C","verified":{},"analyst_revisit_at":null,"fix_status":"unknown","audience":"businesses","plain_action":null,"pkeys":[],"ptokens":[],"labels":["fileserver","infrastructure","kernel","ksmbd","linux","smb","unknown"],"campaign_type":null,"search_a":"'-2026':12A,15A '-99291':13A,16A 'alloc':10A 'buffer':7A 'creat':4A 'cve':11A,14A 'ksmbd':2A 'linux':1A 'overflow':6A 'past':9A 'respons':5A 'smb2':3A 'write':8A","search_b":"'12':36B '448':40B 'aapl':52B 'appl':53B 'attack':57B 'buffer':43B 'build':45B 'byte':37B,41B 'context':55B 'corrupt':64B 'creat':48B 'file':18B,31B 'file-serv':17B 'heap':42B 'includ':51B 'infrastructur':20B 'kernel':21B,27B,65B 'ksmbd':22B,29B 'linux':23B,26B 'may':63B 'memori':66B 'past':38B 'request':62B 'respons':49B,54B 'send':60B 'server':19B,32B 'smb':24B,30B 'smb2':47B 'write':33B","search_c":"'+0':180C,197C,201C,207C '0/9':192C '12':161C '128':157C,185C '332':214C '4':109C '444':116C '448':95C,219C '456':142C,146C '8f1b796ff113':131C 'aapl':123C,135C,150C,177C,194C 'addr':187C 'address':211C 'alloc':85C,165C,204C,218C,238C 'also':106C 'append':154C 'avoid':256C 'bodi':121C 'bound':174C 'buf':87C,152C,179C,196C,206C 'buffer':82C,93C,97C,105C,127C,251C,261C 'bug':168C 'buggi':210C 'build':234C 'byte':96C,110C,117C,143C,147C,158C,162C,215C,220C 'case':148C 'cif':91C 'clear':156C 'command':254C 'context':137C 'creat':80C,102C,149C,176C,193C,230C,264C 'dialect':244C 'enough':225C 'everi':263C 'ffff888003709400':222C 'ffff88800370954c':188C 'ffff8880037095c0':223C 'field':112C 'fix':78C,229C 'follow':72C 'hold':107C 'insid':216C 'kasan':166C,169C 'keep':248C 'kernel':70C 'ksmbd':77C,232C 'kworker/0':191C 'last':155C 'least':141C 'leav':115C 'length':111C 'linux':69C 'locat':213C 'made':125C 'max':90C,259C 'may':138C 'need':139C 'open':200C 'overflow':83C 'past':163C 'per':243C 'per-dialect':242C 'region':221C 'report':167C 'request':133C 'requir':237C 'reserv':224C 'resolv':76C 'respons':81C,103C,124C,136C,231C 'rsp':86C,151C,178C,195C,205C 'singl':100C 'size':94C,184C,239C 'slab':171C 'slab-out-of-bound':170C 'small':92C,129C,250C 'smb2':79C,84C,101C,120C,199C,203C 'space':226C 'store':235C 'tabl':246C 'task':190C 'transact':260C 'use':88C,257C 'valu':245C 'vulner':73C 'write':160C,182C 'x19d/0x370':208C 'x31/0x6e0':181C,198C 'x58f9/0xef10':202C","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-99291","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99291","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-99291","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-99291","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.00214,"url":"https://api.first.org/data/v1/epss?cve=CVE-2026-99291"}],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}