In the Linux kernel, the following vulnerability has been resolved: libceph: reject mismatched CRUSH weight-set sizes A CEPH_MSG_OSD_MAP message can contain CRUSH choose args with replacement weight vectors for straw2 buckets. decode_choose_args() validates the optional IDs vector against the referenced bucket, but does not validate the size of any replacement-weight vector. The CRUSH mapper assumes that each replacement vector has exactly as many entries as the bucket. A zero-length vector for a nonempty bucket makes bucket_straw2_choose() dereference NULL, while a shorter nonzero vector causes an out-of-bounds read. An authenticated monitor or OSD can deliver such a map and crash a kernel client when it performs placement for an ordinary request. Reject a nonempty collection of weight sets for an absent bucket and require every replacement-weight vector to match its bucket size.
https://git.kernel.org/stable/c/d8fc89b5bfe4cb3aebe4c8a818247d11291b841c
https://git.kernel.org/stable/c/d14b7eb4a3b07289ca614050921c5c27521cb5cd
https://git.kernel.org/stable/c/cab954c676687e2913b7042bc0cf294ce2e81336
https://git.kernel.org/stable/c/b171d39221e8bd34dc5cd2ff75ed4e7a5048eb28
https://git.kernel.org/stable/c/a905ddc897be89d8d77831123e8f47a9b1b13a0c
https://git.kernel.org/stable/c/88ceddba900a928193fccfc86e9fda48d24161ec
https://git.kernel.org/stable/c/23e0bbd385b17c30ad5aa03f6b7663c6341f019d
https://git.kernel.org/stable/c/0245389e84fba8153b0e72a0614b68c4947cfa76