# CVE-2024-58010: binfmt_flat: Fix integer overflow bug on 32 bit systems

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-01)
- Published: 2025-02-27T02:12:05.165Z
- Modified: 2026-08-05T11:47:25.557Z
- Weaknesses: CWE-190
- Assigned by: Linux

## Description

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);

(As written by CVE List.)

## Affected

- Linux Linux: from c995ee28d29d6f256c3a8a6c4e66469554374f25 before 0b6be54d7386b7addbf9e5947366f94aad046938; from c995ee28d29d6f256c3a8a6c4e66469554374f25 before 6fb98e0576ea155267e206286413dcb3a3d55c12; from c995ee28d29d6f256c3a8a6c4e66469554374f25 before bc8ca18b8ef4648532c001bd6c8151143b569275; from c995ee28d29d6f256c3a8a6c4e66469554374f25 before 95506c7f33452450346fbe2975c1359100f854ca; from c995ee28d29d6f256c3a8a6c4e66469554374f25 before d17ca8f2dfcf423c439859995910a20e38b86f00; from c995ee28d29d6f256c3a8a6c4e66469554374f25 before a009378af674b808efcca1e2e67916e79ce866b3; from c995ee28d29d6f256c3a8a6c4e66469554374f25 before 8e8cd712bb06a507b26efd2a56155076aa454345; from c995ee28d29d6f256c3a8a6c4e66469554374f25 before 55cf2f4b945f6a6416cc2524ba740b83cc9af25a; 4.8 (not affected: before 4.8; from 5.4.291 up to 5.4.*; from 5.10.235 up to 5.10.*; from 5.15.179 up to 5.15.*; from 6.1.129 up to 6.1.*; from 6.6.78 up to 6.6.*; from 6.12.14 up to 6.12.*; from 6.13.3 up to 6.13.*; from 6.14 up to *)
- linux linux_kernel: from 4.8 before 6.1.129; from 6.2 before 6.6.78; from 6.7 before 6.12.14; from 6.13 before 6.13.3

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/0b6be54d7386b7addbf9e5947366f94aad046938>
- <https://git.kernel.org/stable/c/6fb98e0576ea155267e206286413dcb3a3d55c12>
- <https://git.kernel.org/stable/c/bc8ca18b8ef4648532c001bd6c8151143b569275>
- <https://git.kernel.org/stable/c/95506c7f33452450346fbe2975c1359100f854ca> (patch)
- <https://git.kernel.org/stable/c/d17ca8f2dfcf423c439859995910a20e38b86f00> (patch)
- <https://git.kernel.org/stable/c/a009378af674b808efcca1e2e67916e79ce866b3> (patch)
- <https://git.kernel.org/stable/c/8e8cd712bb06a507b26efd2a56155076aa454345> (patch)
- <https://git.kernel.org/stable/c/55cf2f4b945f6a6416cc2524ba740b83cc9af25a> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html>

## Sources

- CVE List: [CVE-2024-58010](https://www.cve.org/CVERecord?id=CVE-2024-58010), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-58010](https://nvd.nist.gov/vuln/detail/CVE-2024-58010), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-58010 · Whole record: https://cve.day/CVE-2024-58010.json · Rebuilt by cve.day 2026-11-25T22:58:52.103Z
