ceph: fix 32-bit overflow in readdir reply count check
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Sep 25, 2026
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.
| Product | Versions |
|---|---|
| Linux Linux | 54008399dc0ce511a07b87f1af3d1f5c791982a4 to before f344a1d12dc3b37603e25091c77fe06b0ba92c84 Affected54008399dc0ce511a07b87f1af3d1f5c791982a4 to before dc8d89acc5642304a86bf5bdf78d08ee4064c4ae Affected54008399dc0ce511a07b87f1af3d1f5c791982a4 to before 020e6529e0ef945b22b08ca7cbfad1d676ac1e6f Affected54008399dc0ce511a07b87f1af3d1f5c791982a4 to before 254214600efb0be9815720661e16513861b752ef Affected54008399dc0ce511a07b87f1af3d1f5c791982a4 to before 238c0053d5ba919e414fc26bdd91b2079e819d86 Affected54008399dc0ce511a07b87f1af3d1f5c791982a4 to before 813221c8bbc9ce0c22b8a190478f6718d9c69a31 Affected54008399dc0ce511a07b87f1af3d1f5c791982a4 to before b898407535b1c5a9caa6b22aa35650e0a99d742e Affected54008399dc0ce511a07b87f1af3d1f5c791982a4 to before 52913831ba56efceaafd80b501d68fa00f79bde6 Affected |
| Linux Linux | 3.15 Affectedbefore 3.15 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 |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
- https://git.kernel.org/stable/c/f344a1d12dc3b37603e25091c77fe06b0ba92c84
- https://git.kernel.org/stable/c/dc8d89acc5642304a86bf5bdf78d08ee4064c4ae
- https://git.kernel.org/stable/c/020e6529e0ef945b22b08ca7cbfad1d676ac1e6f
- https://git.kernel.org/stable/c/254214600efb0be9815720661e16513861b752ef
- https://git.kernel.org/stable/c/238c0053d5ba919e414fc26bdd91b2079e819d86
- https://git.kernel.org/stable/c/813221c8bbc9ce0c22b8a190478f6718d9c69a31
- https://git.kernel.org/stable/c/b898407535b1c5a9caa6b22aa35650e0a99d742e
- https://git.kernel.org/stable/c/52913831ba56efceaafd80b501d68fa00f79bde6
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.