libceph: guard missing CRUSH type name lookup
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 117d96a04f007ce8fc2e292369056c3bd09f6f63 · < 4716a64b7cc2797741f7be4e283ace78a9dff37d| No fix yet |
| Linux Linux |
|
|
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 ]
From the CVE record · Linux
A missing CRUSH type name can cause a null-pointer dereference during libceph localized read selection. Malformed hierarchy data can crash the locality lookup. The input does not specify how an attacker could supply that data or whether authentication or user interaction is required.
Engineers running Linux kernels that use libceph should check their versions; affected versions are not specified.