Skip to content
Crypto Write-up Advanced

A mysterious bug in the firmware of Google’s Titan M chip (CVE-2019-9465)

A bug in the Titan M chip's firmware caused AES-GCM encryption to produce predictable and bogus ciphertext when there was a delay between cipher initialisation and use. An attacker could potentially exploit this to break the confidentiality guarantee of symmetric encryption, though the exact impact is unclear.

Alexander Bakker Follow

Published on alexbakker.me

Starting with the release of the Pixel 3, all of Google’s Pixel Android smartphones come with the Titan M security chip on board. When I realized the Pixel 3a XL I purchased also had it, I decided to try to take advantage of it in an app I work on.

Alexander Bakker, on alexbakker.me

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

Likely a memory corruption issue in the Titan M firmware that occurs when there is a delay between cipher initialisation and use.

Impact

The bug could allow an attacker to predict ciphertext, breaking the confidentiality guarantee of AES-GCM, but the exact attack vector is unclear and no direct exploitation was demonstrated.

What the attacker needed

Pixel device with Titan M chip; StrongBox-backed AES-GCM key; delay of ~2 seconds between init and use

The fix

The issue was fixed in a firmware update, though the exact fix is unknown.

How it was found

  1. Generate a key with StrongBox backing and AES-GCM mode.
  2. Initialise a cipher for encryption or decryption.
  3. Wait around 2 seconds before using the cipher.
  4. Observe that the ciphertext becomes predictable and bogus.

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.

The Titan M chip is a dedicated security chip in Google Pixel phones that stores cryptographic keys. When using the chip for encryption, a timing issue caused the encrypted output to be predictable instead of random, which defeats a key security property of encryption. The exact cause is unknown because the chip's firmware is not public.

What is Crypto?

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.

More from Google

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cryptographic weaknesses

The lesson behind this report.

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.