Skip to content

zephyr

Stack buffer overflow in Grow R502-A fingerprint sensor driver UART RX handler

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

Real-world risk

0.9/ 10Low

Routine

PreliminaryFrom the CVSS vector only · confidence low

CVSS

6.8

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) receives sensor responses in the UART interrupt handler uart_cb_handler(). Once the 9-byte header has arrived, the handler reads the 16-bit package length from the header and uses it as the byte count for further uart_fifo_read() calls into rx_buf.data. It never checks that length against the destination buffer. That buffer is a union r502a_packet on the calling thread's stack, set up by transceive_packet(), and is only CONFIG_R502A_DATA_PKT_SIZE + 12 bytes long (140 bytes by default). A malicious or counterfeit sensor module, or an attacker who tampers with the UART wiring, can reply to any driver command with a header that declares a length of up to 65535 bytes. The ISR then writes that many attacker-supplied bytes past the end of the stack buffer. The existing length check in r502a_validate_rx_packet() runs only after the data has been written, so it does not prevent the overflow. Every sensor transaction is affected, including the ones issued by fps_init() during device initialization. The result is a stack overwrite with attacker-controlled length and content in the calling thread. This can corrupt control data and may lead to arbitrary code execution on the host MCU, which would undermine any function the fingerprint sensor is meant to protect. The fix validates the declared length against CONFIG_R502A_DATA_PKT_SIZE as soon as the header is complete and aborts the reception if it is out of range.

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
ReliabilityReliableDeterministic: injection, logic bug, path traversalFrom the CVSS vector1.00

Threat level T1: Nothing known (× 0.85)

The default for a new disclosure

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

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

How the score works

Exploitation and evidence timeline

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

Weakness

CWE-121

References

Get alerts for zephyr

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