{"id":"CVE-2026-68157","state":"PUBLISHED","title":"libceph: guard missing CRUSH type name lookup","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nlibceph: guard missing CRUSH type name lookup\n\nLocalized read selection can walk a parent bucket whose name exists in\nthe CRUSH map while its type has no matching entry in type_names.\nget_immediate_parent() then dereferences a NULL type_cn and passes an\ninvalid pointer into strcmp(), causing a null-ptr-deref.\n\nSkip such malformed parent buckets unless both the bucket name and type\nname metadata are present. This keeps malformed hierarchy data from\ncrashing locality lookup and safely falls back to \"not local\".\n\n[ idryomov: add WARN_ON_ONCE ]","publishedAt":"2026-08-10T11:59:23.692Z","updatedAt":"2026-10-19T20:58:54.933Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"117d96a04f007ce8fc2e292369056c3bd09f6f63","status":"affected","lessThan":"cbfcba275326c8c7dae9acd8f4a0d4c316fdafb0","versionType":"git"},{"version":"117d96a04f007ce8fc2e292369056c3bd09f6f63","status":"affected","lessThan":"8ff579ac03d6e9d17d6d9c8443110167c14a382d","versionType":"git"},{"version":"117d96a04f007ce8fc2e292369056c3bd09f6f63","status":"affected","lessThan":"6a4b75d90f0cfbf22c14742ab35a803bc13f36ec","versionType":"git"},{"version":"117d96a04f007ce8fc2e292369056c3bd09f6f63","status":"affected","lessThan":"c46d82c47afc968d6ee8ef4470fa2dd35b765c21","versionType":"git"},{"version":"117d96a04f007ce8fc2e292369056c3bd09f6f63","status":"affected","lessThan":"3767c9f0c1bbd98dd25cb088356a0fc6c1f09f50","versionType":"git"},{"version":"117d96a04f007ce8fc2e292369056c3bd09f6f63","status":"affected","lessThan":"4716a64b7cc2797741f7be4e283ace78a9dff37d","versionType":"git"},{"version":"117d96a04f007ce8fc2e292369056c3bd09f6f63","status":"affected","lessThan":"db9cc9fd9660b2d69ee66f5a4cbec83c21a1c64d","versionType":"git"},{"version":"117d96a04f007ce8fc2e292369056c3bd09f6f63","status":"affected","lessThan":"bbeae12fda3384a90fbebc8a19ba9d33f85b5361","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/ceph/osdmap.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.8","versionType":"semver"},{"version":"5.10.265","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.216","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.183","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.148","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.101","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.42","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.6","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/ceph/osdmap.c"]}],"references":["https://git.kernel.org/stable/c/cbfcba275326c8c7dae9acd8f4a0d4c316fdafb0","https://git.kernel.org/stable/c/8ff579ac03d6e9d17d6d9c8443110167c14a382d","https://git.kernel.org/stable/c/6a4b75d90f0cfbf22c14742ab35a803bc13f36ec","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"],"weaknesses":["CWE-476"],"ingestedAt":"2026-10-29T20:12:49.727Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/68xxx/CVE-2026-68157.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-68157","state":"PUBLISHED","datePublished":"2026-08-10T11:59:23.692Z","dateUpdated":"2026-10-19T20:58:54.933Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-07-30T09:28:09.371Z"},"containers":{"cna":{"title":"libceph: guard missing CRUSH type name lookup","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nlibceph: guard missing CRUSH type name lookup\n\nLocalized read selection can walk a parent bucket whose name exists in\nthe CRUSH map while its type has no matching entry in type_names.\nget_immediate_parent() then dereferences a NULL type_cn and passes an\ninvalid pointer into strcmp(), causing a null-ptr-deref.\n\nSkip such malformed parent buckets unless both the bucket name and type\nname metadata are present. This keeps malformed hierarchy data from\ncrashing locality lookup and safely falls back to \"not local\".\n\n[ idryomov: add WARN_ON_ONCE ]"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"117d96a04f007ce8fc2e292369056c3bd09f6f63","status":"affected","lessThan":"cbfcba275326c8c7dae9acd8f4a0d4c316fdafb0","versionType":"git"},{"version":"117d96a04f007ce8fc2e292369056c3bd09f6f63","status":"affected","lessThan":"8ff579ac03d6e9d17d6d9c8443110167c14a382d","versionType":"git"},{"version":"117d96a04f007ce8fc2e292369056c3bd09f6f63","status":"affected","lessThan":"6a4b75d90f0cfbf22c14742ab35a803bc13f36ec","versionType":"git"},{"version":"117d96a04f007ce8fc2e292369056c3bd09f6f63","status":"affected","lessThan":"c46d82c47afc968d6ee8ef4470fa2dd35b765c21","versionType":"git"},{"version":"117d96a04f007ce8fc2e292369056c3bd09f6f63","status":"affected","lessThan":"3767c9f0c1bbd98dd25cb088356a0fc6c1f09f50","versionType":"git"},{"version":"117d96a04f007ce8fc2e292369056c3bd09f6f63","status":"affected","lessThan":"4716a64b7cc2797741f7be4e283ace78a9dff37d","versionType":"git"},{"version":"117d96a04f007ce8fc2e292369056c3bd09f6f63","status":"affected","lessThan":"db9cc9fd9660b2d69ee66f5a4cbec83c21a1c64d","versionType":"git"},{"version":"117d96a04f007ce8fc2e292369056c3bd09f6f63","status":"affected","lessThan":"bbeae12fda3384a90fbebc8a19ba9d33f85b5361","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/ceph/osdmap.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.8","versionType":"semver"},{"version":"5.10.265","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.216","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.183","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.148","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.101","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.42","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.6","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/ceph/osdmap.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/cbfcba275326c8c7dae9acd8f4a0d4c316fdafb0"},{"url":"https://git.kernel.org/stable/c/8ff579ac03d6e9d17d6d9c8443110167c14a382d"},{"url":"https://git.kernel.org/stable/c/6a4b75d90f0cfbf22c14742ab35a803bc13f36ec"},{"url":"https://git.kernel.org/stable/c/c46d82c47afc968d6ee8ef4470fa2dd35b765c21"},{"url":"https://git.kernel.org/stable/c/3767c9f0c1bbd98dd25cb088356a0fc6c1f09f50"},{"url":"https://git.kernel.org/stable/c/4716a64b7cc2797741f7be4e283ace78a9dff37d"},{"url":"https://git.kernel.org/stable/c/db9cc9fd9660b2d69ee66f5a4cbec83c21a1c64d"},{"url":"https://git.kernel.org/stable/c/bbeae12fda3384a90fbebc8a19ba9d33f85b5361"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","baseScore":7.5,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:N - Malformed CRUSH hierarchy data is delivered to the kernel Ceph client in CEPH_MSG_OSD_MAP over TCP from a monitor or OSD peer, stored in libceph, and later triggers get_immediate_parent() during localized-read target selection on RBD/CephFS client I/O.\nAC:L - A compromised or attacker-controlled Ceph monitor can publish an osdmap whose CRUSH buckets have names but missing type_names entries; once applied, the NULL dereference is reliably hit on subsequent localize-read calc_target() paths without further attacker-controlled timing.\nPR:N - Exploitation requires no privileges on the victim host; any machine acting as a kernel Ceph client that receives a forged osdmap from a cluster peer over the network can be attacked without local capabilities or user-namespace tricks.\nUI:N - No victim user action is needed at exploitation time beyond the host already being a Ceph client with localized reads enabled; forged osdmaps are applied automatically and the crash fires on subsequent kernel client read or map-rescan operations.\nS:U - Impact is confined to kernel memory on the Ceph client host (crash or potential escalation within that host); it does not cross VM, IOMMU, or sandbox boundaries to other security authorities.\nC:N - The failure is a NULL pointer dereference when accessing type_cn->cn_name; there is no out-of-bounds read, use-after-free, or other memory corruption that could disclose kernel data.\nI:N - The bug causes a NULL pointer dereference crash only; no attacker-controlled write, heap corruption, or control-flow hijack primitive is created by this defect.\nA:H - The NULL pointer dereference in get_immediate_parent() during CRUSH locality lookup causes a kernel oops or panic, denying all service on the affected Ceph client host."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-19T16:30:27.540Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"5.10.265"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"5.15.216"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"6.1.183"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"6.6.148"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"6.12.101"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"6.18.42"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"7.1.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"7.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2026-68157","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2026-10-16T15:45:12.675517Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-476","lang":"en","type":"CWE","description":"CWE-476 NULL Pointer Dereference"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-19T20:58:54.933Z"}}]}}}