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

fix(core): pwm_data[] buffer clear check fix

Public commit record

What the developer wrote

Authored by bleska

80/100 · Strong
fix(core): pwm_data[] buffer clear check fix

A bug in pwm_data[] buffer clear check has been found and fixed. The pwm_data[][1] array element is used when the respective buffer is used for setting of new pulses' value to TPS61062 IC.

[no changelog]
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This commit fixes a small logic bug in the Trezor hardware wallet's screen backlight driver for STM32U5 devices. The driver uses a two-element buffer (pwm_data[][0] and pwm_data[][1]) to send pulse values to a backlight power chip (TPS61062). The old code only checked whether the first element was 'empty' (set to UINT16_MAX) before deciding to clear the buffer, ignoring the second element. This meant the buffer could fail to be cleared when it should have been, potentially leaving stale pulse values and causing incorrect backlight behavior or visual glitches during brightness transitions.

Recommended action

Treat as a functional bug fix with low security impact. Include in normal firmware release testing; verify backlight fade/brightness transitions remain smooth. No urgent security response is indicated by the diff alone, but firmware integrity and supply-chain controls should ensure this patch is included in builds.

Security signals we found

01

Incorrect buffer-clear predicate in DMA backlight driver

02

Stale PWM data element could be transmitted to TPS61062 backlight IC

03

Hardware peripheral driver bug with potential device behavior side effects

04

No explicit security framing or CVE in commit message

Risk score

Why this scored 31/100

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