CVE-2026-99821
ceph: fix off-by-one NUL termination in decode_encrypted_symlink()
Check your servers for CVE-2026-99821
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-99821 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
ceph: fix off-by-one NUL termination in decode_encrypted_symlink()
decode_encrypted_symlink() allocates enclen + 1 bytes but writes the NUL terminator at sym[declen + 1] instead of sym[declen]. A malicious MDS can report symlink_len == 0 for an encrypted inode, and base64_decode() returns 0 for a zero-length input, so the store lands one byte past a kmalloc(1) allocation.
Terminate at sym[declen], which is always within the allocation.
BUG: KASAN: slab-out-of-bounds in ceph_fill_inode (fs/ceph/inode.c:996) Write of size 1 at addr ffff888020aad361 by task kworker/0:0/9 Workqueue: ceph-msgr ceph_con_workfn Call Trace: kasan_report (mm/kasan/report.c:595) ceph_fill_inode (fs/ceph/inode.c:996 fs/ceph/inode.c:1277) ceph_fill_trace (fs/ceph/inode.c:1716) ceph_con_process_message (net/ceph/messenger.c:1424) ceph_con_v1_try_read (net/ceph/messenger_v1.c:1430) ceph_con_workfn (net/ceph/messenger.c:1576) ... The buggy address belongs to the object at ffff888020aad360 which belongs to the cache kmalloc-8 of size 8 The buggy address is located 0 bytes to the right of allocated 1-byte region [ffff888020aad360, ffff888020aad361)
Exploitation
EPSS 0.29%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 22.6% of all scored CVEs. Scores of 2 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 79f2f6ad878c1f2cb9edc674c6a263ff2ef6d1fd, before a6b751f04e3383273f3f788136320485636ae48e affected from 79f2f6ad878c1f2cb9edc674c6a263ff2ef6d1fd, before b3c32a18d13eca0a7dedb71992e043a2070ced72 affected from 79f2f6ad878c1f2cb9edc674c6a263ff2ef6d1fd, before 9275d246bb6f0796dc7e83f587f3b9bd63f4c31a affected from 79f2f6ad878c1f2cb9edc674c6a263ff2ef6d1fd, before a59568451161ece882e7847591edf9dce7fae287 affected from 79f2f6ad878c1f2cb9edc674c6a263ff2ef6d1fd, before 4da259ea8bf4bd6a91a63f33630a26592d2353f8
Other versions: unaffected
|
| Linux |
affected 6.6 unaffected before 6.6 unaffected from 6.6.163 up to and including 6.6.* unaffected from 6.12.119 up to and including 6.12.* unaffected from 6.18.65 up to and including 6.18.* unaffected from 7.3.6 up to and including 7.3.* unaffected 7.4-rc1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-99821 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-99821
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-99821
trivy image --scanners vuln IMAGE | grep CVE-2026-99821
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/a6b751f04e3383273f3f788136320485636ae48e git.kernel.org
- https://git.kernel.org/stable/c/b3c32a18d13eca0a7dedb71992e043a2070ced72 git.kernel.org
- https://git.kernel.org/stable/c/9275d246bb6f0796dc7e83f587f3b9bd63f4c31a git.kernel.org
- https://git.kernel.org/stable/c/a59568451161ece882e7847591edf9dce7fae287 git.kernel.org
- https://git.kernel.org/stable/c/4da259ea8bf4bd6a91a63f33630a26592d2353f8 git.kernel.org
Source: the record CVE-2026-99821 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse