Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain physical access to sensor UART
-
DeliveryImpersonate module and delay reply past timeout
-
ExploitSend late packet with oversized header length
-
ExecutionWrite device-chosen bytes into reused thread stack
-
ImpactCrash device or hijack control flow
Vulnerability Assessment
| Weakness |
CWE
|
| Exploitation Conditions | Exploitation requires: (1) a build that includes the grow_r502a sensor driver on an affected release (3.7.0 through 4.3.1, or 4.4.0 through 4.4.x); (2) physical access to the UART link so the attacker can replace or impersonate the R502-A fingerprint module; (3) forcing the driver's transceive_packet() to time out by withholding the reply beyond the 1500 ms wait; and (4) then sending a late packet after the caller's stack frame has returned and been reused. Limiting factors that reduce realistic risk: physical access is mandatory (AV:P), no authentication is bypassed but none is needed (PR:N), the outcome beyond a crash depends on what live data occupies the reused stack region, and successful control-flow hijacking depends on the high-complexity timing window (AC:H). A slow or faulty genuine module can trigger the same write accidentally. |
| Impact | This is a genuine memory-safety defect (CWE-562, stack use-after-return giving a device-controlled write into a live thread stack) but the real-world risk is bounded by the access model rather than the impact. The provided CVSS 3.1 vector (AV:P/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H, score 6.4 Medium) requires physical access to the UART link between the MCU and the fingerprint module and a high-complexity timing condition - the attacker must delay the module's reply past the 1500 ms timeout and then send a late packet after the caller's frame has returned and the stack has been reused. No EPSS score, no CISA KEV listing, and no PoC reference are present in the input, and the vuln.today Decision label is 'this_month' (not act_now/emergency), all of which are consistent with a serious-but-not-urgent, non-mass-exploitable issue. The C:H/I:H/A:H impact reflects a worst case (control-flow hijacking 'depending on what occupies the reused stack region') that the advisory itself qualifies as conditional; the most reliable outcome is a device crash. EPSS is absent rather than low, so exploitation-probability cannot be compared directly - treat this as targeted-physical risk, prioritized for routine patching, not emergency response. |
| Exploit ScenarioDerived | An attacker with physical access to a Zephyr device using the Grow R502-A sensor replaces or impersonates the module on the UART, deliberately withholds a reply until the driver's 1500 ms wait times out, then sends a crafted packet whose header specifies an oversized length. Because the pre-fix timeout path leaves the RX interrupt armed and rx_buf.data pointing at the now-returned caller's stack frame, the interrupt handler writes attacker-chosen bytes into reused stack memory, crashing the device or potentially hijacking control flow. No public exploit identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 25, 2026
A stack use-after-return in the Zephyr RTOS Grow R502-A fingerprint sensor driver (drivers/sensor/grow_r502a) lets a device on the other end of the UART write device-chosen bytes into a live thread stack, crashing the target and potentially hijacking control flow depending on what occupies the reused stack region. Zephyr releases from 3.7.0 up to (but not including) 4.3.2, and 4.4.0 up to (but not including) 4.5.0, are affected when built with the grow_r502a driver; the defect is only reachable with physical access to the UART link, because the attacker must be able to replace or impersonate the fingerprint module, withhold a reply past the driver's 1500 ms timeout, and then send a late packet - the CVSS vector reflects this (AV:P/AC:H) with high confidentiality and integrity impact once triggered. No public exploit code has been identified at time of analysis and the issue is not in CISA KEV; a slow or faulty genuine module can also trip the bug accidentally.
RemediationAI
Vendor-released patch: Zephyr 4.3.2 and 4.5.0 fix this, delivered via PR #118782 (commit bd936c30d86fe98682c481e2d953157c223b774a) on main and backported through PR #121242 to v4.4-branch, PR #121241 to v4.3-branch and PR #121240 to v3.7-branch; the advisory is at https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-4j4w-72jr-q9g2. Upgrading to 4.3.2 or 4.5.0 (or pulling the corresponding branch backport) is the only complete fix described by the vendor; the patch itself disables the RX interrupt, resets the RX semaphore and clears rx_buf.data on timeout, and makes the interrupt handler drop data when no receive buffer is armed. Commit 96968fac22b, which lands in the same releases, additionally bounds the late-packet write length to a header plus CONFIG_R502A_DATA_PKT_SIZE (128 bytes by default), so releases carrying only one of the two changes should not be considered fully remediated. No separate vendor workaround is documented; because exploitation requires physical access to the UART link between the SoC and the fingerprint module, restricting physical and electrical access to that interface limits exposure, but it does not remove the defect.
Affected VersionsENISA
Affected Packages
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
The root cause is CWE-562 (return of stack address): transceive_packet() in drivers/sensor/grow_r502a/grow_r502a.c stores a pointer to the caller-owned union r502a_packet rx_packet - a stack local at roughly twenty call sites such as fps_set_sys_param() - into the long-lived drv_data->rx_buf.data, then enables the UART RX interrupt before blocking for up to 1500 ms on a reply semaphore. On timeout the function returned -ETIMEDOUT without disabling the RX IRQ, resetting the semaphore, or clearing rx_buf.data, so the interrupt handler uart_cb_handler() kept a dangling pointer into a frame that had already returned and been reused by the thread. Any late bytes read from the UART FIFO are then copied to &rx_buf.data[offset] for a length taken from the late packet's own header, so both the content and the pre-fix length are controlled by the far-end device; commit 96968fac22b, shipped alongside the fix, bounds the body to a header plus CONFIG_R502A_DATA_PKT_SIZE (default 128 bytes), while affected releases have no such bound. The driver dates this regression to commit b63fe1c3687 ('drivers: sensor: grow_r502a: modified Tx and Rx data handling'), first released in v3.7.0-rc1; v3.6.0 waited with K_FOREVER and had no timeout return path. The fix (commit bd936c30d86fe98682c481e2d953157c223b774a) disables the RX interrupt, resets uart_rx_sem and clears rx_buf.data/len on the timeout path, and makes uart_cb_handler() refuse to write and disable RX when no receive buffer is armed.
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
AV:P/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Attacker needs physical UART access (AV:P) and must win the post-timeout stack-reuse timing window (AC:H); no auth or interaction needed, and the stack write can enable code execution (C/I/A:H).
Primary rating from Vendor (zephyr).
CVSS VectorVendor: zephyr
DescriptionCVE.org
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.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Potential off-by-one buffer overflow vulnerability in the Zephyr fuse file system. Rated critical severity (CVSS 10.0),
An out-of-bounds write in the Zephyr RTOS DNS resolver (dns_unpack_name()) lets a crafted DNS response corrupt memory on
Possible variant of CVE-2021-3434 in function le_ecred_reconf_req. Rated critical severity (CVSS 9.8), this vulnerabilit
Unchecked user input length in /subsys/net/l2/wifi/wifi_shell.c can cause buffer overflows. Rated critical severity (CVS
Potential buffer overflow vulnerability in the Zephyr CAN bus subsystem. Rated critical severity (CVSS 9.8), this vulner
Integer Underflow in 6LoWPAN IPHC Header Uncompression in Zephyr. Rated critical severity (CVSS 9.8), this vulnerability
Buffer overflow in Zephyr USB DFU DNLOAD. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable
DOS: Incorrect 802154 Frame Validation for Omitted Source / Dest Addresses. Rated critical severity (CVSS 9.8), this vul
zephyr-rtos version 1.12.0 contains a NULL base pointer reference vulnerability in sys_ring_buf_put(), sys_ring_buf_get(
Potential buffer overflow vulnerabilities n the Zephyr Bluetooth subsystem. Rated critical severity (CVSS 9.6), this vul
The documentation specifies that the BT_GATT_PERM_READ_LESC and BT_GATT_PERM_WRITE_LESC defines for a Bluetooth characte
Potential buffer overflows in the Bluetooth subsystem due to asserts being disabled in /subsys/bluetooth/host/hci_core.c
EUVD-2026-135785
NVD
CVE.org
EPSS
GitHub
Exploit-DB