In the Linux kernel, the following vulnerability has been resolved: libceph: replace BUGON with bounds check for map->maxosd OSD indexes come from untrusted network packets. Boundary checks are added to validate these against map->maxosd. [ idryomov: drop BUGON in cephgetprimary_affinity(), minor cosmetic edits ]