Skip to content
Info disclosure Write-up Advanced

Huawei TrustZone Block_Chain TA Vulnerabilities

Two vulnerabilities in Huawei's TrustZone Block_Chain TA: a heap pointer leak in delete_node and a memory disclosure in bc_delete_file. An attacker could read leaked heap pointers and adjacent memory from logs accessible via logcat in the normal world.

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 missing bounds checks and string termination: delete_node logs a pointer value when a node is not found, and bc_delete_file does not ensure the storepath string is null-terminated before printing it.

Impact

An attacker could obtain heap pointers and adjacent memory contents from logs, which may aid further exploitation; the text does not claim direct code execution.

What the attacker needed

Access to logcat output; deprecated TA on affected device

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 Huawei phones that runs small programs called trustlets. These trustlets can write debug messages to logs that normal apps can read. The bugs cause sensitive memory addresses and nearby memory contents to appear in those logs, which an attacker could use to learn about the phone's internal memory layout.

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.