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.