Unwanted Features: Finding & Exploiting An In ROM Buffer Overflow On The LPC55S69
summary
A buffer overflow in the LPC55S69 ROM SB2 update parser (filed as CVE-2022-22819) allows non‑persistent code execution and extraction of the device secret. Disassembly in Ghidra and a ROM dump show an unsigned 96‑byte header copied into a 752‑byte global state with integer underflows, overflowing the adjacent bump heap, overwriting the callback pointer at offset 4, then spraying executable SRAM via ISP 512‑byte writes to disable MPU/SAU. The exploit reads the puff/UDS before its key index is locked; it cannot unseal CMPA.
AI-written summary · about
chapters (12)
- 0:00Hardware root of trust
- 1:34Selecting hardware
- 3:00The update mechanism
- 5:50NXP update format
- 9:12Identifying security risks
- 12:32Buffer overflow discovery
- 16:54Exploitation strategy
- 21:46Bypassing defenses
- 25:09Impact and mitigation
- 29:16DICE and security flaws
- 33:32Lessons and conclusions
- 36:40Closing thoughts and Q&A
