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

- **Severity:** MEDIUM 6.8
- **CVSS:** 6.8 (v3.1, CNA) `CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Physical; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.35% (percentile 21, 2026-11-29)
- **CWE:** CWE-121
- **Published:** 2026-11-25T20:27:19.913Z
- **Modified:** 2026-11-25T21:17:16.193Z

> **AI summary (AI-generated, claude-haiku-5-5):** An attacker controlling a fingerprint sensor or UART wiring can send an oversized length header causing a stack buffer overflow in the Zephyr RTOS Grow R502-A sensor driver.

## Who should check

- Anyone running zephyrproject zephyr \>= 3.7.0, \< 4.3.2; \>= 4.4.0, \< 4.5.0

## Description

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.

## Affected and fixed versions

- zephyrproject zephyr: \>= 3.7.0, \< 4.3.2; \>= 4.4.0, \< 4.5.0 (cvelist)

## Technologies

Zephyr RTOS

## Mitigation

- Upgrade zephyr to 4.5.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-102960. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-102960.md
Affected: zephyrproject zephyr >= 3.7.0, < 4.3.2; >= 4.4.0, < 4.5.0
Fixed in: zephyrproject zephyr 4.3.2, zephyrproject zephyr 4.5.0

Steps:
1. Search this machine and project for zephyrproject zephyr: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-102960 being exploited?

There is no confirmed exploitation: CVE-2026-102960 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.35% chance of exploitation in the next 30 days (as of 2026-11-29).

### How serious is CVE-2026-102960?

Medium: CVSS 6.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-102960?

zephyrproject zephyr \>= 3.7.0, \< 4.3.2; \>= 4.4.0, \< 4.5.0.

### Is there a fix for CVE-2026-102960?

Yes. Fixed in zephyrproject zephyr 4.3.2, zephyrproject zephyr 4.5.0. Upgrade zephyr to 4.5.0 or later.

### How do I check if I'm affected by CVE-2026-102960?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-57rq-g4p4-w57g>
- patch: <https://github.com/zephyrproject-rtos/zephyr/commit/96968fac22b4c7249988189349944e8a389fee4a>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-102960>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-102960> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-102960>
