libceph: Fix unsafe decode in ceph_redirect_decode()

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

Description

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().

ProductVersions
Linux Linux205ee1187a671c3b067d7f1e974903b44036f270 to before 98378484378bf617031d237af3ff9afaea19815f Affected205ee1187a671c3b067d7f1e974903b44036f270 to before d8127a2822275c75ad1791536032924f08259282 Affected205ee1187a671c3b067d7f1e974903b44036f270 to before 87623b0571ebd12e19780924031501075f264ca1 Affected205ee1187a671c3b067d7f1e974903b44036f270 to before e2ee7eb32de39433b5603b13abafcdb8774a2d36 Affected205ee1187a671c3b067d7f1e974903b44036f270 to before 0e6985d7662f782dbceef0c24a28cbed902e78e2 Affected205ee1187a671c3b067d7f1e974903b44036f270 to before 7f4f3e6fe58c25ac5b6977b089634bd5c48a66a4 Affected205ee1187a671c3b067d7f1e974903b44036f270 to before 762860805a1414060f232fd74060fc09ec429fbf Affected205ee1187a671c3b067d7f1e974903b44036f270 to before 0405670e50f213594366ab7eddc07002bd7f84c0 Affected
Linux Linux3.14 Affectedbefore 3.14 Not Affected5.10.275 through 5.10.* Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.117 through 6.12.* Not Affected6.18.63 through 6.18.* Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.