ceph: reject export_targets ranks >= CEPH_MAX_MDS in mdsmap decode
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ d517b3983dd3106ca92d6c5d0d09415a4a09481c · < 96c3f5fbb0d5386e7111426f047f98cec4586674| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ceph: reject export_targets ranks >= CEPH_MAX_MDS in mdsmap decode
MDSMap export_targets entries are monitor controlled. check_new_map() uses each entry as a bit number in a fixed stack bitmap, so a rank outside the protocol namespace can make set_bit() write past the end of the array.
Reject ranks outside CEPH_MAX_MDS while decoding the map. Do not validate against possible_max_rank here because maps may legitimately reference ranks beyond a temporarily reduced max_mds.
From the CVE record · Linux
The Linux kernel’s Ceph MDSMap decoder does not reject export_targets ranks outside the protocol namespace. A monitor-controlled map containing such a rank can cause an out-of-bounds write to a stack bitmap when check_new_map() processes it; the input does not establish attacker access or user-interaction requirements.
Engineers running Linux kernels with Ceph support should check their versions; affected versions are not specified in the input.