In the Linux kernel, the following vulnerability has been resolved: libceph: Fix unsafe decode in ceph_redirect_decode() ceph_redirect_decode handles unchecked data received over the network from an OSD. Currently, there is only a bounds check covering the first three decode operations. After decoding the first len field from the message, the only remaining check ensures there is enough buffer space to hold len bytes. However, there is no guarantee that this value is large enough to hold the subsequently decoded fields. The decoding of the second len field is missing an explicit bounds check. Consequently, a corrupted message can trigger an out-of-bounds read. This patch fixes the issue by switching the decoding from ceph_decode_32() to the bounds-checked version ceph_decode_32_safe().
https://git.kernel.org/stable/c/e2ee7eb32de39433b5603b13abafcdb8774a2d36
https://git.kernel.org/stable/c/d8127a2822275c75ad1791536032924f08259282
https://git.kernel.org/stable/c/98378484378bf617031d237af3ff9afaea19815f
https://git.kernel.org/stable/c/87623b0571ebd12e19780924031501075f264ca1
https://git.kernel.org/stable/c/7f4f3e6fe58c25ac5b6977b089634bd5c48a66a4
https://git.kernel.org/stable/c/762860805a1414060f232fd74060fc09ec429fbf
https://git.kernel.org/stable/c/0e6985d7662f782dbceef0c24a28cbed902e78e2
https://git.kernel.org/stable/c/0405670e50f213594366ab7eddc07002bd7f84c0