In the Linux kernel, the following vulnerability has been resolved: ceph: bound name skips in ceph_mdsmap_decode() by the message end ceph_mdsmap_decode() reads two remote u32 name lengths and advances its parser cursor without checking that either string remains in the message. On a 32-bit client, a sufficiently large length can wrap the cursor below `end`. The following numerical bounds check then succeeds and dereferences the wrapped address. Use ceph_decode_skip_n() for both names so the remaining bytes are checked before the cursor advances. The issue produced a page fault in ceph_mdsmap_decode twice on the tested i386 baseline. The same frame was rejected without a fault twice after this change, while a normal MDSMap continued to be accepted.
https://git.kernel.org/stable/c/ff6e8ae28b522586507f7de81230b471a4d9c633
https://git.kernel.org/stable/c/bd04d73a0d6e6c52186f3836ad1689080be7f7ed
https://git.kernel.org/stable/c/b7abd15f5041ab821b823764f3b9bb8a75a3ecf7
https://git.kernel.org/stable/c/85105987f7eea0f68e6573d7b3048ee38de6c455
https://git.kernel.org/stable/c/7f702e1703c9648fcb02a217d66c880d00417150
https://git.kernel.org/stable/c/635d69abc3efdf6bd92eefe3824842b5626a6242
https://git.kernel.org/stable/c/59779874bf7618798e083b5adcc8b96082a9c294
https://git.kernel.org/stable/c/44abd92f5f8792b3e21a2bdc8197162c42b2857f