{"id":"AZL-115097","summary":"CVE-2026-99557 affecting package kernel 6.6.161.1-1","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nceph: fail readdir when the MDS reply carries no dirfrag\n\nA ceph mount oopses in ceph_readdir() when the MDS answers a READDIR\nrequest with a reply whose extra blob is empty.  parse_reply_info()\nskips reply blobs whose length is zero, so parse_reply_info_readdir()\nnever runs, r_reply_info.dir_dir stays NULL, and the reply still\nparses as successful.  ceph_mdsc_do_request() returns 0 and\nceph_readdir() then reads rinfo-\u003edir_dir-\u003efrag with no NULL check:\n\n\t/* extra */\n\tceph_decode_32_safe(&p, end, len, bad);\n\tif (len \u003e 0) {\n\t\t...\n\t\terr = parse_reply_info_extra(&p, p + len, req, features, s);\n\t\t...\n\t}\n\nThe oops on v7.3.0-rc4-00537-ga3ff15db6820, one getdents64(2) on the\nmount root after an ms_mode=legacy mount, trimmed:\n\nBUG: KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]\nOops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] SMP KASAN NOPTI\nCPU: 1 UID: 0 PID: 266 Comm: ls Tainted: G                 N  7.3.0-rc4-00537-ga3ff15db6820 #1 PREEMPT(lazy)\nRIP: 0010:ceph_readdir+0xbff/0x3ea0\nCall Trace:\n \u003cTASK\u003e\n ? __pfx_ceph_readdir+0x10/0x10\n wrap_directory_iterator+0xa2/0xe0\n iterate_dir+0x1da/0x5d0\n __x64_sys_getdents64+0x13b/0x2a0\n do_syscall_64+0xdd/0x4a0\n entry_SYSCALL_64_after_hwframe+0x77/0x7f\n \u003c/TASK\u003e\n\nThe unconditional frag read came in with 81c6aea5275ea (\"ceph: handle\nfrag mismatch between readdir request and reply\"), so the bug is old.\n\nTreat a reply with no dirfrag as a protocol violation: warn once,\ndrop the request and return -EIO, the same way ceph_readdir() already\nhandles the two malformed-reply cases later in the function.\n\nTested on v7.3.0-rc4-00537-ga3ff15db6820 (KASAN).  Unpatched, the\ngetdents64(2) above takes the machine down (oops=panic) on the first\nREADDIR reply.  With the patch it warns once and getdents64(2)\nreturns -EIO, no oops, no hang.  A conformant reply for an empty\ndirectory — dirfrag present, zero entries, FRAG_END|FRAG_COMPLETE —\nstill lists \".\" and \"..\" and returns EOF on both kernels, so normal\nreaddir behavior is unchanged.  The oops is still present in\nv7.3-rc5 (72d3fcf802c45).","modified":"2026-11-20T14:16:07.954814151Z","published":"2026-11-19T15:18:12Z","upstream":["CVE-2026-99557"],"references":[{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99557"}],"affected":[{"package":{"name":"kernel","ecosystem":"Azure Linux:3","purl":"pkg:rpm/azure-linux/kernel"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"6.6.161.1-1"}]}],"database_specific":{"source":"https://github.com/microsoft/AzureLinuxVulnerabilityData/blob/main/osv/AZL-115097.json"}}],"schema_version":"1.9.2"}