{"id":"CVE-2026-99821","aliases":["CVE-2026-99821"],"related":[],"kind":"vulnerability","state":"published","title":"ceph: fix off-by-one NUL termination in decode_encrypted_symlink()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nceph: fix off-by-one NUL termination in decode_encrypted_symlink()\n\ndecode_encrypted_symlink() allocates enclen + 1 bytes but writes the NUL\nterminator at sym[declen + 1] instead of sym[declen].  A malicious MDS can\nreport symlink_len == 0 for an encrypted inode, and base64_decode() returns\n0 for a zero-length input, so the store lands one byte past a kmalloc(1)\nallocation.\n\nTerminate at sym[declen], which is always within the allocation.\n\n  BUG: KASAN: slab-out-of-bounds in ceph_fill_inode (fs/ceph/inode.c:996)\n  Write of size 1 at addr ffff888020aad361 by task kworker/0:0/9\n  Workqueue: ceph-msgr ceph_con_workfn\n  Call Trace:\n   kasan_report (mm/kasan/report.c:595)\n   ceph_fill_inode (fs/ceph/inode.c:996 fs/ceph/inode.c:1277)\n   ceph_fill_trace (fs/ceph/inode.c:1716)\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   ...\n  The buggy address belongs to the object at ffff888020aad360\n   which belongs to the cache kmalloc-8 of size 8\n  The buggy address is located 0 bytes to the right of\n   allocated 1-byte region [ffff888020aad360, ffff888020aad361)","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nceph: fix off-by-one NUL termination in decode_encrypted_symlink()\n\ndecode_encrypted_symlink() allocates enclen + 1 bytes but writes the NUL\nterminator at sym[declen + 1] instead of sym[declen].  A malicious MDS can\nreport symlink_len == 0 for an encrypted inode, and base64_decode() returns\n0 for a zero-length input, so the store lands one byte past a kmalloc(1)\nallocation.\n\nTerminate at sym[declen], which is always within the allocation.\n\n  BUG: KASAN: slab-out-of-bounds in ceph_fill_inode (fs/ceph/inode.c:996)\n  Write of size 1 at addr ffff888020aad361 by task kworker/0:0/9\n  Workqueue: ceph-msgr ceph_con_workfn\n  Call Trace:\n   kasan_report (mm/kasan/report.c:595)\n   ceph_fill_inode (fs/ceph/inode.c:996 fs/ceph/inode.c:1277)\n   ceph_fill_trace (fs/ceph/inode.c:1716)\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   ...\n  The buggy address belongs to the object at ffff888020aad360\n   which belongs to the cache kmalloc-8 of size 8\n  The buggy address is located 0 bytes to the right of\n   allocated 1-byte region [ffff888020aad360, ffff888020aad361)","source":"cvelist"}],"published":"2026-11-30T07:52:21.684Z","modified":"2026-11-30T08:18:03.057Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"79f2f6ad878c1f2cb9edc674c6a263ff2ef6d1fd","fixed":"a6b751f04e3383273f3f788136320485636ae48e","status":"affected"},{"type":"git","introduced":"79f2f6ad878c1f2cb9edc674c6a263ff2ef6d1fd","fixed":"b3c32a18d13eca0a7dedb71992e043a2070ced72","status":"affected"},{"type":"git","introduced":"79f2f6ad878c1f2cb9edc674c6a263ff2ef6d1fd","fixed":"9275d246bb6f0796dc7e83f587f3b9bd63f4c31a","status":"affected"},{"type":"git","introduced":"79f2f6ad878c1f2cb9edc674c6a263ff2ef6d1fd","fixed":"a59568451161ece882e7847591edf9dce7fae287","status":"affected"},{"type":"git","introduced":"79f2f6ad878c1f2cb9edc674c6a263ff2ef6d1fd","fixed":"4da259ea8bf4bd6a91a63f33630a26592d2353f8","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.6","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.6","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/a6b751f04e3383273f3f788136320485636ae48e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b3c32a18d13eca0a7dedb71992e043a2070ced72","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9275d246bb6f0796dc7e83f587f3b9bd63f4c31a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a59568451161ece882e7847591edf9dce7fae287","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4da259ea8bf4bd6a91a63f33630a26592d2353f8","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99821","url":"https://www.cve.org/CVERecord?id=CVE-2026-99821","licence":"CVE Terms of Use","modified":"2026-11-30T07:52:21.684Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99821","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99821","licence":"Public domain","modified":"2026-11-30T08:18:03.057Z"}],"updatedAt":"2026-11-30T08:32:36.328Z","epss":{"score":0.00285,"percentile":0.22643,"date":"2026-12-01T12:00:22.000Z"}}