{"id":"CVE-2026-99306","kind":"vulnerability","aliases":["CVE-2026-99306"],"related":[],"title":"Linux kernel Ceph client: malformed MDS map reads past a stack buffer","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nceph: reject mdsmaps that claim more than CEPH_MAX_MDS ranks\n\ncheck_new_map() sizes its export-target bitmap from CEPH_MAX_MDS but walks\nit with newmap->possible_max_rank, which comes straight off the wire:\nceph_mdsmap_decode() sets it to max(m_num_active_mds, m_max_mds), then\noverwrites it with the size of the \"in\" set.  Neither is bounded by\nCEPH_MAX_MDS, only by m_info allocating, so a monitor announcing more ranks\nthan the bitmap holds makes test_bit() read past the end of targets[].  The\nclear_bit() loop above indexes the same bitmap, though it is additionally\nbounded by mdsc->max_sessions.  The map arrives on the monitor connection,\nwhich is unauthenticated in legacy msgr mode.\n\nCEPH_MAX_MDS is a protocol constant from src/mds/mdstypes.h, and the\nreserved inode ranges in super.h are laid out one rank apart over that\nspan, so a map claiming more ranks is corrupt.  Reject it where the rank\nspace is established rather than letting the count reach check_new_map().\n\n  BUG: KASAN: stack-out-of-bounds in check_new_map (fs/ceph/mds_client.c:5968)\n  Read of size 8 at addr ffffc90000ac7798 by task kworker/1:2/127\n  Workqueue: ceph-msgr ceph_con_workfn\n  Call Trace:\n   <TASK>\n   dump_stack_lvl (lib/dump_stack.c:94 lib/dump_stack.c:120)\n   print_report (mm/kasan/report.c:378 mm/kasan/report.c:482)\n   kasan_report (mm/kasan/report.c:595)\n   kasan_check_range (mm/kasan/generic.c:186 mm/kasan/generic.c:200)\n   check_new_map (fs/ceph/mds_client.c:5968)\n   ceph_mdsc_handle_mdsmap (fs/ceph/mds_client.c:7060)\n   extra_mon_dispatch (fs/ceph/super.c:802)\n   mon_dispatch (net/ceph/mon_client.c:1483)\n   ceph_con_process_message (net/ceph/messenger.c:1424)\n   ceph_con_v1_try_read (net/ceph/messenger_v1.c:1430)\n   ceph_con_workfn (net/ceph/messenger.c:1576)\n   process_one_work (kernel/workqueue.c:3396)\n   worker_thread (kernel/workqueue.c:3479 kernel/workqueue.c:3560)\n   kthread (kernel/kthread.c:436)\n   ret_from_fork (arch/x86/kernel/process.c:158)\n   ret_from_fork_asm (arch/x86/entry/entry_64.S:245)\n   </TASK>\n  The buggy address belongs to stack of task kworker/1:2/127\n   and is located at offset 288 in frame:\n   check_new_map (fs/ceph/mds_client.c:5846)\n  This frame has 1 object:\n   [32, 288) 'targets'","summary":"A Ceph monitor can send an MDS map claiming more ranks than the kernel's Ceph client supports, and the client reads past the end of a stack array while checking it. An attacker who can send messages to the monitor connection, which is unauthenticated in legacy messenger mode, can crash the kernel or possibly read adjacent kernel memory.","severity":"high","cvss":null,"epss":0.00209,"exploited":false,"exploited_at":null,"products":[{"name":"linux-kernel","fixed":["6.18.63"],"affected":"kernels with the Ceph client containing d517b3983dd3 and without the fix; < 6.18.63 on 6.18","ecosystem":"linux"}],"ecosystems":["linux"],"tags":["ceph","cephfs","linux-kernel","runtime","self-hosted"],"not_affected_if":["no-cephfs-mount","userspace-ceph-client"],"how_to_check":"- Run uname -r; on 6.18 it is fixed from 6.18.63. For other series, check the distro kernel changelog for 'reject mdsmaps that claim more than CEPH_MAX_MDS ranks'.\n- Check whether the ceph module is loaded: lsmod | grep ceph.\n- Check for CephFS kernel mounts: mount -t ceph. No CephFS kernel mount means you can skip it.","fix":"Update to a kernel carrying the patch 'ceph: reject mdsmaps that claim more than CEPH_MAX_MDS ranks': 6.18.63 or later on the 6.18 series (its rc1 shortlog lists it). Other stable branches and the mainline commit id not confirmed; check your distro's changelog for this CVE.","status":"open","published_at":"2026-11-16T10:17:05+00:00","first_seen_at":"2026-11-16T10:39:27+00:00","triaged_at":"2026-11-16T10:39:57+00:00","updated_at":"2026-11-16T18:53:18+00:00","category":"runtime","confidence":0.7,"triage":{"at":"2026-11-16T10:39:57Z","model":"claude-haiku-5-5","output":{"fix":"unknown","reach":"network","title":"Linux kernel Ceph client: malformed MDS map reads past a stack buffer","impact":"medium","summary":"A Ceph monitor can send an MDS map claiming more ranks than the kernel's Ceph client supports, and the client reads past the end of a stack array while checking it. An attacker who can send messages to the monitor connection, which is unauthenticated in legacy messenger mode, can crash the kernel or possibly read adjacent kernel memory.","audience":"businesses","category":"runtime","nicknames":[],"who_cares":["linux-kernel","ceph","cephfs"],"confidence":0.6,"fix_status":"unknown","needs_auth":"no","worst_case":"kernel crash or out-of-bounds stack memory read","analyst_note":"Confirm the fixed kernel versions and the upstream commit from the kernel.org or NVD entry; sources given here do not list them.","how_to_check":"- Check the kernel version with `uname -r` and whether the `ceph` module is loaded with `lsmod | grep ceph`.\n- Check whether the Ceph filesystem is mounted with `mount -t ceph`.","plain_action":"","product_name":"","needs_analyst":true,"not_affected_if":["no-cephfs-mount"],"who_is_affected":"Only Linux machines that mount CephFS (the ceph kernel client) are exposed, and the flaw is triggered by the monitor connection. Hosts that do not use CephFS can skip it. unknown whether legacy messenger mode is required in practice.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"yes","severity_if_unknown":"high"},"cost_usd":0.000846,"input_tokens":5544,"output_tokens":583,"severity_before":"unknown"},"analyst_status":"done","analyst_note":"Confirm the fixed kernel versions and the upstream commit from the kernel.org or NVD entry; sources given here do not list them.","search":"'-2026':14A,17A '-99306':15A,18A '1':421C '120':314C '1424':357C '1430':364C '1483':351C '1576':369C '158':388C '186':329C '2/127':298C,404C '200':331C '245':394C '288':410C,424C '32':423C '3396':374C '3479':378C '3560':380C '378':318C '436':383C '482':320C '5846':417C '595':324C '5968':287C,336C '7060':342C '8':291C '802':347C '94':312C 'activ':147C 'addit':205C 'addr':293C 'address':397C 'adjac':87B 'alloc':173C 'announc':177C 'apart':246C 'arch/x86/entry/entry_64.s':393C 'arch/x86/kernel/process.c':387C 'array':59B 'arriv':213C 'asm':392C 'attack':64B 'belong':398C 'bit':186C,195C 'bitmap':119C,182C,201C 'bound':164C,206C,281C 'buffer':12A 'bug':275C 'buggi':396C 'call':306C 'ceph':3A,22B,32B,46B,100C,107C,121C,138C,166C,225C,301C,303C,337C,352C,358C,365C 'ceph-msgr':300C 'cephf':23B 'check':61B,111C,272C,283C,326C,332C,413C 'claim':39B,104C,253C 'clear':194C 'client':4A,47B,51B 'come':133C 'con':304C,353C,359C,366C 'connect':72B,217C 'constant':231C 'corrupt':257C 'count':270C 'crash':81B 'cve':13A,16A 'decod':140C 'dispatch':345C,349C 'dump':308C 'end':55B,190C 'establish':265C 'export':117C 'export-target':116C 'extra':343C 'ffffc90000ac7798':294C 'follow':95C 'fork':386C,391C 'frame':412C,419C 'fs/ceph/mds_client.c':286C,335C,341C,416C 'fs/ceph/super.c':346C 'handl':339C 'hold':183C 'host':30B 'index':198C 'info':172C 'inod':237C 'kasan':276C,321C,325C 'kernel':2A,21A,26B,44B,83B,88B,93C 'kernel/kthread.c':382C 'kernel/workqueue.c':373C,377C,379C 'kthread':381C 'kworker/1':297C,403C 'laid':242C 'legaci':77B,222C 'let':268C 'lib/dump_stack.c':311C,313C 'linux':1A,20A,25B,92C 'linux-kernel':19A,24B 'locat':407C 'loop':196C 'lvl':310C 'm':145C,149C,171C 'make':184C 'malform':5A 'map':7A,38B,113C,212C,252C,274C,285C,334C,415C 'max':108C,122C,130C,144C,150C,167C,209C,226C 'mds':6A,37B,109C,123C,148C,151C,168C,227C 'mdsc':208C,338C 'mdsmap':102C,139C,340C 'memori':89B 'messag':68B,355C 'messeng':78B 'mm/kasan/generic.c':328C,330C 'mm/kasan/report.c':317C,319C,323C 'mode':79B,224C 'mon':344C,348C 'monitor':33B,71B,176C,216C 'msgr':223C,302C 'neither':162C 'net/ceph/messenger.c':356C,368C 'net/ceph/messenger_v1.c':363C 'net/ceph/mon_client.c':350C 'new':112C,273C,284C,333C,414C 'newmap':128C 'num':146C 'object':422C 'offset':409C 'one':244C,371C 'overwrit':153C 'past':9A,53B,188C 'possibl':85B,129C 'print':315C 'process':354C,370C 'protocol':230C 'rang':238C,327C 'rank':41B,110C,131C,179C,245C,255C,262C 'rather':266C 'reach':271C 'read':8A,52B,86B,187C,288C,362C 'reject':101C,258C 'report':316C,322C 'reserv':236C 'resolv':99C 'ret':384C,389C 'runtim':27B 'self':29B 'self-host':28B 'send':35B,67B 'session':210C 'set':141C,161C 'size':114C,157C,290C 'space':263C 'span':249C 'src/mds/mdstypes.h':233C 'stack':11A,58B,278C,309C,400C 'stack-out-of-bound':277C 'straight':134C 'super.h':240C 'support':48B 'target':118C,192C,425C 'task':296C,402C 'test':185C 'though':202C 'thread':376C 'trace':307C 'tri':361C 'unauthent':75B,220C 'v1':360C 'vulner':96C 'walk':125C 'wire':137C 'work':372C 'worker':375C 'workfn':305C,367C 'workqueu':299C","nicknames":[],"mitigations":[],"who_affected":"Linux hosts that mount CephFS with the in-kernel client (ceph module), such as Kubernetes nodes using CephFS volumes or servers with mount -t ceph. The malformed MDS map comes from the Ceph monitor connection, which the patch says is unauthenticated in legacy msgr (v1) mode, so a party who can inject or spoof monitor traffic, or a compromised monitor, can trigger an out-of-bounds stack read, with a KASAN report in the patch. Hosts without CephFS kernel mounts, or userspace-only Ceph clients (FUSE, RBD via librbd), can skip it.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"businesses","plain_action":null,"pkeys":["linuxkernel"],"ptokens":["kernel","linux"],"labels":["ceph","cephfs","high","linux","linuxkernel","runtime","selfhosted"],"campaign_type":null,"search_a":"'-2026':14A,17A '-99306':15A,18A 'buffer':12A 'ceph':3A 'client':4A 'cve':13A,16A 'kernel':2A,21A 'linux':1A,20A 'linux-kernel':19A 'malform':5A 'map':7A 'mds':6A 'past':9A 'read':8A 'stack':11A","search_b":"'adjac':87B 'array':59B 'attack':64B 'ceph':22B,32B,46B 'cephf':23B 'check':61B 'claim':39B 'client':47B,51B 'connect':72B 'crash':81B 'end':55B 'host':30B 'kernel':26B,44B,83B,88B 'legaci':77B 'linux':25B 'linux-kernel':24B 'map':38B 'mds':37B 'memori':89B 'messag':68B 'messeng':78B 'mode':79B 'monitor':33B,71B 'past':53B 'possibl':85B 'rank':41B 'read':52B,86B 'runtim':27B 'self':29B 'self-host':28B 'send':35B,67B 'stack':58B 'support':48B 'unauthent':75B","search_c":"'1':421C '120':314C '1424':357C '1430':364C '1483':351C '1576':369C '158':388C '186':329C '2/127':298C,404C '200':331C '245':394C '288':410C,424C '32':423C '3396':374C '3479':378C '3560':380C '378':318C '436':383C '482':320C '5846':417C '595':324C '5968':287C,336C '7060':342C '8':291C '802':347C '94':312C 'activ':147C 'addit':205C 'addr':293C 'address':397C 'alloc':173C 'announc':177C 'apart':246C 'arch/x86/entry/entry_64.s':393C 'arch/x86/kernel/process.c':387C 'arriv':213C 'asm':392C 'belong':398C 'bit':186C,195C 'bitmap':119C,182C,201C 'bound':164C,206C,281C 'bug':275C 'buggi':396C 'call':306C 'ceph':100C,107C,121C,138C,166C,225C,301C,303C,337C,352C,358C,365C 'ceph-msgr':300C 'check':111C,272C,283C,326C,332C,413C 'claim':104C,253C 'clear':194C 'come':133C 'con':304C,353C,359C,366C 'connect':217C 'constant':231C 'corrupt':257C 'count':270C 'decod':140C 'dispatch':345C,349C 'dump':308C 'end':190C 'establish':265C 'export':117C 'export-target':116C 'extra':343C 'ffffc90000ac7798':294C 'follow':95C 'fork':386C,391C 'frame':412C,419C 'fs/ceph/mds_client.c':286C,335C,341C,416C 'fs/ceph/super.c':346C 'handl':339C 'hold':183C 'index':198C 'info':172C 'inod':237C 'kasan':276C,321C,325C 'kernel':93C 'kernel/kthread.c':382C 'kernel/workqueue.c':373C,377C,379C 'kthread':381C 'kworker/1':297C,403C 'laid':242C 'legaci':222C 'let':268C 'lib/dump_stack.c':311C,313C 'linux':92C 'locat':407C 'loop':196C 'lvl':310C 'm':145C,149C,171C 'make':184C 'map':113C,212C,252C,274C,285C,334C,415C 'max':108C,122C,130C,144C,150C,167C,209C,226C 'mds':109C,123C,148C,151C,168C,227C 'mdsc':208C,338C 'mdsmap':102C,139C,340C 'messag':355C 'mm/kasan/generic.c':328C,330C 'mm/kasan/report.c':317C,319C,323C 'mode':224C 'mon':344C,348C 'monitor':176C,216C 'msgr':223C,302C 'neither':162C 'net/ceph/messenger.c':356C,368C 'net/ceph/messenger_v1.c':363C 'net/ceph/mon_client.c':350C 'new':112C,273C,284C,333C,414C 'newmap':128C 'num':146C 'object':422C 'offset':409C 'one':244C,371C 'overwrit':153C 'past':188C 'possibl':129C 'print':315C 'process':354C,370C 'protocol':230C 'rang':238C,327C 'rank':110C,131C,179C,245C,255C,262C 'rather':266C 'reach':271C 'read':187C,288C,362C 'reject':101C,258C 'report':316C,322C 'reserv':236C 'resolv':99C 'ret':384C,389C 'session':210C 'set':141C,161C 'size':114C,157C,290C 'space':263C 'span':249C 'src/mds/mdstypes.h':233C 'stack':278C,309C,400C 'stack-out-of-bound':277C 'straight':134C 'super.h':240C 'target':118C,192C,425C 'task':296C,402C 'test':185C 'though':202C 'thread':376C 'trace':307C 'tri':361C 'unauthent':220C 'v1':360C 'vulner':96C 'walk':125C 'wire':137C 'work':372C 'worker':375C 'workfn':305C,367C 'workqueu':299C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-11-16T10:17:05+00:00","kev":null,"cvss_vector":null,"cvss_by":null,"poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-99306","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99306","severity":null,"published_at":"2026-11-16T10:17:05+00:00","modified_at":"2026-11-16T10:17:05+00:00","first_seen_at":"2026-11-16T10:39:27+00:00","fetched_at":"2026-11-16T10:39:27+00:00","note":null},{"source":"analyst","external_id":"CVE-2026-99306:4096","url":"https://lore.landau.one/lkml/20260915051924.737109-1-xmei5@asu.edu/T/","severity":null,"published_at":"2026-11-16T10:40:59+00:00","modified_at":"2026-11-16T10:40:59+00:00","first_seen_at":"2026-11-16T10:40:59+00:00","fetched_at":"2026-11-16T10:40:59+00:00","note":"Fix patch by Xiang Mei (2026-09-15, Cc stable, Fixes d517b3983dd3) adds CEPH_MAX_MDS check in ceph_mdsmap_decode(); listed in 6.18.63-rc1 shortlog, 6.18.63 released 2026-11-10. Upstream commit hash and other stable branches (6.12.117 changelog truncated) not confirmed; not marked verified. Sibling CVE-2026-89653 is a different bug (export_targets ranks), not merged.","cites":["https://lore.landau.one/lkml/20260915051924.737109-1-xmei5@asu.edu/T/","https://lore.landau.one/lkml/20261108-rc-reply-03-xfs-6.18.63-rc1@kernel.org/t/"]},{"source":"epss","external_id":"CVE-2026-99306","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-99306","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":[{"id":168993,"url":"https://lore.landau.one/lkml/20260915051924.737109-1-xmei5@asu.edu/T/","title":"[PATCH] ceph: reject mdsmaps that claim more than CEPH_MAX_MDS ranks (Xiang Mei, 2026-09-15)","kind":"issue","source":"analyst","publisher":null,"text":null,"published_at":null,"relation":"fix","confidence":null,"note":null},{"id":168994,"url":"https://lore.landau.one/lkml/20261108-rc-reply-03-xfs-6.18.63-rc1@kernel.org/t/","title":"6.18.63-rc1 review (shortlog lists the ceph fix)","kind":"release","source":"analyst","publisher":null,"text":null,"published_at":null,"relation":"fix","confidence":null,"note":null}],"disclosures":[],"exploit_sources":[{"type":"epss","score":0.00209,"url":"https://api.first.org/data/v1/epss?cve=CVE-2026-99306"}],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}