Linux
libceph: bound get_version reply decode to front len
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 513a8243d67f8e8d27f2883bd2f18bc87c7ca376, < 1307028f082756bf453e1889aee9983d30643a4b
- >= 513a8243d67f8e8d27f2883bd2f18bc87c7ca376, < f6cbf6878f3a1503c872ba8f1e69a58ee68d8b2e
- >= 513a8243d67f8e8d27f2883bd2f18bc87c7ca376, < 72a35070fcefa229b1b031aa7482ad3788e18f07
- >= 513a8243d67f8e8d27f2883bd2f18bc87c7ca376, < 340e0386aa39da181015bee38f309018c335ce16
- >= 513a8243d67f8e8d27f2883bd2f18bc87c7ca376, < d60de8253c85a02d0e6194b0735e7a562981a04c
- >= 513a8243d67f8e8d27f2883bd2f18bc87c7ca376, < 4e7ebfaa0d14cf50e44041bfde38070d6dbc019f
- >= 513a8243d67f8e8d27f2883bd2f18bc87c7ca376, < 0d934c934ec746d53fc7e4f53239792647bbae63
- >= 513a8243d67f8e8d27f2883bd2f18bc87c7ca376, < d3c32939fa0e3ee9b883b9a0fd1972c5c444e3d0
Fixed in 1307028f082756bf453e1889aee9983d30643a4b, f6cbf6878f3a1503c872ba8f1e69a58ee68d8b2e, 72a35070fcefa229b1b031aa7482ad3788e18f07, 340e0386aa39da181015bee38f309018c335ce16, d60de8253c85a02d0e6194b0735e7a562981a04c, 4e7ebfaa0d14cf50e44041bfde38070d6dbc019f, 0d934c934ec746d53fc7e4f53239792647bbae63, d3c32939fa0e3ee9b883b9a0fd1972c5c444e3d0
- 3.16
Fixed in 0, 5.10.265, 5.15.216, 6.1.183, 6.6.148, 6.12.101, 6.18.42, 7.1.6, 7.2
Mitigation
Upgrade Linux to 1307028f082756bf453e1889aee9983d30643a4b or f6cbf6878f3a1503c872ba8f1e69a58ee68d8b2e or 72a35070fcefa229b1b031aa7482ad3788e18f07 or 340e0386aa39da181015bee38f309018c335ce16 or d60de8253c85a02d0e6194b0735e7a562981a04c or 4e7ebfaa0d14cf50e44041bfde38070d6dbc019f or 0d934c934ec746d53fc7e4f53239792647bbae63 or d3c32939fa0e3ee9b883b9a0fd1972c5c444e3d0 or later.
Upgrade Linux to 0 or 5.10.265 or 5.15.216 or 6.1.183 or 6.6.148 or 6.12.101 or 6.18.42 or 7.1.6 or 7.2 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.