Skip to main content

Zephyr RTOS CVE-2026-102960

| EUVDEUVD-2026-135786 MEDIUM
Stack-based Buffer Overflow (CWE-121)
2026-11-25 zephyr
6.8
CVSS 3.1 · Vendor: zephyr
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Substitute malicious/counterfeit sensor or tap UART
  2. Delivery
    Driver issues command, enables RX IRQ
  3. Exploit
    Reply with header declaring oversized length
  4. Execution
    ISR writes attacker bytes past stack buffer
  5. Persist
    Overwrite control data on calling thread
  6. Impact
    Hijack execution on host MCU

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Stack buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires physical attack-surface control of the sensor link: either a malicious/counterfeit R502A-compatible module presented to the host, or physical tampering/MITM on the UART wiring between the MCU and sensor. The device must build in the grow_r502a sensor driver, and no additional feature flag or non-default setting is needed - the vulnerable path runs during fps_init() (fps_verify_password, fps_set_sys_param) at device initialization, so the bug is reachable without any application action. With the default CONFIG_R502A_DATA_PKT_SIZE of 128 (140-byte stack buffer), a declared length above 140 overflows. The principal LIMITING factor is the physical access requirement (AV:P): a trustworthy, genuine sensor on an untampered bus cannot trigger it, which substantially narrows realistic threat actors to those with hardware supply-chain or physical bus access.

Impact

This is a genuine memory-safety defect (CWE-121 stack buffer overflow) but a bounded real-world priority. The CVSS 3.1 vector CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H scores 6.8 (Medium) precisely because the attack vector is Physical (AV:P): exploitation requires a malicious or counterfeit R502A sensor module, or physical tampering with the UART wiring between the host MCU and the sensor. Once that physical precondition is met, however, the remaining conditions are weak - no authentication (PR:N), no user interaction (UI:N), low complexity (AC:L), and full confidentiality/integrity/availability impact via potential arbitrary code execution on the host MCU. No EPSS score is provided in the input and the CVE is not on CISA KEV, so there is no evidence of widespread or automated exploitation; the vuln.today Decision label is 'this_month' rather than act_now/emergency, consistent with a physically-gated flaw rather than a remotely wormable one. The reporter supplied a reduced standalone ASan reproduction but explicitly states it was not reproduced on physical R502A hardware, so working weaponized exploit code against a real device is not confirmed. Net: a real, patch-worthy bug that undermines the trust boundary of a security sensor, but its physical-access gating keeps it below network-exploitable critical issues in triage ranking.

Exploit ScenarioDerived

An attacker who can substitute a counterfeit R502A fingerprint module or tap the UART lines between the sensor and the host MCU replies to a routine driver command with a 9-byte header whose 16-bit length field declares up to 65535 bytes, then streams that many attacker-chosen bytes. The UART ISR writes the oversized body past the end of the 140-byte stack buffer before any length validation runs, corrupting the calling thread's stack and potentially achieving code execution on the MCU. A reduced AddressSanitizer proof-of-concept is included in the advisory, but it was not demonstrated on physical hardware.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 25, 2026

Stack buffer overflow in Zephyr's Grow R502-A fingerprint sensor driver allows a malicious, counterfeit, or bus-tampering UART peer to write attacker-controlled bytes far past a 140-byte stack packet buffer in the calling thread, potentially achieving code execution on the host MCU and subverting the very biometric function the sensor is meant to protect. The flaw affects Zephyr builds that include drivers/sensor/grow_r502a from 3.7.0 onward (>= 3.7.0, < 4.3.2 and >= 4.4.0, < 4.5.0) and is reachable during fps_init() with no application action, since the driver's initialization transactions already exercise the vulnerable receive path. The assessed vector is CVSS:3.1/AV:P/AC:L/PR:N/UI:N with high confidentiality, integrity, and availability impact; the physical access requirement is the dominant limiting factor, and no public exploit code or CISA KEV entry was identified at time of analysis, though the reporter validated the mechanism with a reduced AddressSanitizer harness (not on physical R502A hardware).

RemediationAI

Vendor-released patch: fixed in Zephyr 4.3.2 and 4.5.0 - upgrade to 4.3.2 on the 4.3 release line or to 4.5.0 on the 4.5 line, since release branches that have not taken the backport remain affected. The fix is commit 96968fac22b4c7249988189349944e8a389fee4a, which bounds the header-declared length to [R502A_CHECKSUM_LEN, CONFIG_R502A_DATA_PKT_SIZE] as soon as the 9-byte header is complete and aborts reception otherwise; the advisory is at https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-57rq-g4p4-w57g. If the patch cannot be applied, the exposure is limited to designs where the R502A link is physically untrusted (counterfeit or swapped sensor modules, or tampering with the UART wiring between MCU and sensor), so sourcing genuine modules and protecting the bus from physical access reduces but does not remove the risk, and excluding the grow_r502a driver from the build removes the vulnerable path entirely at the cost of the fingerprint functionality; the advisory documents no software workaround beyond the fixed release.

Affected VersionsENISA

Zephyr 3.7.0 <4.3.2
Zephyr 4.4.0 <4.5.0

Affected Packages

euvd zephyr fix: 4.3.2, 4.5.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Zephyr's grow_r502a driver implements an interrupt-driven UART receive state machine for the Grow R502-A fingerprint module. transceive_packet() points drv_data->rx_buf.data at a caller-owned union r502a_packet on the thread stack and arms RX interrupts; drv_data->pkt_len is initialized to the fixed 9-byte R502A_HEADER_LEN so the first uart_fifo_read() consumes only the header. uart_cb_handler() then parses the 16-bit big-endian package length from header offset R502A_PKG_LEN_IDX (bytes 7-8) and loops, using that untrusted value directly as the byte count for the next uart_fifo_read() into rx_buf.data at offset 9. The destination, union r502a_packet, is only R502A_MAX_BUF_SIZE = CONFIG_R502A_DATA_PKT_SIZE + R502A_COMMON_ACK_LEN bytes (128 + 12 = 140 by default per Kconfig), while the header field can declare up to 65535 bytes. The bound check in r502a_validate_rx_packet() (packet_len must be within [R502A_CHECKSUM_LEN, CONFIG_R502A_DATA_PKT_SIZE]) executes only after the ISR has already committed the oversized write, so it cannot prevent the overflow. This is a classic CWE-121 stack-based buffer overflow rooted in missing validation of a length field received from an untrusted external device before it is used as a copy size; the regression was introduced by commit b63fe1c3687, which replaced the original R502A_BUF_SIZE - offset bound with the header-derived pkt_len, and first shipped in v3.7.0. The upstream fix adds an immediate check in uart_cb_handler() that aborts reception (disabling RX IRQ and releasing the semaphore) when the declared length falls outside [R502A_CHECKSUM_LEN, CONFIG_R502A_DATA_PKT_SIZE], so the maximum subsequent write of 9 + DATA_PKT_SIZE fits the buffer.

Know when Zephyr gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (zephyr) PRIMARY 6.8 MEDIUM
AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 6.8 MEDIUM

Attacker needs physical control of the sensor/UART link (AV:P) but no auth or interaction; the oversized-length reply is trivially sent (AC:L) and yields potential MCU code execution (C/I/A:H).

3.1 AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:P/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (zephyr).

CVSS VectorVendor: zephyr

Attack Vector
Physical
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 79% exploitable
Prevalence
Low
optional Zephyr sensor driver, only on devices with R502A fingerprint hardware
Data Quality
3 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in Zephyr

View all
CVE-2023-4260 CRITICAL POC
10.0 Sep 27

Potential off-by-one buffer overflow vulnerability in the Zephyr fuse file system. Rated critical severity (CVSS 10.0),

CVE-2026-1678 CRITICAL POC
9.8 Mar 05

An out-of-bounds write in the Zephyr RTOS DNS resolver (dns_unpack_name()) lets a crafted DNS response corrupt memory on

CVE-2023-5055 CRITICAL POC
9.8 Nov 21

Possible variant of CVE-2021-3434 in function le_ecred_reconf_req. Rated critical severity (CVSS 9.8), this vulnerabilit

CVE-2023-4257 CRITICAL POC
9.8 Oct 13

Unchecked user input length in /subsys/net/l2/wifi/wifi_shell.c can cause buffer overflows. Rated critical severity (CVS

CVE-2023-3725 CRITICAL POC
9.8 Oct 06

Potential buffer overflow vulnerability in the Zephyr CAN bus subsystem. Rated critical severity (CVSS 9.8), this vulner

CVE-2021-3323 CRITICAL POC
9.8 Oct 12

Integer Underflow in 6LoWPAN IPHC Header Uncompression in Zephyr. Rated critical severity (CVSS 9.8), this vulnerability

CVE-2021-3625 CRITICAL POC
9.8 Oct 05

Buffer overflow in Zephyr USB DFU DNLOAD. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable

CVE-2021-3319 CRITICAL POC
9.8 Oct 05

DOS: Incorrect 802154 Frame Validation for Omitted Source / Dest Addresses. Rated critical severity (CVSS 9.8), this vul

CVE-2018-1000800 CRITICAL POC
9.8 Sep 06

zephyr-rtos version 1.12.0 contains a NULL base pointer reference vulnerability in sys_ring_buf_put(), sys_ring_buf_get(

CVE-2023-4264 CRITICAL POC
9.6 Sep 27

Potential buffer overflow vulnerabilities n the Zephyr Bluetooth subsystem. Rated critical severity (CVSS 9.6), this vul

CVE-2024-1638 CRITICAL POC
9.1 Feb 19

The documentation specifies that the BT_GATT_PERM_READ_LESC and BT_GATT_PERM_WRITE_LESC defines for a Bluetooth characte

CVE-2023-5753 HIGH POC
8.8 Oct 25

Potential buffer overflows in the Bluetooth subsystem due to asserts being disabled in /subsys/bluetooth/host/hci_core.c

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy