{"api_version":"1","generated_at":"2026-11-30T16:28:00+00:00","cve":"CVE-2026-99821","urls":{"html":"https://cve.report/CVE-2026-99821","api":"https://cve.report/api/cve/CVE-2026-99821.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99821","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99821"},"summary":{"title":"ceph: fix off-by-one NUL termination in decode_encrypted_symlink()","description":"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)","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 08:18:03","updated_at":"2026-11-30 08:18:03"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/9275d246bb6f0796dc7e83f587f3b9bd63f4c31a","name":"https://git.kernel.org/stable/c/9275d246bb6f0796dc7e83f587f3b9bd63f4c31a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/a6b751f04e3383273f3f788136320485636ae48e","name":"https://git.kernel.org/stable/c/a6b751f04e3383273f3f788136320485636ae48e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/b3c32a18d13eca0a7dedb71992e043a2070ced72","name":"https://git.kernel.org/stable/c/b3c32a18d13eca0a7dedb71992e043a2070ced72","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/4da259ea8bf4bd6a91a63f33630a26592d2353f8","name":"https://git.kernel.org/stable/c/4da259ea8bf4bd6a91a63f33630a26592d2353f8","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/a59568451161ece882e7847591edf9dce7fae287","name":"https://git.kernel.org/stable/c/a59568451161ece882e7847591edf9dce7fae287","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99821","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99821","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 79f2f6ad878c1f2cb9edc674c6a263ff2ef6d1fd a6b751f04e3383273f3f788136320485636ae48e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 79f2f6ad878c1f2cb9edc674c6a263ff2ef6d1fd b3c32a18d13eca0a7dedb71992e043a2070ced72 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 79f2f6ad878c1f2cb9edc674c6a263ff2ef6d1fd 9275d246bb6f0796dc7e83f587f3b9bd63f4c31a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 79f2f6ad878c1f2cb9edc674c6a263ff2ef6d1fd a59568451161ece882e7847591edf9dce7fae287 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 79f2f6ad878c1f2cb9edc674c6a263ff2ef6d1fd 4da259ea8bf4bd6a91a63f33630a26592d2353f8 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.6","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.119 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["fs/ceph/inode.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"a6b751f04e3383273f3f788136320485636ae48e","status":"affected","version":"79f2f6ad878c1f2cb9edc674c6a263ff2ef6d1fd","versionType":"git"},{"lessThan":"b3c32a18d13eca0a7dedb71992e043a2070ced72","status":"affected","version":"79f2f6ad878c1f2cb9edc674c6a263ff2ef6d1fd","versionType":"git"},{"lessThan":"9275d246bb6f0796dc7e83f587f3b9bd63f4c31a","status":"affected","version":"79f2f6ad878c1f2cb9edc674c6a263ff2ef6d1fd","versionType":"git"},{"lessThan":"a59568451161ece882e7847591edf9dce7fae287","status":"affected","version":"79f2f6ad878c1f2cb9edc674c6a263ff2ef6d1fd","versionType":"git"},{"lessThan":"4da259ea8bf4bd6a91a63f33630a26592d2353f8","status":"affected","version":"79f2f6ad878c1f2cb9edc674c6a263ff2ef6d1fd","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/ceph/inode.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.6"},{"lessThan":"6.6","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.119","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"6.6","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"6.6","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"6.6","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"6.6","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"6.6","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"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)"}],"providerMetadata":{"dateUpdated":"2026-11-30T07:52:21.684Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/a6b751f04e3383273f3f788136320485636ae48e"},{"url":"https://git.kernel.org/stable/c/b3c32a18d13eca0a7dedb71992e043a2070ced72"},{"url":"https://git.kernel.org/stable/c/9275d246bb6f0796dc7e83f587f3b9bd63f4c31a"},{"url":"https://git.kernel.org/stable/c/a59568451161ece882e7847591edf9dce7fae287"},{"url":"https://git.kernel.org/stable/c/4da259ea8bf4bd6a91a63f33630a26592d2353f8"}],"title":"ceph: fix off-by-one NUL termination in decode_encrypted_symlink()","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-99821","datePublished":"2026-11-30T07:52:21.684Z","dateReserved":"2026-09-25T10:25:14.436Z","dateUpdated":"2026-11-30T07:52:21.684Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 08:18:03","lastModifiedDate":"2026-11-30 08:18:03","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99821","Ordinal":"1","Title":"ceph: fix off-by-one NUL termination in decode_encrypted_symlink","CVE":"CVE-2026-99821","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99821","Ordinal":"1","NoteData":"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)","Type":"Description","Title":"ceph: fix off-by-one NUL termination in decode_encrypted_symlink"}]}}}