CVE-2026-99896: ceph: fix 32-bit overflow in readdir reply count check
In the Linux kernel, the following vulnerability has been resolved:
ceph: fix 32-bit overflow in readdir reply count check
parsereplyinforeaddir() 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 dirnr. Reject oversized replies through the existing error path.