AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Moderate 57 Bitcoin

fix(core): enable applet before accessing its stack

Public commit record

What the developer wrote

Authored by cepetr

62/100 · Adequate
fix(core): enable applet before accessing its stack

[no changelog]
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body
The short version

What changed, and why it matters

This commit fixes a low-level bug in the Trezor hardware wallet's core firmware. Before pushing data onto a task's stack, the code now ensures the correct memory protection region (called an 'applet') is activated. Without this fix, the device could potentially access or corrupt memory it shouldn't while managing internal tasks, which on a security device like a hardware wallet could undermine isolation between sensitive operations.

Recommended action

Treat as a security-relevant hardening fix. Review whether `systask_pop_data`, context-switch paths, and other stack-manipulation sites also need `mpu_set_active_applet()` calls. Verify that the fix is backported to all supported firmware branches and consider whether the issue is reachable from untrusted code (e.g., third-party applets).

Security signals we found

01

Memory Protection Unit (MPU) context mismatch before stack write

02

Potential applet isolation bypass or fault

03

Kernel-only code path guarded by #ifdef KERNEL

04

No changelog entry despite security-relevant area

Risk score

Why this scored 57/100

Our methodology →
Potential impact 18/30
Exploitability 12/25
Stealth signal 8/15
Affected reach 10/15
Confidence 6/10
Evidence quality 3/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.