binfmt_flat: Fix integer overflow bug on 32 bit systems
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ c995ee28d29d6f256c3a8a6c4e66469554374f25 · < a009378af674b808efcca1e2e67916e79ce866b3| No fix yet |
| Linux Linux |
|
|
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);
From the CVE record · Linux
On 32-bit systems, binfmt_flat does not check the relocation count before calculating full_data, which can cause an integer overflow and an incorrect result. An attacker may be able to trigger this calculation; the input does not specify the required access or user interaction.
Engineers running the Linux kernel on 32-bit systems should check their installations; affected versions are not specified.