Skip to content
Info disclosure Write-up Advanced

Huawei TrustZone IfaaKey_TA Vulnerability

An information leak in the Huawei TrustZone IfaaKey_TA command CmdSignWithCert occurs when the output buffer size is not 0x100, causing the addresses of two TEE_Param buffers to be logged. An attacker with access to logcat could learn these addresses and that they are always mapped at the same location.

blog.impalabs.com

Published on blog.impalabs.com

Alexandre Adamski](https://blog.impalabs.com/authors/alexandre-adamski.html) [{{media:2}}

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

Likely, the command handler logs buffer addresses when the output buffer size is not the expected 0x100, without considering that logs are accessible.

Impact

The leak could reveal memory addresses to an attacker with log access, but the report rates severity as Low and does not demonstrate further exploitation.

What the attacker needed

Access to logcat; ability to invoke the trustlet command

The fix

The vulnerability was fixed according to the patch table.

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.

TrustZone is a secure area inside a phone's processor that runs small programs called trustlets. This bug makes one trustlet write memory addresses into a system log that can be read with a debugging tool called logcat. Those addresses could help an attacker plan further attacks, but the report does not show that happening.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.