Skip to content
RCE Write-up Advanced

NVIDIA Jetson Linux Initrd Vulnerability Enables Secure Boot Bypass

The initrd boot script on NVIDIA Jetson Linux read a configuration file from the boot partition and passed one of its fields unsanitised into an eval call. An attacker with physical access could place a crafted file and alter the kernel command line to get a root shell before the LUKS key was released, bypassing Secure Boot.

onekey.com

Published on onekey.com

Example H2

The author, on onekey.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

The init script parsed a field from the opt/nvidia/cryptluks file and used it unsanitised inside an eval call, so shell metacharacters in the field were executed.

Impact

An attacker with physical access could bypass Secure Boot, obtain a root shell early in boot, and disclose the LUKS key protecting the root filesystem; the authors confirmed this on a live device with an already encrypted rootfs.

What the attacker needed

Physical access to the device; ability to mount the boot partition; access to Device Manager to change boot options

The fix

NVIDIA fixed the issue by removing all eval calls and adding regular-expression field validation; versions 39.2.1, 36.5.2 and 35.6.5 are listed as fixed, while 38.x fixes were not yet known.

How it was found

  1. Mount the plaintext boot partition and create an opt/nvidia/cryptluks file containing a crafted enc_dm_name value.
  2. In Device Manager, set the kernel command line to boot from that partition with the serial console.
  3. Save, reset the device, and observe a root shell before the LUKS Trusted Application closes.

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.

When a Jetson device starts, a small script in the boot image decides how to unlock the encrypted disk. That script trusted a text file on an unencrypted partition and ran part of it as a command. Someone who can touch the device could edit that file and the boot settings so their own command runs as the root user, the most powerful account, before the disk key is handed over.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.