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

fix(core): fix returning from spawned applet to coreapp

Public commit record

What the developer wrote

Authored by cepetr

62/100 · Adequate
fix(core): fix returning from spawned applet to coreapp

[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 scheduling bug in the Trezor firmware's task-switching system. When the device switched from a small temporary 'applet' back to the main 'coreapp', the old code simply jumped tasks without telling the event scheduler to put the current task back on the runnable list. That could leave the current task unscheduled or cause a null-pointer write when the scheduler later tried to record which events woke it up. The patch adds a proper 'yield and reschedule' helper and guards the null-pointer write.

Recommended action

Treat as a reliability and potential security fix. Review whether the old direct yield could cause denial-of-service (unscheduled coreapp) or memory corruption (null-pointer write) on real hardware, and include in release notes if a security boundary is crossed by spawned applets.

Security signals we found

01

Null-pointer dereference guard added in scheduler hot path

02

Task scheduling state inconsistency fixed in applet-to-coreapp transition

03

Kernel-mode task yield behavior changed to use dispatcher-managed rescheduling

Risk score

Why this scored 45/100

Our methodology →
Potential impact 12/30
Exploitability 8/25
Stealth signal 7/15
Affected reach 10/15
Confidence 5/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.