AZL-116681: CVE-2026-99821 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
ceph: fix off-by-one NUL termination in decodeencryptedsymlink()
decodeencryptedsymlink() allocates enclen + 1 bytes but writes the NUL terminator at sym[declen + 1] instead of sym[declen]. A malicious MDS can report symlinklen == 0 for an encrypted inode, and base64decode() 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 cephfillinode (fs/ceph/inode.c:996) Write of size 1 at addr ffff888020aad361 by task kworker/0:0/9 Workqueue: ceph-msgr cephconworkfn Call Trace: kasanreport (mm/kasan/report.c:595) cephfillinode (fs/ceph/inode.c:996 fs/ceph/inode.c:1277) cephfilltrace (fs/ceph/inode.c:1716) cephconprocessmessage (net/ceph/messenger.c:1424) cephconv1tryread (net/ceph/messengerv1.c:1430) cephconworkfn (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)
Affected Software
Event History
Frequently Asked Questions
Which systems are exposed to this flaw?
Systems using the affected Azure Linux kernel package and the Ceph client code path for encrypted symlinks are exposed. Exploitation requires interaction with a malicious Ceph Metadata Server (MDS).
What must an attacker control to trigger the out-of-bounds write?
The attacker needs to operate or compromise a Ceph MDS capable of reporting an encrypted inode with symlink_len set to zero. This causes the zero-length decode path to write a NUL byte one byte beyond the allocated buffer.
What is the observable effect of a successful trigger?
The documented failure is a one-byte slab out-of-bounds write in the kernel's Ceph inode handling, observable with KASAN as a slab-out-of-bounds report during ceph_fill_inode processing. The provided data does not establish further impact beyond that memory-safety violation.