Skip to content
Memory corruption Write-up Advanced

Breaking Free: A New Jailbreak for the Unitree Go2

The researchers found a pre-authentication jailbreak for the Unitree Go2 robot dog by abusing a Linux kernel USB Video Class out-of-bounds write (CVE-2024-53104) to overwrite the kernel's core_pattern, which is later passed to a shell. An attacker with physical USB access could gain root on the dog before it finishes booting.

Josh Endres Follow

Published on praetorian.com

Praetorian is announcing a new jailbreak for the Unitree Go2 dog. See the Fido Fidelis section for technical details.

Josh Endres, on praetorian.com

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 the kernel's UVC driver allocated a frame buffer without accounting for the UVC_VS_UNDEFINED frame subtype, so the filling pass wrote attacker-controlled frame data past the end of that buffer.

Impact

An attacker with brief physical USB access could gain root on the dog before it boots, and the text notes kernel ASLR is disabled, making the exploit reliable on firmware 1.1.15.

What the attacker needed

Physical USB access to the dog; a Raspberry Pi Pico or Pico 2; firmware v1.1.15 (other versions need addresses)

The fix

The text does not state a fix for the Go2 itself; the underlying kernel flaw was resolved upstream in the UVC driver by skipping UVC_VS_UNDEFINED frames when parsing.

How it was found

  1. Flash the Pico with the Fido Fidelis firmware, choosing code execution, a custom payload, or full rooting.
  2. Plug the Pico into the Go2 using a USB-C to USB-Micro cable.
  3. Power on the dog; root is obtained before it stands.
  4. Present a USB device claiming the Video and VideoControl interfaces so the kernel processes VideoStreaming descriptors.
  5. Send fake frame descriptors whose bFrameIntervalType causes out-of-bounds writes into adjacent free SLUB objects.
  6. Use further VideoStreaming interfaces to overwrite core_name_size and core_pattern in kernel memory.

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.

A robot dog runs a small Linux computer inside it. The researchers plugged a tiny programmable USB device into its USB-C port and pretended to be a camera; a bug in how Linux reads camera descriptions let them write past the end of a memory buffer. By carefully controlling that write they changed a kernel setting so that when the system crashes it runs their own command as the most powerful user (root).

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.