CVE-2019-13104: Das U-Boot integer underflow in ext4 filesystem parsing

CVE-2019-13104 · Severity: high · CVSS 7.8 · Published 2019-08-06

A vulnerability exists in the U-Boot bootloader, which is commonly used in embedded systems and network hardware. By providing a specially crafted storage device (like a USB drive or SD card) with a malicious filesystem, an attacker could cause the system to crash or potentially take control of the device during the boot process. This could lead to a complete compromise of the device's security and data.

Technologies: Siemens ROX II. Vendors: Siemens.

Quick answers

Is CVE-2019-13104 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2019-13104 being exploited in the wild.
How severe is CVE-2019-13104?
High severity, with a CVSS score of 7.8, published 6 August 2019.
Which products and versions are affected?
Siemens ROX II versions before 2.17.1.
Is there a fix for CVE-2019-13104?
A patch was published on 2019-07-08: Patch submitted to U-Boot mailing list Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2019-13104 attacked?
It is attacked with local access, in a software library.
Am I affected by CVE-2019-13104?
Check whether you run Siemens ROX II at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

An integer underflow vulnerability exists in the ext4fs_read_file function within fs/ext4/ext4fs.c of Das U-Boot. When processing a crafted ext4 filesystem, the 'len' variable can underflow, leading to a memcpy() operation with an extremely large (effectively infinite) length. This results in an out-of-bounds write that can overwrite the entire stack and other memory regions. An attacker with the ability to provide a malicious filesystem to the bootloader can achieve arbitrary code execution or a denial-of-service state. The issue is fixed by adding checks for negative length and blocksize values.

Affected products

  • Das U-Boot U-Boot 2016.11-rc1 through 2019.07-rc4
  • Siemens Ruggedcom ROX II family versions before 2.17.1

Timeline

  • 2019-07-08: patched: Patch submitted to U-Boot mailing list
  • 2019-08-06: disclosed: NVD publication date
  • 2026-05-12: advisory: Siemens published advisory for Ruggedcom ROX products

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.