Linux
ceph: reject export_targets ranks >= CEPH_MAX_MDS in mdsmap decode
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= d517b3983dd3106ca92d6c5d0d09415a4a09481c, < 3740c88ca9cb2210a8dbdd55ea4cec119fbe86fe
- >= d517b3983dd3106ca92d6c5d0d09415a4a09481c, < 8c823bbab3c24e657469a84db96902ba82d4e8bb
- >= d517b3983dd3106ca92d6c5d0d09415a4a09481c, < c4addccd05bacbef2144b4db14853d0308a218ac
- >= d517b3983dd3106ca92d6c5d0d09415a4a09481c, < 736adee11af36e407ed902264f8b2fb5cf94b62f
- >= d517b3983dd3106ca92d6c5d0d09415a4a09481c, < 4d298880f82c42383b36946bafde7ccf4d804c9b
- >= d517b3983dd3106ca92d6c5d0d09415a4a09481c, < 96c3f5fbb0d5386e7111426f047f98cec4586674
- >= d517b3983dd3106ca92d6c5d0d09415a4a09481c, < aedc9053d909508a5f56c3f49f885fc030df4730
Fixed in 3740c88ca9cb2210a8dbdd55ea4cec119fbe86fe, 8c823bbab3c24e657469a84db96902ba82d4e8bb, c4addccd05bacbef2144b4db14853d0308a218ac, 736adee11af36e407ed902264f8b2fb5cf94b62f, 4d298880f82c42383b36946bafde7ccf4d804c9b, 96c3f5fbb0d5386e7111426f047f98cec4586674, aedc9053d909508a5f56c3f49f885fc030df4730
- 5.15
Fixed in 0, 5.15.221, 6.1.188, 6.6.157, 6.12.109, 6.18.50, 7.2.4, 7.3
Mitigation
Upgrade Linux to 3740c88ca9cb2210a8dbdd55ea4cec119fbe86fe or 8c823bbab3c24e657469a84db96902ba82d4e8bb or c4addccd05bacbef2144b4db14853d0308a218ac or 736adee11af36e407ed902264f8b2fb5cf94b62f or 4d298880f82c42383b36946bafde7ccf4d804c9b or 96c3f5fbb0d5386e7111426f047f98cec4586674 or aedc9053d909508a5f56c3f49f885fc030df4730 or later.
Upgrade Linux to 0 or 5.15.221 or 6.1.188 or 6.6.157 or 6.12.109 or 6.18.50 or 7.2.4 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.