The Nano 5G’s NAND layout includes a private partition where the PRVD record resides, enabling the untethered exploit.
*Viktor Krapivin adapted the font‑based ipod_sun chain to the iPod Nano 5G, creating a fully untethered boot that loads Rockbox directly from NAND. The method sidesteps Apple’s DFU requirement and reveals a firmware‑status bypass that could affect all recent Nano models.*
Viktor Krapivin set out to run Rockbox on the iPod Nano 5G without ever touching a computer again. The device’s latest firmware, version 1.0.2 (34A20020), still accepted unsigned code via DFU exploits, but each boot required a host PC. Krapivin repurposed the font‑based ipod_sun chain, originally proven on the 6G and 7G, and combined it with a hidden private‑partition flag to create a fully untethered boot chain. The result is a self‑loading Rockbox image stored directly in NAND, triggered by a legitimate‑looking resource image. This breakthrough demonstrates that Apple’s boot validation can be subverted with only firmware‑level knowledge and no external hardware.
CUB3D first demonstrated unsigned code execution on the Nano 6G and 7G using ipod_sun, a font‑based exploit. Apple’s firmware stores fonts in the rsrc volume, a FAT16 resource image. The bootloader’s disk‑mode path skips the rsrc signature check, allowing a swapped directory entry to launch the normal OS under disk‑mode policy. The malicious font then triggers CVE‑2010‑1797, a FreeType CFF stack‑overflow, corrupting the parser’s stack and redirecting execution. The exploit required the user to select disk mode on each boot, keeping the modified font hidden from the regular OS path.
The Nano 5G’s latest firmware (1.0.2, 34A20020) presents a different NAND layout: a 4 KiB logical sector FTL, a private partition, a firmware partition, and a data volume. Existing DFU exploits like q3k’s wInd3x provide code execution but demand a computer for every boot. Krapivin needed a method that persisted across reboots without external hardware. By examining the private partition’s MBR type 0x3e and its 512‑byte PRVD header, he identified a FirmwareStatus flag that, when set to 2, skips the rsrc signature validation in the normal boot path. This insight allowed a fully untethered chain.
Yes. Krapivin crafted a valid PRVD record with FirmwareStatus set to 2 and a device‑bound integrity tag. The bootloader reads the private header, sees the flag, and bypasses the rsrc signature check. The modified font then executes the same stack‑overflow payload used by ipod_sun, but this time it runs automatically on a normal OS boot. The result is a self‑contained Rockbox loader stored in NAND. After the initial installation, the device boots Rockbox without any computer or button sequence, achieving true untethered operation.
The discovery exposes a firmware‑status guard that Apple uses to prevent booting during an update. By reproducing the exact PRVD structure—including the magic PRVD, three 32‑bit words, and a 16‑byte integrity tag—an attacker can forge a valid record on any Nano 5G. The bypass does not rely on a hardware vulnerability; it leverages a logic flaw in the bootloader’s validation flow. If replicated on other models, the technique could undermine Apple’s DFU security model and enable persistent, offline custom firmware installations.
ipod_sun is a font‑based exploit that swaps firmware directory entries to launch Apple’s OS under disk‑mode, then uses a malformed font to trigger CVE‑2010‑1797 and gain unsigned code execution.
The PRVD record lives in the private NAND partition, starts with the magic PRVD, and contains a FirmwareStatus field set to 2, which tells the bootloader to skip the rsrc signature validation and accept a modified font image.
No. After the PRVD record is written, the iPod Nano 5G boots Rockbox automatically from NAND without any further computer interaction or button sequence.
Krapivin’s work shows that even tightly controlled consumer devices can be liberated through careful reverse engineering. By exposing the FirmwareStatus bypass, he not only delivers a practical Rockbox solution but also forces Apple to reconsider the assumptions behind its DFU and boot‑validation mechanisms. Future firmware updates will need to address this logic flaw or risk widespread untethered custom code on the Nano line.
Sources: [Hacker News – Freeing the iPod Nano 5G]