CVE-2024-57259 Memory corruption in U-Boot

High 7.1 Published Updated

An off-by-one error in U-Boot's squashfs directory listing allows heap memory corruption, potentially leading to code execution or denial of service.

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

What is CVE-2024-57259?

CVE-2024-57259 is a high-severity memory corruption vulnerability in denx U-Boot, published on 18 Feb 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

sqfs_search_dir in Das U-Boot before 2025.01-rc1 exhibits an off-by-one error and resultant heap memory corruption for squashfs directory listing because the path separator is not considered in a size calculation.

Weakness: CWE-193

Which versions are affected by CVE-2024-57259?

It affects 1 product.

Products include Denx U-Boot.

How do I fix CVE-2024-57259?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2024-57259 being exploited?

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

Sources

Also known as DEBIAN-CVE-2024-57259, GHSA-c2cp-78ww-6jm8, UBUNTU-CVE-2024-57259.

Is CVE-2024-57259 in your software?

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

Check your SBOMs for free