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

High 7.8 Published Updated

An integer overflow in the Linux kernel's binfmt_flat handler on 32-bit systems could allow attackers to execute arbitrary code or escalate privileges.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-58010?

CVE-2024-58010 is a high-severity vulnerability in Linux kernel, published on 27 Feb 2025. It can only be exploited from the same machine or local network, with no action from the victim.

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

Weakness: CWE-190

Which versions are affected by CVE-2024-58010?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-58010?

Apply the vendor's patch.

Is CVE-2024-58010 being exploited?

There is no known exploitation of CVE-2024-58010 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as AZL-57785, BELL-CVE-2024-58010, DEBIAN-CVE-2024-58010, GHSA-6hq3-frr2-vjp4, ROOT-OS-UBUNTU-2404-CVE-2024-58010, UBUNTU-CVE-2024-58010.

Is CVE-2024-58010 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free