Skip to main content

Zephyr RTOS CVE-2026-102959

| EUVDEUVD-2026-135785 MEDIUM
Return of Stack Variable Address (CWE-562)
2026-11-25 zephyr
6.4
CVSS 3.1 · Vendor: zephyr
View

Attack ChainAIDerived

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

  1. Access
    Gain physical access to sensor UART
  2. Delivery
    Impersonate module and delay reply past timeout
  3. Exploit
    Send late packet with oversized header length
  4. Execution
    Write device-chosen bytes into reused thread stack
  5. Impact
    Crash 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.

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

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

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

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

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

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).

3.1 AV:P/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:P/AC:H/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
High
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) 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

EPSS Score
0.3%
Top 87% exploitable
Prevalence
Low
niche fingerprint-sensor driver, built only on devices using the R502-A module
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

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

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

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