libceph: replace BUG_ON with bounds check for map->max_osd
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
libceph: replace BUG_ON with bounds check for map->max_osd
OSD indexes come from untrusted network packets. Boundary checks are added to validate these against map->max_osd.
[ idryomov: drop BUG_ON in ceph_get_primary_affinity(), minor cosmetic edits ]
From the CVE record · Linux
Linux kernel libceph did not check OSD indexes from untrusted network packets against map->max_osd before reaching a BUG_ON. A network attacker could supply an out-of-bounds index and trigger the BUG_ON; the input does not specify authentication or user-interaction requirements.
Engineers running Linux kernels with libceph should check whether their kernel includes the bounds-check fix; affected versions are not specified.