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.
Originally disclosed on Cisco Talos
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.
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
- Mount the boot partition.
- Decrypt the encrypted FIT image using the seed and an external tool.
- Extract the kernel from the decrypted FIT image.
- Modify the kernel and repack it into the legacy image format.
- Place the new legacy image on the boot partition and set the boot image index.
- 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.