Skip to content
Access control Advisory Advanced CVE-2018-3968

Das U-Boot verified boot bypass

U-Boot versions 2013.07-rc1 to 2014.07-rc2 allowed booting unsigned legacy kernel images even when signed FIT images were required, so an attacker with local root access could replace the boot image and run an arbitrary kernel persistently.

Claudio Bozzato Follow

Originally disclosed on Cisco Talos

High 8.2 View original

An exploitable vulnerability exists in the verified boot protection of the Das U-Boot from version 2013.07-rc1 to 2014.07-rc2. The affected versions lack proper FIT signature enforcement, which allows an attacker to bypass U-Boot’s verified boot and execute an unsigned kernel, embedded in a legacy image format.

Claudio Bozzato and Yves Younan, on Cisco Talos

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 report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The bootloader's kernel loading code always supported the legacy image format, and there was no configuration option to disable it, so signature enforcement could be bypassed by supplying an unsigned legacy image.

Impact

A local attacker with root privileges could bypass the write-protected bootloader and verified boot to start the device with an arbitrary kernel, achieving persistent compromise; physical access or another local exploit is required.

What the attacker needed

Local root access or physical access; ability to write to boot partition

The fix

The issue was fixed in U-Boot 2014.07-rc3 by adding a configuration option to disable legacy image format support, but the OCTEON SDK did not incorporate the fix.

How it was found

  1. Mount the boot partition.
  2. Decrypt the encrypted FIT image using the seed and an external tool.
  3. Extract the kernel from the decrypted FIT image.
  4. Modify the kernel and repack it into the legacy image format.
  5. Place the new legacy image on the boot partition and set the boot image index.
  6. Reboot; U-Boot boots the unsigned legacy image.

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 report has not been written yet. The Original tab links to the source.

Verified boot is a security feature that checks a cryptographic signature before running the operating system, so only approved software starts. In these U-Boot versions, the bootloader also accepted an older image format that had no signature check. Someone who already had administrator access to the device could swap in their own kernel and keep control after a reboot.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by Claudio Bozzato

View all

1 more disclosed report, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.