In the Linux kernel, the following vulnerability has been resolved: binfmt_flat: Fix integer overflow bug on 32 bit systems Most of these sizes and counts are capped at 256MB so the math doesn't result in an integer overflow. The "relocs" count needs to be checked as well. Otherwise on 32bit systems the calculation of "full_data" could be wrong. full_data = data_len + relocs * sizeof(unsigned long);
https://git.kernel.org/stable/c/d17ca8f2dfcf423c439859995910a20e38b86f00
https://git.kernel.org/stable/c/a009378af674b808efcca1e2e67916e79ce866b3
https://git.kernel.org/stable/c/95506c7f33452450346fbe2975c1359100f854ca
https://git.kernel.org/stable/c/8e8cd712bb06a507b26efd2a56155076aa454345
https://git.kernel.org/stable/c/55cf2f4b945f6a6416cc2524ba740b83cc9af25a