CVE-2026-99896
published high CVSS 3.1 · 8.8ceph: fix 32-bit overflow in readdir reply count check
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux54008399dc0ce511a07b87f1af3d1f5c791982a4 to < f344a1d12dc3b37603e25091c77fe06b0ba92c84 · 54008399dc0ce511a07b87f1af3d1f5c791982a4 to < dc8d89acc5642304a86bf5bdf78d08ee4064c4ae · 54008399dc0ce511a07b87f1af3d1f5c791982a4 to < 020e6529e0ef945b22b08ca7cbfad1d676ac1e6f · 54008399dc0ce511a07b87f1af3d1f5c791982a4 to < 254214600efb0be9815720661e16513861b752ef · 54008399dc0ce511a07b87f1af3d1f5c791982a4 to < 238c0053d5ba919e414fc26bdd91b2079e819d86 · 54008399dc0ce511a07b87f1af3d1f5c791982a4 to < 813221c8bbc9ce0c22b8a190478f6718d9c69a31 · 54008399dc0ce511a07b87f1af3d1f5c791982a4 to < b898407535b1c5a9caa6b22aa35650e0a99d742e · 54008399dc0ce511a07b87f1af3d1f5c791982a4 to < 52913831ba56efceaafd80b501d68fa00f79bde6 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux3.15 (affected) · 0 to < 3.15 (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 |
| Amazon Linux | AL2 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: ceph: fix 32-bit overflow in readdir reply count check parse_reply_info_readdir() checks how many entries are in a readdir reply by computing the end pointer of the decoded array. That pointer addition can wrap on 32-bit kernels and let an oversized count pass the check. For example, a count of 0x40000000 with 156-byte entries wraps to a zero offset, so the decoder can write past the preallocated buffer. Check the count against the number of entries that fit in the allocation before publishing dir_nr. Reject oversized replies through the existing error path.
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.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:N - The count comes off the wire as the __le32 num in the extra section of a CEPH_MSG_CLIENT_REPLY. A hostile or compromised MDS sends that reply over the Ceph messenger on TCP, and handle_reply -> parse_reply_info -> parse_reply_info_extra -> parse_reply_info_readdir decodes it. AC:L - On 32-bit kernels num=0x80000000 makes num*sizeof wrap to 0, so the dir_entries+num pointer check always passes. The MDS also sizes the buffer through the i_files/i_subdirs it reports. dir_nr is an int, so it becomes negative and destroy_reply_info skips its loop. No race and no forced crash. PR:N - The attacker is the MDS peer and needs no account or privilege on the client. After lookup_get_request() matches the tid and the session, handle_reply() parses the readdir payload with no further check on who sent it. UI:R - handle_reply only parses replies to a registered tid, and dir_entries is only allocated for a READDIR/LSSNAP issued by ceph_readdir. A victim must have mounted the attacker's or compromised cluster, and a process must call getdents on a directory. The MDS cannot push this reply unsolicited. S:U - The out-of-bounds write corrupts the client kernel's own lowmem pages next to the __get_free_pages buffer from ceph_alloc_readdir_reply_buffer. The impact stays inside the kernel that parses the reply, with no VM, IOMMU or sandbox boundary crossed. C:H - The write places pointers and attacker-chosen 32/64-bit fields from parse_reply_info_in (change_attr, btime, quota, lengths) into adjacent kernel pages, up to megabytes past the buffer. Corrupting neighbouring objects this way can be leveraged to read kernel memory. I:H - parse_reply_info_readdir keeps writing struct ceph_mds_reply_dir_entry records at dir_entries+i, past dir_buf_size, for as many entries as the MDS packs into a reply of up to 16 MiB. That is a controlled-length out-of-bounds write into adjacent physical pages, usable to hijack control flow. A:H - Overwriting the neighbouring lowmem pages (slab, page cache or other kernel objects) crashes the client kernel. A count like 0x40000000 also makes destroy_reply_info kfree garbage across the whole address space. On 64-bit the same oversized count hit WARN_ON(1).
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 54008399dc0ce511a07b87f1af3d1f5c791982a4 to < f344a1d12dc3b37603e25091c77fe06b0ba92c84 (affected · git)54008399dc0ce511a07b87f1af3d1f5c791982a4 to < dc8d89acc5642304a86bf5bdf78d08ee4064c4ae (affected · git)54008399dc0ce511a07b87f1af3d1f5c791982a4 to < 020e6529e0ef945b22b08ca7cbfad1d676ac1e6f (affected · git)54008399dc0ce511a07b87f1af3d1f5c791982a4 to < 254214600efb0be9815720661e16513861b752ef (affected · git)54008399dc0ce511a07b87f1af3d1f5c791982a4 to < 238c0053d5ba919e414fc26bdd91b2079e819d86 (affected · git)54008399dc0ce511a07b87f1af3d1f5c791982a4 to < 813221c8bbc9ce0c22b8a190478f6718d9c69a31 (affected · git)54008399dc0ce511a07b87f1af3d1f5c791982a4 to < b898407535b1c5a9caa6b22aa35650e0a99d742e (affected · git)54008399dc0ce511a07b87f1af3d1f5c791982a4 to < 52913831ba56efceaafd80b501d68fa00f79bde6 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 3.15 (affected)0 to < 3.15 (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/020e6529e0ef945b22b08ca7cbfad1d676ac1e6f
- https://git.kernel.org/stable/c/238c0053d5ba919e414fc26bdd91b2079e819d86
- https://git.kernel.org/stable/c/254214600efb0be9815720661e16513861b752ef
- https://git.kernel.org/stable/c/52913831ba56efceaafd80b501d68fa00f79bde6
- https://git.kernel.org/stable/c/813221c8bbc9ce0c22b8a190478f6718d9c69a31
- https://git.kernel.org/stable/c/b898407535b1c5a9caa6b22aa35650e0a99d742e
- https://git.kernel.org/stable/c/dc8d89acc5642304a86bf5bdf78d08ee4064c4ae
- https://git.kernel.org/stable/c/f344a1d12dc3b37603e25091c77fe06b0ba92c84
Provider assertions
1Linux · cna
ceph: fix 32-bit overflow in readdir reply count check
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 46673894c032cb01897b9fdf9da79b096893a5790e316da28ca78db92180d9bc
- Ingested
- 01 Dec 2026, 05:47:23 UTC
- Source record
- Official CVE record