CVE-2026-68157: libceph: guard missing CRUSH type name lookup
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
libceph: guard missing CRUSH type name lookup
Localized read selection can walk a parent bucket whose name exists in the CRUSH map while its type has no matching entry in type_names. get_immediate_parent() then dereferences a NULL type_cn and passes an invalid pointer into strcmp(), causing a null-ptr-deref.
Skip such malformed parent buckets unless both the bucket name and type name metadata are present. This keeps malformed hierarchy data from crashing locality lookup and safely falls back to "not local".
[ idryomov: add WARN_ON_ONCE ]
The Linux kernel CVE team has assigned CVE-2026-68157 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.8 with commit 117d96a04f007ce8fc2e292369056c3bd09f6f63 and fixed in 6.6.148 with commit c46d82c47afc968d6ee8ef4470fa2dd35b765c21 Issue introduced in 5.8 with commit 117d96a04f007ce8fc2e292369056c3bd09f6f63 and fixed in 6.12.101 with commit 3767c9f0c1bbd98dd25cb088356a0fc6c1f09f50 Issue introduced in 5.8 with commit 117d96a04f007ce8fc2e292369056c3bd09f6f63 and fixed in 6.18.42 with commit 4716a64b7cc2797741f7be4e283ace78a9dff37d Issue introduced in 5.8 with commit 117d96a04f007ce8fc2e292369056c3bd09f6f63 and fixed in 7.1.6 with commit db9cc9fd9660b2d69ee66f5a4cbec83c21a1c64d Issue introduced in 5.8 with commit 117d96a04f007ce8fc2e292369056c3bd09f6f63 and fixed in 7.2-rc5 with commit bbeae12fda3384a90fbebc8a19ba9d33f85b5361
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-68157
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
net/ceph/osdmap.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/c46d82c47afc968d6ee8ef4470fa2dd35b765c21 https://git.kernel.org/stable/c/3767c9f0c1bbd98dd25cb088356a0fc6c1f09f50 https://git.kernel.org/stable/c/4716a64b7cc2797741f7be4e283ace78a9dff37d https://git.kernel.org/stable/c/db9cc9fd9660b2d69ee66f5a4cbec83c21a1c64d https://git.kernel.org/stable/c/bbeae12fda3384a90fbebc8a19ba9d33f85b5361