Security Advisory

CVE-2024-57258: U-Boot dlmalloc Integer Overflows

Last updated:
  • CVE-2024-57258

CVE-2024-57258 is a set of integer overflows in the U-Boot bootloader's memory allocator, in sbrk() and request2size(), that let a huge allocation request, for example from a crafted SquashFS image, return a buffer that is too small. NVD scores it 7.8, v2025.01-rc1 fixes it, and Siemens lists RUGGEDCOM ROX devices before V2.17.1 as affected.

Vulnerability summary

CVSS base score

7.8

High severity

EPSS score (FIRST)

0.2%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

No

Not listed

Published

Vulnerability ID: CVE-2024-57258 · Source: NVD

Affected components

ComponentCPEVersion range
Das U-Boot bootloader, memory allocator (dlmalloc sbrk, request2size)cpe:2.3:a:denx:u-boot:*:*:*:*:*:*:*:*through 2024.10 (NVD); fixed in v2025.01-rc1 (sigma star advisory)
Siemens RUGGEDCOM ROX MX5000, MX5000RE, RX1400, RX1500, RX1501, RX1510, RX1511, RX1512, RX1524, RX1536 and RX5000—all versions before V2.17.1; fixed in V2.17.1 (Siemens SSA-577017, CISA ICSA-26-134-16)

What does this mean for affected devices?

CVE-2024-57258 covers integer overflows in the memory allocator of the U-Boot bootloader. NVD's description says "Integer overflows in memory allocation in Das U-Boot before 2025.01-rc1 occur for a crafted squashfs filesystem via sbrk, via request2size, or because ptrdiff_t is mishandled on x86_64" (NVD). NVD scores it 7.8 with vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H; MITRE's own score is 7.1 with a physical vector. The weakness is CWE-190, and NVD's CPE range ends at 2024.10.

Richard Weinberger and David Gstir of sigma star gmbh published advisory sigma-star-sa-2024-002 on oss-security on 2025-02-17. It covers six CVEs, CVE-2024-57254 to CVE-2024-57259, in U-Boot 2024.10 and earlier, fixed in v2025.01-rc1, and states the impact: "An attacker capable of modifying ext4 or SquashFS filesystem data structures can exploit multiple memory corruption vulnerabilities in U-Boot. For systems that rely on verified boot, these vulnerabilities allow an attacker to bypass the chain of trust and achieve code execution", and adds that "CVE-2024-57258 may also be exploited in U-Boot through other subsystems than ext4 or SquashFS". That makes it the broadest of the six: the bug sits in U-Boot's copy of dlmalloc, which every subsystem uses, and SquashFS is only the example trigger. Three commits by Richard Weinberger fix it. The sbrk() fix checks that the new break stays within the heap, because old + increment could overflow and lead to a wrong memset(). The request2size() fix removes a cast to long that made very large requests return the minimum size. The x86_64 fix widens ptrdiff_t. The Debian security tracker places all three in v2025.01-rc1, with fixed packages for Debian 11 (DLA-4150-1), Debian 12 and unstable.

The device angle is Siemens. Its ProductCERT advisory SSA-577017, published on 2026-05-12, lists CVE-2024-57258 among 23 U-Boot flaws in RUGGEDCOM ROX MX5000, MX5000RE, RX1400, RX1500, RX1501, RX1510, RX1511, RX1512, RX1524, RX1536 and RX5000 devices before V2.17.1, scoring it at 7.1 with an update to V2.17.1 or later as the fix. CISA republished it as ICSA-26-134-16 (CSAF).

The CVE is not in the CISA KEV catalog as of 2026-11-16 (catalog version 2026.11.13). FIRST EPSS gives it 0.0025, the 16.0th percentile, in the 2026-11-15 dataset (CISA KEV, FIRST EPSS).

A firmware review should treat this CVE as present in any U-Boot 2024.10 or earlier, whatever file systems the build enables, since the allocator is always compiled in. Device makers should rebuild on v2025.01-rc1 or later or apply the three commits. Operators of RUGGEDCOM ROX devices should move to V2.17.1. Our U-Boot security guide uses this CVE in its worked example, and our memory corruption fix guide covers the bug class. The ext4 symlink overflow from the same advisory is CVE-2024-57256.

How to fix this class of issueThis advisory's weakness class is Memory corruption. Our practical guide covers how to detect, fix, verify and disclose it: How to fix memory corruption in embedded firmware.

Evidence

  • Integer overflows in memory allocation in U-Boot before 2025.01-rc1 via sbrk, request2size, or ptrdiff_t on x86_64, crafted squashfs; NVD CVSS v3.1 7.8 (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H), MITRE 7.1; CWE-190; CPE through 2024.10. — NVD
  • sigma-star-sa-2024-002 (2025-02-17): affected <= 2024.10, fixed v2025.01-rc1; chain of trust bypass on verified boot systems; CVE-2024-57258 may also be exploited through subsystems other than ext4 or SquashFS. — oss-security (sigma star)
  • Commit 0a10b492: sbrk() new break checked against heap bounds; old + increment could overflow and memset() be called wrongly. — U-Boot commit 0a10b492
  • Commit 8642b217: removes cast to long in request2size(); values near LONG_MAX made it return MINSIZE. — U-Boot commit 8642b217
  • Commit c17b2a05: ptrdiff_t changed to long on x86_64. — U-Boot commit c17b2a05
  • Debian: all three commits in v2025.01-rc1; fixed packages for bullseye (DLA-4150-1), bookworm and unstable. — Debian security tracker
  • SSA-577017 (2026-05-12): CVE-2024-57258 (Siemens CVSS 7.1) affects RUGGEDCOM ROX MX5000, MX5000RE, RX1400, RX1500, RX1501, RX1510, RX1511, RX1512, RX1524, RX1536 and RX5000 before V2.17.1; update to V2.17.1. — Siemens ProductCERT SSA-577017
  • CISA republished SSA-577017 as ICSA-26-134-16 on 2026-05-14. — CISA ICSA-26-134-16 (CSAF)
  • Not in the CISA KEV catalog as of 2026-11-16 (catalog version 2026.11.13). — CISA KEV
  • EPSS 0.00246 (16.0th percentile), dataset 2026-11-15, read 2026-11-16. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. oss-security: Multiple Vulnerabilities in U-Boot (sigma star, sigma-star-sa-2024-002)
  3. U-Boot commit 0a10b492: dlmalloc: Fix integer overflow in sbrk()
  4. U-Boot commit 8642b217: dlmalloc: Fix integer overflow in request2size()
  5. U-Boot commit c17b2a05: x86: Fix ptrdiff_t for x86_64
  6. Siemens ProductCERT SSA-577017: Multiple Vulnerabilities in Ruggedcom Rox Before 2.17.1
  7. CISA ICSA-26-134-16: Siemens Ruggedcom Rox (CSAF)
  8. Debian security tracker: CVE-2024-57258
  9. CISA KEV
  10. FIRST EPSS

Frequently asked questions

Which U-Boot versions are affected by CVE-2024-57258?

U-Boot 2024.10 and earlier. The three fix commits are in v2025.01-rc1 (per NVD, the sigma star advisory and the Debian security tracker).

Does CVE-2024-57258 matter if the U-Boot build has no SquashFS support?

Yes, it can. The sigma star advisory says CVE-2024-57258 may also be exploited through subsystems other than ext4 or SquashFS, because the flaw is in the shared memory allocator (per oss-security).

Which Siemens devices are affected by CVE-2024-57258?

RUGGEDCOM ROX MX5000, MX5000RE, RX1400, RX1500, RX1501, RX1510, RX1511, RX1512, RX1524, RX1536 and RX5000, all versions before V2.17.1. Siemens recommends updating to V2.17.1 or later (per Siemens SSA-577017 and CISA ICSA-26-134-16).

Is CVE-2024-57258 exploited?

It is not in the CISA KEV catalog as of 2026-11-16 (catalog version 2026.11.13). FIRST EPSS gives it 0.0025, the 16.0th percentile, in the 2026-11-15 dataset (per CISA KEV and FIRST EPSS).