libceph: bound get_version reply decode to front len
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.10.265, 5.15.216, 6.1.183, 6.6.148, 6.12.101, and 2 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: yes
- Technical impact: partial
Summary
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.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: yes · Technical impact: partial
- Record last updated
Affected versions
- Linux Linux
From 513a8243d67f8e8d27f2883bd2f18bc87c7ca376 · fixed in 1307028f082756bf453e1889aee9983d30643a4b; From 513a8243d67f8e8d27f2883bd2f18bc87c7ca376 · fixed in f6cbf6878f3a1503c872ba8f1e69a58ee68d8b2e; From 513a8243d67f8e8d27f2883bd2f18bc87c7ca376 · fixed in 72a35070fcefa229b1b031aa7482ad3788e18f07; From 513a8243d67f8e8d27f2883bd2f18bc87c7ca376 · fixed in 340e0386aa39da181015bee38f309018c335ce16; From 513a8243d67f8e8d27f2883bd2f18bc87c7ca376 · fixed in d60de8253c85a02d0e6194b0735e7a562981a04c; From 513a8243d67f8e8d27f2883bd2f18bc87c7ca376 · fixed in 4e7ebfaa0d14cf50e44041bfde38070d6dbc019f; From 513a8243d67f8e8d27f2883bd2f18bc87c7ca376 · fixed in 0d934c934ec746d53fc7e4f53239792647bbae63; From 513a8243d67f8e8d27f2883bd2f18bc87c7ca376 · fixed in d3c32939fa0e3ee9b883b9a0fd1972c5c444e3d0
- Linux Linux
3.16
- KernelLinux
From 3.16.0 · fixed in 5.10.265; From 5.11.0 · fixed in 5.15.216; From 5.16.0 · fixed in 6.1.183; From 6.2.0 · fixed in 6.6.148; From 6.7.0 · fixed in 6.12.101; From 6.13.0 · fixed in 6.18.42; From 6.19.0 · fixed in 7.1.6
References 8
git.kernel.org
- stable/c/1307028f082756bf453e1889aee9983d30643a4b
- stable/c/f6cbf6878f3a1503c872ba8f1e69a58ee68d8b2e
- stable/c/72a35070fcefa229b1b031aa7482ad3788e18f07
- stable/c/340e0386aa39da181015bee38f309018c335ce16
- stable/c/d60de8253c85a02d0e6194b0735e7a562981a04c
- stable/c/4e7ebfaa0d14cf50e44041bfde38070d6dbc019f
- stable/c/0d934c934ec746d53fc7e4f53239792647bbae63
- stable/c/d3c32939fa0e3ee9b883b9a0fd1972c5c444e3d0