diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2024-12-04 15:07:15 +0300 |
---|---|---|
committer | Kees Cook <kees@kernel.org> | 2025-01-10 19:49:05 +0300 |
commit | 55cf2f4b945f6a6416cc2524ba740b83cc9af25a (patch) | |
tree | c2765ada6cad62a82939aa663996df6a83ae507a /MAINTAINERS | |
parent | 184a9358e506b77ade22c07dda4f34d133bc31c0 (diff) | |
download | linux-55cf2f4b945f6a6416cc2524ba740b83cc9af25a.tar.xz |
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);
Fixes: c995ee28d29d ("binfmt_flat: prevent kernel dammage from corrupted executable headers")
Cc: stable@vger.kernel.org
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Acked-by: Nicolas Pitre <npitre@baylibre.com>
Link: https://lore.kernel.org/r/5be17f6c-5338-43be-91ef-650153b975cb@stanley.mountain
Signed-off-by: Kees Cook <kees@kernel.org>
Diffstat (limited to 'MAINTAINERS')
0 files changed, 0 insertions, 0 deletions