hn.today

Freeing the iPod Nano 5G

viktorkrapivin.com118 points12 comments
Screenshot of Freeing the iPod Nano 5G

The project adapts a font-based exploit previously demonstrated on later iPod nanos to the fifth-generation Nano, with the goal of booting Rockbox without connecting a computer or pressing a special button sequence. The exploit combines the FreeType vulnerability CVE-2010-1797 with a bypass of the firmware’s resource-signature check. Rather than relying on a disk-mode trick that still requires a button choice on every restart, the researcher reverse-engineered the normal boot path: a device-specific record in the private NAND partition controls whether the bootloader checks the font resource’s signature. Setting its FirmwareStatus value to 2 skips that check. Because the record’s integrity tag is generated using the device’s hardware AES key, it must be created on the Nano itself, after gaining code execution.

To make the change persistent, the researcher extended emCORE with Nano 5G NAND, flash-translation, and hardware-AES support, then used it to install the authenticated private record and modified font. The font slot can encode only a compact payload, so an 808-byte assembly stub first takes control from FreeType’s corrupted stack, disables or resets inherited hardware state, and prepares a clean execution environment. A main loader then initializes NAND, mounts the FAT volume, finds /.rockbox/rockbox.ipod, verifies and loads the Rockbox image, and transfers control to it. The result is an untethered Rockbox boot from the device’s own storage; a computer and emCORE are needed for installation, not subsequent starts. The work also suggests the signature-check bypass can make the font exploit untethered on the Nano 7G, and possibly the 6G.

Read on viktorkrapivin.com12 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Hardware

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.