Recon 2026

FAT Chungus: CVE-2025-24857 - A Journey Through U-Boot Exploitation
Language: English

Amazon Element55 unpacks CVE-2025-24857, a severe flaw they discovered in U-Boot’s FAT filesystem support that exposes unauthorized code execution. This talk will elucidate the requisite lore of our research and methodology, how Amazon responded internally, and the coordinated disclosure process.


lol AI summary:

Key Topics Covered:

The Vulnerability

Root Cause: An integer underflow in U-Boot’s get_fatent() function triggered during file reads from attacker-controlled USB devices.
Impact: Bypasses secure boot, enabling arbitrary code execution on otherwise hardened devices.
Scope: Affects U-Boot versions prior to 2017.11, Qualcomm IPQ chipsets (IPQ4019, IPQ5018, etc.), and devices like Amazon eero routers.

Discovery & Fuzzing

Challenge: Fuzzing a 250MB FAT32 filesystem was impractical due to size constraints.
Solution: Zombified U-Boot’s FAT reader into a Linux userland tool, embedding the entire FAT image for targeted sector fuzzing.
Breakthrough: Crashes identified within minutes by focusing on the FAT header sector.
Exploitation Chain

Triggering the Bug: Manipulating the root_cluster parameter to force fatlength < startblock, causing getsize to underflow to ~UINT32_MAX.
Memory Layout: Deterministic addresses in executable RAM (0x4a900000–0x4aa00000) with disabled NX-bit.
Overflow Control: Using USB emulation (Facedancer/Cynthion) to send empty sector responses, triggering U-Boot’s recovery mode and enabling precise overflow length control.
Code Execution: Hijacking U-Boot’s environment variable hash table via overflow to redirect execution to attacker-controlled shellcode.
Payload Development

Rust Implementation: Safe, panic-handled Rust code for heap restoration, interrupt disablement, and kernel loading.
Heap Repair: Rebuilding DLMalloc linked lists and re-importing environment variables from eMMC.
Bootargs Manipulation: Enabling root shell via systemd.wants=serial-getty@ttyMSM0.service.
Responsible Disclosure & Mitigation

Coordinated Response: Collaboration with CISA (Advisory ICSA-25-343-01), Qualcomm, and the U-Boot Project.
Amazon’s Action: Patched tens of millions of eero routers via automatic, cryptographically signed updates by January 2025.
Fix: Upgrade to U-Boot v2025.4 or later.