CVE-2026-102960: Stack buffer overflow in Grow R502-A fingerprint sensor driver UART RX handler

Published Nov 25, 2026
·
Updated

The Grow R502-A fingerprint sensor driver (drivers/sensor/growr502a/growr502a.c) receives sensor responses in the UART interrupt handler uartcbhandler(). 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 uartfiforead() calls into rxbuf.data. It never checks that length against the destination buffer. That buffer is a union r502apacket on the calling thread's stack, set up by transceivepacket(), and is only CONFIGR502ADATAPKTSIZE + 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 r502avalidaterxpacket() 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 fpsinit() 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 CONFIGR502ADATAPKTSIZE as soon as the header is complete and aborts the reception if it is out of range.

Affected Software

0 affected components

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In the UART RX handler, validate the declared package length against CONFIG_R502A_DATA_PKT_SIZE as soon as the 9-byte header is complete, and abort reception if the length is out of range.

Event History

Nov 25, 2026
CVE Published
via MITRE·08:27 PM
Data Sourced
via MITRE·08:27 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed?

Deployments using the Grow R502-A fingerprint sensor driver are exposed during every sensor transaction, including transactions issued during device initialization by fps_init(). The receive buffer is 140 bytes by default, consisting of CONFIG_R502A_DATA_PKT_SIZE plus 12 bytes.

2

What does an attacker need to exploit this?

An attacker needs the ability to control sensor responses, such as through a malicious or counterfeit sensor module or by tampering with the UART wiring. No privileges or user interaction are required according to the supplied vector.

3

Does a malformed packet get rejected before the overwrite occurs?

No. The driver reads the declared 16-bit packet length and uses it for UART FIFO reads without first checking it against the destination buffer size. Packet validation occurs only after attacker-controlled data may already have overwritten the calling thread's stack.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203