{"id":"CVE-2026-99304","kind":"vulnerability","aliases":["CVE-2026-99304"],"related":[],"title":"Linux kernel Ceph client: integer overflow in snap trace lets a malicious MDS read out of bounds","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nceph: fix integer overflow in the snap trace bounds check\n\nceph_update_snap_trace() bounds the two encoded snapid arrays that follow a\nstruct ceph_mds_snap_realm with sizeof(u64) * (num_snaps +\nnum_prior_parent_snaps).  Both counts come straight off the wire as __le32,\nso the addition is evaluated in unsigned int and wraps before sizeof(u64)\npromotes it to size_t: an MDS sending num_snaps = 1 and\nnum_prior_parent_snaps = 0xffffffff makes the sum zero and the check\ndegenerates to ceph_decode_need(&p, e, 0, bad), which always passes.\ndup_array() then reads num_snaps * 8 bytes past the end of the message\nfront, which ceph_msg_new2() allocates at exactly front_len bytes.  An\nunsolicited CEPH_MSG_CLIENT_SNAP reaches this from a malicious or\ncompromised MDS with no client-side action, as do the snaptraces carried in\nan MDS reply and in a cap import.\n\nCompute the length with size_add()/size_mul() so it saturates at SIZE_MAX\ninstead of wrapping, in the style fs/ceph/mdsmap.c already uses for\nnum_export_targets.\n\n  BUG: KASAN: slab-out-of-bounds in dup_array (include/linux/unaligned.h:28 fs/ceph/snap.c:500)\n  Read of size 8 at addr ffff8880102a16c8 by task kworker/1:2/129\n  Workqueue: ceph-msgr ceph_con_workfn\n  Call Trace:\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   dup_array (include/linux/unaligned.h:28 fs/ceph/snap.c:500)\n   ceph_update_snap_trace (fs/ceph/snap.c:836)\n   ceph_handle_snap (fs/ceph/snap.c:1155)\n   mds_dispatch (fs/ceph/mds_client.c:7234)\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  ...\n  The buggy address is located 0 bytes to the right of\n   allocated 72-byte region [ffff8880102a1680, ffff8880102a16c8)","summary":"In the Linux kernel's Ceph filesystem client, a length check on snapshot trace data from the metadata server wraps around on overflow, so the check always passes. A malicious or compromised MDS can then cause the client to read memory past the end of a message buffer, a kernel out-of-bounds read reported by KASAN.","severity":"high","cvss":null,"epss":0.00209,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["ceph","cephfs","infrastructure","linux-kernel","self-hosted"],"not_affected_if":["no-cephfs-kernel-client"],"how_to_check":"Check whether the host mounts CephFS with the kernel client: 'mount -t ceph' or 'findmnt -t ceph', or 'lsmod | grep ceph'. ceph-fuse and non-Ceph hosts are not on this code path (the bug is in fs/ceph/snap.c). Compare 'uname -r' with your distro's kernel security notice for CVE-2026-99304; fixed versions are not published in the sources read.","fix":null,"status":"open","published_at":"2026-11-16T10:17:04+00:00","first_seen_at":"2026-11-16T10:39:27+00:00","triaged_at":"2026-11-16T10:39:59+00:00","updated_at":"2026-11-16T18:53:18+00:00","category":"infrastructure","confidence":0.6,"triage":{"at":"2026-11-16T10:39:59Z","model":"claude-haiku-5-5","output":{"fix":"unknown","reach":"network","title":"Linux kernel Ceph client: integer overflow in snap trace lets a malicious MDS read out of bounds","impact":"medium","summary":"In the Linux kernel's Ceph filesystem client, a length check on snapshot trace data from the metadata server wraps around on overflow, so the check always passes. A malicious or compromised MDS can then cause the client to read memory past the end of a message buffer, a kernel out-of-bounds read reported by KASAN.","audience":"businesses","category":"infrastructure","nicknames":[],"who_cares":["linux-kernel","ceph","cephfs","self-hosted"],"confidence":0.6,"fix_status":"unknown","needs_auth":"no","worst_case":"kernel reads memory out of bounds; possible crash or information leak","analyst_note":"Find the affected and fixed kernel version ranges for CVE-2026-99304 from the kernel.org CVE record or the stable-kernel commit that adds size_add()/size_mul() in fs/ceph/snap.c.","how_to_check":"- unknown","plain_action":"","product_name":"","needs_analyst":true,"not_affected_if":["no-cephfs-kernel-client"],"who_is_affected":"Systems that mount CephFS with the Linux kernel client are exposed, since the flawed code handles snap traces from the MDS. The sources do not state which kernel versions are affected or fixed. Systems that do not use the kernel Ceph client can skip it.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"unknown","severity_if_unknown":"high"},"cost_usd":0.000823,"input_tokens":5506,"output_tokens":545,"severity_before":"unknown"},"analyst_status":"done","analyst_note":"Find the affected and fixed kernel version ranges for CVE-2026-99304 from the kernel.org CVE record or the stable-kernel commit that adds size_add()/size_mul() in fs/ceph/snap.c.","search":"'-2026':19A,22A '-99304':20A,23A '/size_mul':261C '0':191C,401C '0xffffffff':176C '1':170C '1155':348C '120':321C '1424':358C '1430':365C '1576':370C '158':389C '2/129':305C '245':395C '28':292C,335C '3396':375C '3479':379C '3560':381C '378':325C '436':384C '482':327C '500':294C,337C '595':331C '72':408C '7234':352C '8':202C,298C '836':343C '94':319C 'action':240C 'add':260C 'addit':149C 'addr':300C 'address':398C 'alloc':215C,407C 'alreadi':275C 'alway':59B,194C 'arch/x86/entry/entry_64.s':394C 'arch/x86/kernel/process.c':388C 'around':53B 'array':120C,197C,290C,333C 'asm':393C 'bad':192C 'bound':17A,86B,109C,115C,287C 'buffer':80B 'bug':281C 'buggi':397C 'byte':203C,220C,402C,409C 'call':313C 'cap':253C 'carri':245C 'caus':68B 'ceph':3A,24B,38B,101C,111C,125C,186C,212C,223C,308C,310C,338C,344C,353C,359C,366C 'ceph-msgr':307C 'cephf':25B 'check':43B,58B,110C,183C 'client':4A,40B,70B,225C,238C 'client-sid':237C 'come':140C 'compromis':64B,233C 'comput':255C 'con':311C,354C,360C,367C 'count':139C 'cve':18A,21A 'data':47B 'decod':187C 'degener':184C 'dispatch':350C 'dump':315C 'dup':196C,289C,332C 'e':190C 'encod':118C 'end':76B,206C 'evalu':151C 'exact':217C 'export':279C 'ffff8880102a1680':411C 'ffff8880102a16c8':301C,412C 'filesystem':39B 'fix':102C 'follow':96C,122C 'fork':387C,392C 'front':210C,218C 'fs/ceph/mds_client.c':351C 'fs/ceph/mdsmap.c':274C 'fs/ceph/snap.c':293C,336C,342C,347C 'handl':345C 'host':32B 'import':254C 'include/linux/unaligned.h':291C,334C 'infrastructur':26B 'instead':268C 'int':154C 'integ':5A,103C 'kasan':90B,282C,328C 'kernel':2A,29B,36B,82B,94C 'kernel/kthread.c':383C 'kernel/workqueue.c':374C,378C,380C 'kthread':382C 'kworker/1':304C 'le32':146C 'len':219C 'length':42B,257C 'let':10A 'lib/dump_stack.c':318C,320C 'linux':1A,28B,35B,93C 'linux-kernel':27B 'locat':400C 'lvl':317C 'make':177C 'malici':12A,62B,231C 'max':267C 'mds':13A,65B,126C,166C,234C,248C,349C 'memori':73B 'messag':79B,209C,356C 'metadata':50B 'mm/kasan/report.c':324C,326C,330C 'msg':213C,224C 'msgr':309C 'need':188C 'net/ceph/messenger.c':357C,369C 'net/ceph/messenger_v1.c':364C 'new2':214C 'num':132C,134C,168C,172C,200C,278C 'one':372C 'out-of-bound':83B 'overflow':6A,55B,104C 'p':189C 'parent':136C,174C 'pass':60B,195C 'past':74B,204C 'print':322C 'prior':135C,173C 'process':355C,371C 'promot':160C 'reach':227C 'read':14A,72B,87B,199C,295C,363C 'realm':128C 'region':410C 'repli':249C 'report':88B,323C,329C 'resolv':100C 'ret':385C,390C 'right':405C 'satur':264C 'self':31B 'self-host':30B 'send':167C 'server':51B 'side':239C 'size':163C,259C,266C,297C 'sizeof':130C,158C 'slab':284C 'slab-out-of-bound':283C 'snap':8A,107C,113C,127C,133C,137C,169C,175C,201C,226C,340C,346C 'snapid':119C 'snapshot':45B 'snaptrac':244C 'stack':316C 'straight':141C 'struct':124C 'style':273C 'sum':179C 'target':280C 'task':303C 'thread':377C 'trace':9A,46B,108C,114C,314C,341C 'tri':362C 'two':117C 'u64':131C,159C 'unsign':153C 'unsolicit':222C 'updat':112C,339C 'use':276C 'v1':361C 'vulner':97C 'wire':144C 'work':373C 'worker':376C 'workfn':312C,368C 'workqueu':306C 'wrap':52B,156C,270C 'zero':180C","nicknames":[],"mitigations":[],"who_affected":"Systems that mount CephFS with the Linux kernel client are exposed, since the flawed code handles snap traces from the MDS. The sources do not state which kernel versions are affected or fixed. Systems that do not use the kernel Ceph client can skip it.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"unknown","audience":"businesses","plain_action":null,"pkeys":[],"ptokens":[],"labels":["ceph","cephfs","high","infrastructure","linuxkernel","selfhosted"],"campaign_type":null,"search_a":"'-2026':19A,22A '-99304':20A,23A 'bound':17A 'ceph':3A 'client':4A 'cve':18A,21A 'integ':5A 'kernel':2A 'let':10A 'linux':1A 'malici':12A 'mds':13A 'overflow':6A 'read':14A 'snap':8A 'trace':9A","search_b":"'alway':59B 'around':53B 'bound':86B 'buffer':80B 'caus':68B 'ceph':24B,38B 'cephf':25B 'check':43B,58B 'client':40B,70B 'compromis':64B 'data':47B 'end':76B 'filesystem':39B 'host':32B 'infrastructur':26B 'kasan':90B 'kernel':29B,36B,82B 'length':42B 'linux':28B,35B 'linux-kernel':27B 'malici':62B 'mds':65B 'memori':73B 'messag':79B 'metadata':50B 'out-of-bound':83B 'overflow':55B 'pass':60B 'past':74B 'read':72B,87B 'report':88B 'self':31B 'self-host':30B 'server':51B 'snapshot':45B 'trace':46B 'wrap':52B","search_c":"'/size_mul':261C '0':191C,401C '0xffffffff':176C '1':170C '1155':348C '120':321C '1424':358C '1430':365C '1576':370C '158':389C '2/129':305C '245':395C '28':292C,335C '3396':375C '3479':379C '3560':381C '378':325C '436':384C '482':327C '500':294C,337C '595':331C '72':408C '7234':352C '8':202C,298C '836':343C '94':319C 'action':240C 'add':260C 'addit':149C 'addr':300C 'address':398C 'alloc':215C,407C 'alreadi':275C 'alway':194C 'arch/x86/entry/entry_64.s':394C 'arch/x86/kernel/process.c':388C 'array':120C,197C,290C,333C 'asm':393C 'bad':192C 'bound':109C,115C,287C 'bug':281C 'buggi':397C 'byte':203C,220C,402C,409C 'call':313C 'cap':253C 'carri':245C 'ceph':101C,111C,125C,186C,212C,223C,308C,310C,338C,344C,353C,359C,366C 'ceph-msgr':307C 'check':110C,183C 'client':225C,238C 'client-sid':237C 'come':140C 'compromis':233C 'comput':255C 'con':311C,354C,360C,367C 'count':139C 'decod':187C 'degener':184C 'dispatch':350C 'dump':315C 'dup':196C,289C,332C 'e':190C 'encod':118C 'end':206C 'evalu':151C 'exact':217C 'export':279C 'ffff8880102a1680':411C 'ffff8880102a16c8':301C,412C 'fix':102C 'follow':96C,122C 'fork':387C,392C 'front':210C,218C 'fs/ceph/mds_client.c':351C 'fs/ceph/mdsmap.c':274C 'fs/ceph/snap.c':293C,336C,342C,347C 'handl':345C 'import':254C 'include/linux/unaligned.h':291C,334C 'instead':268C 'int':154C 'integ':103C 'kasan':282C,328C 'kernel':94C 'kernel/kthread.c':383C 'kernel/workqueue.c':374C,378C,380C 'kthread':382C 'kworker/1':304C 'le32':146C 'len':219C 'length':257C 'lib/dump_stack.c':318C,320C 'linux':93C 'locat':400C 'lvl':317C 'make':177C 'malici':231C 'max':267C 'mds':126C,166C,234C,248C,349C 'messag':209C,356C 'mm/kasan/report.c':324C,326C,330C 'msg':213C,224C 'msgr':309C 'need':188C 'net/ceph/messenger.c':357C,369C 'net/ceph/messenger_v1.c':364C 'new2':214C 'num':132C,134C,168C,172C,200C,278C 'one':372C 'overflow':104C 'p':189C 'parent':136C,174C 'pass':195C 'past':204C 'print':322C 'prior':135C,173C 'process':355C,371C 'promot':160C 'reach':227C 'read':199C,295C,363C 'realm':128C 'region':410C 'repli':249C 'report':323C,329C 'resolv':100C 'ret':385C,390C 'right':405C 'satur':264C 'send':167C 'side':239C 'size':163C,259C,266C,297C 'sizeof':130C,158C 'slab':284C 'slab-out-of-bound':283C 'snap':107C,113C,127C,133C,137C,169C,175C,201C,226C,340C,346C 'snapid':119C 'snaptrac':244C 'stack':316C 'straight':141C 'struct':124C 'style':273C 'sum':179C 'target':280C 'task':303C 'thread':377C 'trace':108C,114C,314C,341C 'tri':362C 'two':117C 'u64':131C,159C 'unsign':153C 'unsolicit':222C 'updat':112C,339C 'use':276C 'v1':361C 'vulner':97C 'wire':144C 'work':373C 'worker':376C 'workfn':312C,368C 'workqueu':306C 'wrap':156C,270C 'zero':180C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-11-16T10:17:04+00:00","kev":null,"cvss_vector":null,"cvss_by":null,"poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-99304","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99304","severity":null,"published_at":"2026-11-16T10:17:04+00:00","modified_at":"2026-11-16T10:17:04+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-99304:4098","url":"https://ci.syzbot.org/patches/ebc22f8a-2fca-4ec9-8db3-0c732feea975","severity":null,"published_at":"2026-11-16T10:40:41+00:00","modified_at":"2026-11-16T10:40:41+00:00","first_seen_at":"2026-11-16T10:40:41+00:00","fetched_at":"2026-11-16T10:40:41+00:00","note":"Found the patch posting (Xiang Mei, Cc stable, Fixes: 963b61eb041e 'ceph: snapshot management') but no merged commit, kernel.org CVE record or fixed stable versions. NVD page is empty. Nothing verified; fix versions unknown. Settle by finding the mainline commit id or the kernel.org CVE entry.","cites":["https://ci.syzbot.org/patches/ebc22f8a-2fca-4ec9-8db3-0c732feea975"]},{"source":"epss","external_id":"CVE-2026-99304","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-99304","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":168991,"url":"https://ci.syzbot.org/patches/ebc22f8a-2fca-4ec9-8db3-0c732feea975","title":"[PATCH] ceph: fix integer overflow in the snap trace bounds check (Xiang Mei, via syzbot CI)","kind":"other","source":"analyst","publisher":null,"text":null,"published_at":null,"relation":"describes","confidence":null,"note":null}],"disclosures":[],"exploit_sources":[{"type":"epss","score":0.00209,"url":"https://api.first.org/data/v1/epss?cve=CVE-2026-99304"}],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}