CVE-2026-99821

ceph: fix off-by-one NUL termination in decode_encrypted_symlink()

Published Nov 30, 2026 CVSS n/a EPSS < 1% KEV · Not listed
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)

Analysis

AI-generated

Technical impact

The vulnerability originates from an off-by-one error in the Ceph filesystem's decode_encrypted_symlink() routine where the buffer allocated for a symlink terminator was one byte too small. Writing the NUL terminator outside the allocated region triggers an out-of-bounds memory write that can lead to kernel panics, arbitrary memory corruption, or privilege escalation when a malicious Ceph Metadata Server (MDS) supplies crafted data.

Affected Systems

This flaw is confined to the Linux kernel’s Ceph filesystem code. All kernel releases that include the unpatched decode_encrypted_symlink() implementation are vulnerable—any system mounted with Ceph that interacts with an MDS capable of sending custom symlink metadata can be affected. No specific kernel version list is provided in the data; the patch appears in the stable kernel commits referenced by the CVE description.

Risk and Exploitability

The exploit requires the attacker to be able to influence the Ceph MDS to supply manipulated symlink data. While the centroid of the vulnerability is a memory corruption in kernel space, the lack of a publicly available CVSS score is offset by the severity of kernel out-of-bounds writes. The vulnerability is not known to be in CISA KEV catalog and EPSS data is unavailable, but because it involves a kernel crash pointer, the potential impact is high if the attacker can control the MDS. Mitigating measures are strongly recommended upon discovery of the flaw.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that contains the patch fixing the off-by-one NUL termination in decode_encrypted_symlink() – the relevant commits are listed in the reference URLs.
  • If an immediate upgrade is not possible, isolate the Ceph MDS from untrusted hosts by applying firewall rules or by restricting Ceph client communication to known, trusted nodes.
  • Enable kernel memory sanitization tools (e.g., KASAN or AddressSanitizer) on affected systems to surface the out-of-bounds write during testing and production use.

Generated by OpenCVE AI on November 30, 2026 at 15:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-119
CWE-787
Type Values Removed Values Added
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)
Title ceph: fix off-by-one NUL termination in decode_encrypted_symlink()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-119

    Improper Restriction of Operations within the Bounds of a Memory Buffer

  • CWE-787

    Out-of-bounds Write

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 7:52 AM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Nov 30, 2026, 8:18 AM
Modified
Nov 30, 2026, 8:18 AM