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

rust: use static no-op waker

Public commit record

What the developer wrote

Authored by benma's agent

68/100 · Adequate
rust: use static no-op waker

The polling executor ignores wake notifications and is polled on every
main-loop iteration. Use core's static no-op waker so ISR callbacks cannot
free an Arc while the heap allocator is active.

Remove the now-unused heap-backed waker helper.
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This commit replaces a custom-built notification helper (a 'waker') inside the BitBox02 firmware's Rust code with a built-in, memory-safe no-op version. The old helper used heap memory and reference counting (Arc), which could be freed by interrupt routines while the memory allocator was already busy. The change removes that helper entirely and uses a static no-op waker instead, preventing a potential use-after-free or heap corruption issue during asynchronous task polling.

Recommended action

Treat this as a defensive hardening fix with potential security relevance. Review whether any other code paths still use heap-backed wakers or Arc-backed callbacks in interrupt contexts. No immediate user action is required beyond applying the firmware update.

Security signals we found

01

Eliminates heap-allocated Arc in waker construction

02

Removes custom RawWakerVTable with unsafe clone/wake/drop operations

03

Prevents ISR callbacks from freeing Arc while heap allocator is active

04

Uses core::task::Waker::noop() static no-op waker

05

Commit message explicitly describes the safety motivation

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.