not scored yet
CVE-2026-99821
ceph: fix off-by-one NUL termination in decode_encrypted_symlink()
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)
Details
- Severity
- not scored yet
- KEV
- no
- Fix
- available: 6.6.163, 6.12.119, 6.18.65, 7.3.6
- Published
- First seen
- Updated
Affected products
| Product | Versions | Fixed in |
|---|---|---|
| linux / linux | >=79f2f6ad878c1f2cb9edc674c6a263ff2ef6d1fd <a6b751f04e3383273f3f788136320485636ae48e, >=79f2f6ad878c1f2cb9edc674c6a263ff2ef6d1fd <b3c32a18d13eca0a7dedb71992e043a2070ced72, >=79f2f6ad878c1f2cb9edc674c6a263ff2ef6d1fd <9275d246bb6f0796dc7e83f587f3b9bd63f4c31a, >=79f2f6ad878c1f2cb9edc674c6a263ff2ef6d1fd... | |
| linux / linux | =6.6 | |
| linux / linux-kernel | ||
| kernel linux | >=6.6.0 <6.6.163 || >=6.7.0 <6.12.119 || >=6.13.0 <6.18.65 || >=6.19.0 <7.3.6 | 6.6.163, 6.12.119, 6.18.65, 7.3.6 |
Sources
- cve.org · license: CVE Terms of Use · first seen · https://www.cve.org/CVERecord?id=CVE-2026-99821
- nvd · license: Public domain (NIST NVD) · first seen · https://nvd.nist.gov/vuln/detail/CVE-2026-99821
- osv · license: CC-BY-4.0 · first seen · https://osv.dev/vulnerability/CVE-2026-99821
Timeline
- FIX (1 hour ago)fix: unknown → available
- UPDATED (1 hour ago)affected_added: [map[ecosystem:linux product:kernel vendor:]]
- NEW (2 hours ago)