Skip to content
Memory corruption Write-up Advanced

Pixel Tablet Dock (korlan) Secure Boot Bypass

The Pixel Tablet Dock's u-boot has a buffer overflow in append_uint32_le() that can be triggered by fault injection on the NAND chip-select pin, dropping the device into a u-boot shell. From there, an attacker can patch u-boot in memory to disable AML Secure Boot and boot a modified image, gaining root access to the device.

oddsolutions.github.io

Published on oddsolutions.github.io

A chain of two exploits intended to allow one to run a custom OS/unsigned code on the Google Pixel Tablet Dock (korlan).

ODS Security Research - Nolen Johnson, on oddsolutions.github.io

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a buffer overflow in u-boot's append_uint32_le() function, which fails to check that the new length fits within the allocated buffer before writing.

Impact

An attacker with physical access can bypass secure boot to gain root on the dock, and could clone a dock to control a victim's smart home devices via Hub Mode without authentication; the attack requires physical access and is not persistent without redoing the fault injection each boot.

What the attacker needed

Physical access to the dock; ability to short the CS# pin; USB drive with modified boot image; UART access for console

The fix

The vulnerability was fixed via an OTA update delivered through the Pixel Tablet.

How it was found

  1. Short the NAND chip-select (CS#) pin to high right after the USB scanning message to trigger the fault injection and drop into a u-boot shell.
  2. Dump u-boot from memory using md.b and reassemble it on a host with uboot-mdb-dump.
  3. Patch u-boot in memory to NOP out the AML Secure Boot check and invert the error branch, then warm-reset u-boot with go 0x0.
  4. Create a modified boot image with a root console service in init.rc and a forged AML Secure Boot header.
  5. Load the modified boot image from a USB drive using fatload and write it to the boot partition with store.
  6. Perform the fault injection again, re-apply the AML Secure Boot patches, and boot the modified image to get a root console.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

This is about a small speaker dock for a tablet. The researchers found a way to make the dock's startup program crash by briefly shorting a pin on a memory chip, which gives them a command prompt. From there they can turn off the security check that normally stops unauthorised software from running, and then load their own modified system to get full control.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.