What is Anti-rollback protection?

A mechanism recording a minimum version number in storage that cannot be rolled back so software cannot be reverted to older vulnerable versions.

Field: Hardware Security

Japanese name: ロールバック防止

Why it is needed

Secure boot starts only software with a valid signature. Older versions of the software, however, also carry a genuine signature. If an attacker writes back an old version that still has a vulnerability already fixed, signature verification passes, and the vulnerability is then exploited. Preventing this requires checking how recent the version is, in addition to the signature.

How it works

A security version number is placed in the software and covered by the signature. On the device, the minimum number that will be accepted is recorded in storage that cannot be rolled back, such as one-time-programmable fuses or a counter that can only increase. At boot or update, the device checks that the software’s number is at least the minimum. The minimum is raised only after the new version has been confirmed to boot correctly. Since a blown fuse cannot be restored, a common method expresses the number as the count of blown fuses.

Operational cautions

Once the minimum is raised, it cannot be lowered. Even if a problem is found in the new version, the device can no longer return to the old one. For this reason a security number is kept separately from the functional version number and is raised only when a vulnerability is fixed. In a design with two copies of the software, kept so that the device can still boot if an update fails, the number is raised only after the new copy has booted correctly. The number of fuses is finite, so there is an upper limit on how many times it can be raised.

Try it: questions about Anti-rollback protection

In devices with secure boot, why is an anti-rollback mechanism needed?

  1. ANew software versions have no signature
  2. BOlder versions take longer to boot
  3. COlder vulnerable software versions also carry valid signatures, so reverting to them enables attacks
Show answer and explanation

Answer: C. Older vulnerable software versions also carry valid signatures, so reverting to them enables attacks

The vendor has signed older releases legitimately too, so signature checks alone would still boot an old version reinstalled after a vulnerability was found. Software therefore carries a version number, and the chip records in write-once storage such as eFuses a minimum version below which it refuses to boot. Advancing this number with each update prevents rollback to old versions.

In a device that updates firmware using two areas, side A and side B, when is the most appropriate time to advance the minimum version number recorded in eFuses for anti-rollback to the new version number?

  1. AAdvance the minimum version number to the new version number immediately, as soon as the download of the new firmware begins
  2. BAdvance it after the new firmware's signature has been verified and it has been confirmed to boot and run normally from its side
  3. CKeep the minimum version number written at manufacturing and never advance it, even when the firmware is updated
Show answer and explanation

Answer: B. Advance it after the new firmware's signature has been verified and it has been confirmed to boot and run normally from its side

If the number is advanced first and the new firmware turns out to be corrupted or fails to boot, the old version remaining on the original side is also rejected as "older than the minimum version", and the device can no longer boot. So the new version is written to the free side, its signature is verified, and only after it has been confirmed to boot and run normally from that side (commit) is the minimum version number advanced. After that, the device is protected from being rolled back to an old vulnerable version. Conversely, if the number is never advanced, attacks that write back an old, correctly signed version cannot be prevented.

FAQ

Is it not enough to write the version number in ordinary flash memory?

No. If an attacker can rewrite the flash memory, the number is rolled back to the old value along with the software.

What kinds of devices use it?

It is widely used in devices that have a software update mechanism, such as smartphones, game consoles, automotive control units and IoT devices.

Books on Hardware Security Ad

As an Amazon Associate I earn from qualifying purchases.

Comparisons that include this term

This page was drafted with AI and fact-checked by a separate AI review before publication. Our Editorial policy explains how we write and check content. If you spot an error, please tell us on our Contact page.

Back to the glossary