Description
In the Linux kernel, the following vulnerability has been resolved: libceph: bound get_version reply decode to front len handle_get_version_reply() uses msg->front_alloc_len as the decode boundary for MON_GET_VERSION_REPLY. That is the size of the reused reply buffer, not the number of bytes actually received. A truncated reply can therefore pass ceph_decode_need() and decode the second u64 from stale tail bytes left in the buffer by an earlier message, causing an uninitialized memory read. Use msg->front.iov_len as the receive-side decode boundary, matching other libceph reply handlers and limiting decoding to the bytes that were actually read from the wire.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
513a8243d67f8e8d27f2883bd2f18bc87c7ca376 to < 1307028f082756bf453e1889aee9983d30643a4baffected513a8243d67f8e8d27f2883bd2f18bc87c7ca376 to < f6cbf6878f3a1503c872ba8f1e69a58ee68d8b2eaffected513a8243d67f8e8d27f2883bd2f18bc87c7ca376 to < 72a35070fcefa229b1b031aa7482ad3788e18f07affected513a8243d67f8e8d27f2883bd2f18bc87c7ca376 to < 340e0386aa39da181015bee38f309018c335ce16affected513a8243d67f8e8d27f2883bd2f18bc87c7ca376 to < d60de8253c85a02d0e6194b0735e7a562981a04caffected513a8243d67f8e8d27f2883bd2f18bc87c7ca376 to < 4e7ebfaa0d14cf50e44041bfde38070d6dbc019faffected513a8243d67f8e8d27f2883bd2f18bc87c7ca376 to < 0d934c934ec746d53fc7e4f53239792647bbae63affected513a8243d67f8e8d27f2883bd2f18bc87c7ca376 to < d3c32939fa0e3ee9b883b9a0fd1972c5c444e3d0affected
Linux Linux
Default version status: affected
3.16affected0 to < 3.16unaffected5.10.265 to ≤ 5.10.*unaffected5.15.216 to ≤ 5.15.*unaffected6.1.183 to ≤ 6.1.*unaffected6.6.148 to ≤ 6.6.*unaffected6.12.101 to ≤ 6.12.*unaffected6.18.42 to ≤ 6.18.*unaffected7.1.6 to ≤ 7.1.*unaffected7.2 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/1307028f082756bf453e1889aee9983d30643a4b ↗
- https://git.kernel.org/stable/c/f6cbf6878f3a1503c872ba8f1e69a58ee68d8b2e ↗
- https://git.kernel.org/stable/c/72a35070fcefa229b1b031aa7482ad3788e18f07 ↗
- https://git.kernel.org/stable/c/340e0386aa39da181015bee38f309018c335ce16 ↗
- https://git.kernel.org/stable/c/d60de8253c85a02d0e6194b0735e7a562981a04c ↗
- https://git.kernel.org/stable/c/4e7ebfaa0d14cf50e44041bfde38070d6dbc019f ↗
- https://git.kernel.org/stable/c/0d934c934ec746d53fc7e4f53239792647bbae63 ↗
- https://git.kernel.org/stable/c/d3c32939fa0e3ee9b883b9a0fd1972c5c444e3d0 ↗