{"id":"CVE-2026-99309","kind":"vulnerability","aliases":["CVE-2026-99309"],"related":[],"title":"Linux ksmbd: 32-bit overflow in SMB security descriptor bounds check","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix overflow in dacloffset bounds check in build_sec_desc()\n\nWhen the large dacl_offset is provided, dacl_offset + sizeof(struct\nsmb_acl) overflows on 32-bit builds and the check is passed,\nWhich makes le16_to_cpu(ppdacl_ptr->size) read out-of-bounds. This\nonly happens for dacl_offset in range [0xFFFFFFF8, 0xFFFFFFFF]. So\nthe oob read is max 8 bytes preceding the allocated ppntsd.\n\n    unsigned int dacl_offset = le32_to_cpu(ppntsd->dacloffset);\n    int ppdacl_size, ntacl_size = ppntsd_size - dacl_offset;\n\n    if (!dacl_offset ||\n\t(dacl_offset + sizeof(struct smb_acl) > ppntsd_size))\n\t    goto out;\n\nCommit beff0bc9d69b (\"ksmbd: fix overflow in dacloffset bounds check\")\nfixes similar checks in other functions. But leaves this one out,\nbecause it is only valid for 32-bit builds.\n\nReproduced on 32-bit ARM with KASAN, by a client sending SMB2\nSET_INFO(SEC) with dacloffset=0xfffffff8, then QUERY_INFO(SEC) on the\nsame file:\n\n BUG: KASAN: slab-out-of-bounds in build_sec_desc (fs/smb/server/smbacl.c:1105)\n Read of size 2 at addr c2a273fa by task kworker/1:1/35\n CPU: 1 UID: 0 PID: 35 Comm: kworker/1:1 Not tainted 7.3.0-rc2+ #5\n Workqueue: ksmbd-io handle_ksmbd_work\n Call trace:\n  kasan_check_range from build_sec_desc (fs/smb/server/smbacl.c:1105)\n  build_sec_desc from smb2_query_info (fs/smb/server/smb2pdu.c:7676)\n  smb2_query_info from handle_ksmbd_work (fs/smb/server/server.c:160)\n  handle_ksmbd_work from process_one_work (kernel/workqueue.c:3401)\n  process_one_work from worker_thread (kernel/workqueue.c:3473)\n  worker_thread from kthread (kernel/kthread.c:436)\n\nAdd overflow check.","summary":"In the Linux kernel's ksmbd SMB file server, a bounds check on the DACL offset overflows on 32-bit builds, so a crafted SET_INFO and QUERY_INFO sequence reads up to 8 bytes before an allocated buffer. The sources describe an out-of-bounds read reproduced under KASAN; they do not describe code execution.","severity":"low","cvss":null,"epss":0.00209,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["32-bit","ksmbd","linux-kernel","runtime","smb"],"not_affected_if":["64-bit-kernel","no-ksmbd","samba-only"],"how_to_check":"- Check whether the kernel runs ksmbd, for example with `lsmod | grep ksmbd` or `systemctl status ksmbd`.\n- Check whether the build is 32-bit, for example with `uname -m`.\n- Check the running kernel version with `uname -r` against the fixed version.","fix":null,"status":"open","published_at":"2026-11-16T10:17:06+00:00","first_seen_at":"2026-11-16T10:39:27+00:00","triaged_at":"2026-11-16T10:39:52+00:00","updated_at":"2026-11-16T18:53:18+00:00","category":"runtime","confidence":0.6,"triage":{"at":"2026-11-16T10:39:52Z","model":"claude-haiku-5-5","output":{"fix":"unknown","reach":"network","title":"Linux ksmbd: 32-bit overflow in SMB security descriptor bounds check","impact":"low","summary":"In the Linux kernel's ksmbd SMB file server, a bounds check on the DACL offset overflows on 32-bit builds, so a crafted SET_INFO and QUERY_INFO sequence reads up to 8 bytes before an allocated buffer. The sources describe an out-of-bounds read reproduced under KASAN; they do not describe code execution.","audience":"businesses","category":"runtime","nicknames":[],"who_cares":["linux-kernel","ksmbd","smb","32-bit"],"confidence":0.6,"fix_status":"unknown","needs_auth":"unknown","worst_case":"out-of-bounds read of up to 8 bytes before a buffer","analyst_note":"Find the fixed kernel version and the upstream commit that adds the overflow check in the Linux kernel stable tree from the NVD entry.","how_to_check":"- Check whether the kernel runs ksmbd, for example with `lsmod | grep ksmbd` or `systemctl status ksmbd`.\n- Check whether the build is 32-bit, for example with `uname -m`.\n- Check the running kernel version with `uname -r` against the fixed version.","plain_action":"","product_name":"","needs_analyst":true,"not_affected_if":["no-ksmbd","64-bit-kernel","samba-only"],"who_is_affected":"Only systems running the ksmbd in-kernel SMB server are exposed, and the sources describe the issue on 32-bit builds because the overflow needs a 32-bit offset calculation. Systems using Samba or on 64-bit kernels without ksmbd are not described as affected. The sources do not give a fixed kernel version.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"yes","severity_if_unknown":"low"},"cost_usd":0.000854,"input_tokens":5293,"output_tokens":650,"severity_before":"unknown"},"analyst_status":null,"analyst_note":null,"search":"'-2026':13A,16A '-99309':14A,17A '0':275C '0xfffffff8':148C,239C '0xffffffff':149C '1':273C,280C '1/35':271C '1105':260C,303C '160':321C '2':264C '32':3A,18B,44B,119C,219C,224C '3401':330C '3473':338C '35':277C '436':344C '5':285C '7.3.0':283C '7676':312C '8':59B,156C 'acl':116C,188C 'add':345C 'addr':266C 'alloc':63B,160C 'arm':226C 'beff0bc9d69b':194C 'bit':4A,19B,45B,120C,220C,225C 'bound':10A,36B,72B,98C,139C,200C,254C 'buffer':64B 'bug':248C 'build':46B,101C,121C,221C,256C,299C,304C 'byte':60B,157C 'c2a273fa':267C 'call':293C 'check':11A,37B,99C,124C,201C,204C,296C,347C 'client':231C 'code':81B 'comm':278C 'commit':193C 'cpu':131C,168C,272C 'craft':49B 'cve':12A,15A 'dacl':40B,107C,111C,144C,164C,178C,181C,183C 'dacloffset':97C,170C,199C,238C 'desc':103C,258C,301C,306C 'describ':67B,80B 'descriptor':9A 'execut':82B 'file':33B,247C 'fix':94C,196C,202C 'follow':88C 'fs/smb/server/server.c':320C 'fs/smb/server/smb2pdu.c':311C 'fs/smb/server/smbacl.c':259C,302C 'function':207C 'goto':191C 'handl':290C,317C,322C 'happen':142C 'info':51B,54B,235C,242C,310C,315C 'int':163C,171C 'io':289C 'kasan':76B,228C,249C,295C 'kernel':23B,29B,86C 'kernel/kthread.c':343C 'kernel/workqueue.c':329C,337C 'ksmbd':2A,20B,31B,93C,195C,288C,291C,318C,323C 'ksmbd-io':287C 'kthread':342C 'kworker/1':270C,279C 'larg':106C 'le16':129C 'le32':166C 'leav':209C 'linux':1A,22B,28B,85C 'linux-kernel':21B 'make':128C 'max':155C 'ntacl':174C 'offset':41B,108C,112C,145C,165C,179C,182C,184C 'one':211C,327C,332C 'oob':152C 'out-of-bound':69B,136C 'overflow':5A,42B,95C,117C,197C,346C 'pass':126C 'pid':276C 'ppdacl':132C,172C 'ppntsd':161C,169C,176C,189C 'preced':158C 'process':326C,331C 'provid':110C 'ptr':133C 'queri':53B,241C,309C,314C 'rang':147C,297C 'rc2':284C 'read':56B,73B,135C,153C,261C 'reproduc':74B,222C 'resolv':92C 'runtim':24B 'sec':102C,236C,243C,257C,300C,305C 'secur':8A 'send':232C 'sequenc':55B 'server':34B 'set':50B,234C 'similar':203C 'size':134C,173C,175C,177C,190C,263C 'sizeof':113C,185C 'slab':251C 'slab-out-of-bound':250C 'smb':7A,25B,32B,115C,187C 'smb2':233C,308C,313C 'sourc':66B 'struct':114C,186C 'taint':282C 'task':269C 'thread':336C,340C 'trace':294C 'uid':274C 'unsign':162C 'valid':217C 'vulner':89C 'work':292C,319C,324C,328C,333C 'worker':335C,339C 'workqueu':286C","nicknames":[],"mitigations":[],"who_affected":"Only systems running the ksmbd in-kernel SMB server are exposed, and the sources describe the issue on 32-bit builds because the overflow needs a 32-bit offset calculation. Systems using Samba or on 64-bit kernels without ksmbd are not described as affected. The sources do not give a fixed kernel version.","tier":"C","verified":{},"analyst_revisit_at":null,"fix_status":"unknown","audience":"businesses","plain_action":null,"pkeys":[],"ptokens":[],"labels":["32bit","ksmbd","linuxkernel","low","runtime","smb"],"campaign_type":null,"search_a":"'-2026':13A,16A '-99309':14A,17A '32':3A 'bit':4A 'bound':10A 'check':11A 'cve':12A,15A 'descriptor':9A 'ksmbd':2A 'linux':1A 'overflow':5A 'secur':8A 'smb':7A","search_b":"'32':18B,44B '8':59B 'alloc':63B 'bit':19B,45B 'bound':36B,72B 'buffer':64B 'build':46B 'byte':60B 'check':37B 'code':81B 'craft':49B 'dacl':40B 'describ':67B,80B 'execut':82B 'file':33B 'info':51B,54B 'kasan':76B 'kernel':23B,29B 'ksmbd':20B,31B 'linux':22B,28B 'linux-kernel':21B 'offset':41B 'out-of-bound':69B 'overflow':42B 'queri':53B 'read':56B,73B 'reproduc':74B 'runtim':24B 'sequenc':55B 'server':34B 'set':50B 'smb':25B,32B 'sourc':66B","search_c":"'0':275C '0xfffffff8':148C,239C '0xffffffff':149C '1':273C,280C '1/35':271C '1105':260C,303C '160':321C '2':264C '32':119C,219C,224C '3401':330C '3473':338C '35':277C '436':344C '5':285C '7.3.0':283C '7676':312C '8':156C 'acl':116C,188C 'add':345C 'addr':266C 'alloc':160C 'arm':226C 'beff0bc9d69b':194C 'bit':120C,220C,225C 'bound':98C,139C,200C,254C 'bug':248C 'build':101C,121C,221C,256C,299C,304C 'byte':157C 'c2a273fa':267C 'call':293C 'check':99C,124C,201C,204C,296C,347C 'client':231C 'comm':278C 'commit':193C 'cpu':131C,168C,272C 'dacl':107C,111C,144C,164C,178C,181C,183C 'dacloffset':97C,170C,199C,238C 'desc':103C,258C,301C,306C 'file':247C 'fix':94C,196C,202C 'follow':88C 'fs/smb/server/server.c':320C 'fs/smb/server/smb2pdu.c':311C 'fs/smb/server/smbacl.c':259C,302C 'function':207C 'goto':191C 'handl':290C,317C,322C 'happen':142C 'info':235C,242C,310C,315C 'int':163C,171C 'io':289C 'kasan':228C,249C,295C 'kernel':86C 'kernel/kthread.c':343C 'kernel/workqueue.c':329C,337C 'ksmbd':93C,195C,288C,291C,318C,323C 'ksmbd-io':287C 'kthread':342C 'kworker/1':270C,279C 'larg':106C 'le16':129C 'le32':166C 'leav':209C 'linux':85C 'make':128C 'max':155C 'ntacl':174C 'offset':108C,112C,145C,165C,179C,182C,184C 'one':211C,327C,332C 'oob':152C 'out-of-bound':136C 'overflow':95C,117C,197C,346C 'pass':126C 'pid':276C 'ppdacl':132C,172C 'ppntsd':161C,169C,176C,189C 'preced':158C 'process':326C,331C 'provid':110C 'ptr':133C 'queri':241C,309C,314C 'rang':147C,297C 'rc2':284C 'read':135C,153C,261C 'reproduc':222C 'resolv':92C 'sec':102C,236C,243C,257C,300C,305C 'send':232C 'set':234C 'similar':203C 'size':134C,173C,175C,177C,190C,263C 'sizeof':113C,185C 'slab':251C 'slab-out-of-bound':250C 'smb':115C,187C 'smb2':233C,308C,313C 'struct':114C,186C 'taint':282C 'task':269C 'thread':336C,340C 'trace':294C 'uid':274C 'unsign':162C 'valid':217C 'vulner':89C 'work':292C,319C,324C,328C,333C 'worker':335C,339C 'workqueu':286C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-11-16T10:17:06+00:00","kev":null,"cvss_vector":null,"cvss_by":null,"poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-99309","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99309","severity":null,"published_at":"2026-11-16T10:17:06+00:00","modified_at":"2026-11-16T10:17:06+00:00","first_seen_at":"2026-11-16T10:39:27+00:00","fetched_at":"2026-11-16T10:39:27+00:00","note":null},{"source":"epss","external_id":"CVE-2026-99309","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-99309","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-99309"}],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}