Skip to content

zephyr

Stack use-after-return on RX timeout in Grow R502-A fingerprint sensor driver

CVE-2026-102959Published 25 Nov 2026, 20:27 UTC

Real-world risk

0.4/ 10Low

Routine

PreliminaryFrom the CVSS vector only · confidence low

CVSS

6.4

scored by the vendor (CNA), CVSS 3.1

In plain words

No plain-language summary yet. The original description is below.

Original description (from zephyr)

The Grow R502-A fingerprint sensor driver (drivers/sensor/grow_r502a/grow_r502a.c) points drv_data->rx_buf.data at an rx_packet buffer on the caller's stack and enables the UART RX interrupt before waiting 1500 ms for a reply. When the wait timed out, transceive_packet() returned -ETIMEDOUT but left the RX interrupt enabled and rx_buf.data still pointing at the caller's buffer. Once the caller's frame has returned, any bytes that arrive late on the UART are written by the interrupt handler uart_cb_handler() through the dangling pointer into stack memory that the thread has since reused. The bytes come from the device on the other end of the UART. An attacker with physical access who replaces or impersonates the fingerprint module can trigger this by delaying a reply past the timeout and then sending a packet. A slow or faulty genuine module can also trigger it by accident. The result is a write of attacker-chosen bytes into a live thread stack. The write length comes from the header of the late packet. Commit 96968fac22b, which landed together with this fix, bounds it to a header plus CONFIG_R502A_DATA_PKT_SIZE bytes; affected releases do not have that bound. This can crash the device and may allow control-flow hijacking, depending on what occupies the reused stack region. The fix disables the RX interrupt, resets the RX semaphore and clears rx_buf.data on timeout, and the interrupt handler now refuses to write when no receive buffer is armed.

Am I affected?

ProductAffected versions (from the sources)Fixed in
zephyrNiche>= 3.7.0, < 4.3.2; >= 4.4.0, < 4.5.04.3.2, 4.5.0

What to do

Update to a fixed version: 4.3.2, 4.5.0.

Why this score

FactorValueEvidence×
ImpactFull compromiseCode execution or full control of the system or applicationFrom the CVSS vector1.00
Attacker positionPhysicalMust touch the deviceFrom the CVSS vector0.10
Privileges neededNoneNo accountFrom the CVSS vector1.00
Victim interactionNoneNothingFrom the CVSS vector1.00
ConfigurationDefaultOut-of-the-box installs are vulnerableFrom the CVSS vector1.00
ReliabilityHardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bugFrom the CVSS vector0.45

Threat level T1: Nothing known (× 0.85)

The default for a new disclosure

EPSS 0.3% chance of exploitation in 30 days (percentile 22), as of 2026-12-02.

The arithmetic
  1. Prerequisites multiplied together0.045
  2. Threat T1: Nothing known0.850
  3. 10 × impact 1 × prerequisites 0.045 × threat 0.850.383
  4. Rounded to one decimal between 0.1 and 100.4

How the score works

Exploitation and evidence timeline

  1. 25 Nov 2026 Published
  2. 2 Dec 2026 Risk 0.4 (cvss fallback)

Weakness

CWE-562

References

Get alerts for zephyr

Free email or text alerts when a vulnerability in zephyr reaches risk 8 or higher. Nothing else.