CVE-2026-99902
published high CVSS 3.1 · 8.2libceph: Fix unsafe decode in ceph_redirect_decode()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux205ee1187a671c3b067d7f1e974903b44036f270 to < 98378484378bf617031d237af3ff9afaea19815f · 205ee1187a671c3b067d7f1e974903b44036f270 to < d8127a2822275c75ad1791536032924f08259282 · 205ee1187a671c3b067d7f1e974903b44036f270 to < 87623b0571ebd12e19780924031501075f264ca1 · 205ee1187a671c3b067d7f1e974903b44036f270 to < e2ee7eb32de39433b5603b13abafcdb8774a2d36 · 205ee1187a671c3b067d7f1e974903b44036f270 to < 0e6985d7662f782dbceef0c24a28cbed902e78e2 · 205ee1187a671c3b067d7f1e974903b44036f270 to < 7f4f3e6fe58c25ac5b6977b089634bd5c48a66a4 · 205ee1187a671c3b067d7f1e974903b44036f270 to < 762860805a1414060f232fd74060fc09ec429fbf · 205ee1187a671c3b067d7f1e974903b44036f270 to < 0405670e50f213594366ab7eddc07002bd7f84c0 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux3.14 (affected) · 0 to < 3.14 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.63 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
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().
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.2 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
- Scenarios
- en: AV:N - The malformed bytes arrive in a CEPH_MSG_OSD_OPREPLY (MOSDOpReply with hdr.version >= 6) that the OSD sends over the TCP messenger. The path is osd_dispatch() -> handle_reply() -> decode_MOSDOpReply() -> ceph_redirect_decode(), and the peer controls both hdr.front_len and the redirect encoding at the end of the front. AC:L - The OSD sets front_len to a 2 MiB multiple above 4 MiB, so get_reply() reallocates via ceph_msg_new() and kvmalloc falls back to vmalloc. The buffer then ends on the guard page. Oid padding puts a 16-byte v4 oloc exactly at the end, so the bare ceph_decode_32() of object_name len reads past the end every time. No race and no outside state is involved. PR:N - The reply only has to carry the tid of a request the client already sent to that OSD, and handle_reply() decodes it with no client-side credential check. A malicious or compromised OSD signs with its own session key, which passes osd_check_message_signature(), and needs no account on the client host. UI:N - A mounted CephFS or mapped RBD client sends OSD ops on its own for ordinary I/O and writeback, and the OSD can answer any of them with the crafted reply. Nothing is needed from a victim beyond the existing session. S:U - Both the out-of-bounds read and the resulting fault stay inside the client kernel's libceph osd_client state. No VM, IOMMU or sandbox boundary is crossed. C:L - When the front comes from kmalloc, the u32 past the end only decides whether object_name len is non-zero. The attacker sees that bit: zero means the client follows the redirect, and redirecting to the same pool sends the request back to the same OSD, while non-zero means -EIO. That is a bounded 1-bit oracle, and no bytes are copied out. I:N - ceph_redirect_decode() only compares the out-of-bounds u32 against zero and writes nothing. The redirect it can trigger is one the OSD could already request with a well-formed reply. A:H - With the vmalloc-backed front, the read hits the unmapped guard page and oopses in the ceph-msgr kworker while osdc->lock and osd->lock are held. Ceph I/O on the client then hangs in D state, or the host panics under panic_on_oops, and it recurs whenever the client talks to that OSD again.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 205ee1187a671c3b067d7f1e974903b44036f270 to < 98378484378bf617031d237af3ff9afaea19815f (affected · git)205ee1187a671c3b067d7f1e974903b44036f270 to < d8127a2822275c75ad1791536032924f08259282 (affected · git)205ee1187a671c3b067d7f1e974903b44036f270 to < 87623b0571ebd12e19780924031501075f264ca1 (affected · git)205ee1187a671c3b067d7f1e974903b44036f270 to < e2ee7eb32de39433b5603b13abafcdb8774a2d36 (affected · git)205ee1187a671c3b067d7f1e974903b44036f270 to < 0e6985d7662f782dbceef0c24a28cbed902e78e2 (affected · git)205ee1187a671c3b067d7f1e974903b44036f270 to < 7f4f3e6fe58c25ac5b6977b089634bd5c48a66a4 (affected · git)205ee1187a671c3b067d7f1e974903b44036f270 to < 762860805a1414060f232fd74060fc09ec429fbf (affected · git)205ee1187a671c3b067d7f1e974903b44036f270 to < 0405670e50f213594366ab7eddc07002bd7f84c0 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 3.14 (affected)0 to < 3.14 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/0405670e50f213594366ab7eddc07002bd7f84c0
- https://git.kernel.org/stable/c/0e6985d7662f782dbceef0c24a28cbed902e78e2
- https://git.kernel.org/stable/c/762860805a1414060f232fd74060fc09ec429fbf
- https://git.kernel.org/stable/c/7f4f3e6fe58c25ac5b6977b089634bd5c48a66a4
- https://git.kernel.org/stable/c/87623b0571ebd12e19780924031501075f264ca1
- https://git.kernel.org/stable/c/98378484378bf617031d237af3ff9afaea19815f
- https://git.kernel.org/stable/c/d8127a2822275c75ad1791536032924f08259282
- https://git.kernel.org/stable/c/e2ee7eb32de39433b5603b13abafcdb8774a2d36
Provider assertions
1Linux · cna
libceph: Fix unsafe decode in ceph_redirect_decode()
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 94ca1dbde56c1252790859dd3669832073c0b3fe4baf0ecb3197228dd1b8b523
- Ingested
- 01 Dec 2026, 05:47:23 UTC
- Source record
- Official CVE record