Skip to main content

Zephyr RTOS EUVDEUVD-2026-137455

| CVE-2026-102963 MEDIUM
Use After Free (CWE-416)
2026-11-27 zephyr
6.5
CVSS 3.1 · Vendor: zephyr
View

Attack ChainAIDerived

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

  1. Access
    Gain DNS response control on link
  2. Delivery
    Device resolves name via getaddrinfo()
  3. Exploit
    Delay CNAME-only reply past timeout
  4. Execution
    Cancel fails, query orphaned on dead stack
  5. Persist
    Answer alias with crafted address data
  6. Impact
    Stale pointer write corrupts memory or faults (DoS)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

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

Exploitation Conditions

Requires that the Zephyr device actually perform a getaddrinfo() name resolution AND that the attacker can supply DNS responses for that lookup - a malicious or compromised DNS server, an on-path attacker, or any host on the same link for mDNS/LLMNR. The resolved name must produce a CNAME-only reply (triggering the resolver's CNAME re-query), and that reply must arrive more than about 100 ms after the original query so the getaddrinfo() semaphore wait (timeout_ms + 100) expires first, leaving the cancel to fail with -ENOENT. Memory corruption (versus a plain fault) additionally requires the attacker to answer the subsequent alias query with crafted address data. Limiting factors: only Zephyr versions >= 4.4.2 and < 4.5.0 are affected (the defect needs both the CNAME-slot-live change 38d9c632d69 and the name-qualified cancel cd27da58eed; v4.3 and v3.7 are not affected), and the ~100 ms timing race (reflected as AC:H) constrains reliability for a remote attacker without on-path control. No authentication or user interaction is required (PR:N/UI:N).

Impact

Signals point to a genuine but moderate-priority issue rather than an emergency. The CVSS 3.1 vector (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H, base 6.5) shows a network, unauthenticated flaw whose severity is held down by AC:H - and here the high complexity is substantiated by the evidence, not assumed: exploitation hinges on a timing race in which a CNAME-only DNS reply must arrive more than ~100 ms after the query so getaddrinfo()'s semaphore wait expires before the resolver cancels it. No EPSS score, no CISA KEV listing, and no public exploit were provided in the input, so there is no public exploit identified at time of analysis and no evidence of active exploitation; these absences are consistent with a newly disclosed embargoed advisory (embargo 2026-11-27) rather than proof of low risk. The vendor's own priority signal (vuln.today Decision label 'this_month') aligns with the medium CVSS and the absence of KEV/EPSS pressure: schedule the fix within the normal monthly patch cycle, not as an out-of-band emergency. The most serious realistic outcome is the A:H denial of service (kernel fault) with potential stack/memory corruption (I:L) if the attacker answers the orphaned alias query; weaponizing the corruption into code execution is not demonstrated in the sources. Scope is further limited to the narrow affected window (>= 4.4.2, < 4.5.0): the defect needs both commit 38d9c632d69 (slot kept live across CNAME re-query) and the name-qualified cancel from cd27da58eed, so v4.3 and v3.7 branches are explicitly not affected.

Exploit ScenarioDerived

A Zephyr device performs a normal getaddrinfo() lookup for a name an attacker can answer - via a malicious or compromised DNS server, an on-path position, or any host on the local link for mDNS/LLMNR. The attacker returns a CNAME-only reply deliberately delayed past getaddrinfo()'s ~100 ms wait margin so the cancel silently fails and the function returns, then answers the follow-up alias query with crafted address data that the resolver callback copies through the now-stale stack pointer. No public exploit code is identified at time of analysis, but the authors assess the race as reliably triggerable by anyone who can supply DNS responses.

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

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

Alert me

AnalysisAIv1 – Nov 27, 2026

Use-after-return in Zephyr's zsock_getaddrinfo() lets a party that can supply DNS answers leave a resolver callback pointing at a dead stack frame, producing a kernel fault (denial of service) or memory corruption in the calling thread. The flaw exists because the resolver keeps a query slot alive across CNAME hops and rewrites its query_hash with the alias name, so the name-qualified cancel issued when the getaddrinfo() semaphore wait expires (timeout_ms + 100) fails with -ENOENT; a CNAME-only reply landing more than about 100 ms after the original query opens that window reliably, and answering the later alias query with crafted address data drives the callback through a stale ai_arr pointer. Only Zephyr releases from 4.4.2 up to but excluding 4.5.0 are affected (the v4.3 and v3.7 branches are not), no authentication or user interaction is needed (CVSS PR:N/UI:N) and exploitation requires the device to resolve a name plus attacker-controlled DNS responses, with the roughly 100 ms race reflected as AC:H. No public exploit identified at time of analysis; a vendor patch is available and the issue is fixed in 4.5.0.

RemediationAI

Vendor-released patch: fixed in Zephyr 4.5.0 per GHSA-j577-282h-9jjr, with the main-branch fix in commit 50a1257c045af73bc3e00df92728ede68627ffe8 (pull request #120194, merged) and a merged v4.4-branch backport in pull request #121186 (https://github.com/zephyrproject-rtos/zephyr/pull/121186). Release lines that have not taken the backport remain affected, so devices on 4.4.2 through 4.4.x must either move to 4.5.0 or pick up the v4.4-branch backport; v4.3-branch and v3.7-branch users are not affected by this CVE according to the advisory. The advisory documents no compensating control short of the fix - updating to a patched revision is the complete remediation - and because the trigger is a normal getaddrinfo() name resolution against attacker-controlled DNS, mDNS or LLMNR responses, there is no configuration toggle described in the available sources that removes exposure while the vulnerable getaddrinfo cancellation logic remains in place.

Affected VersionsENISA

Zephyr 4.4.2 <4.5.0

Affected Packages

euvd zephyr fix: 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 defect is a CWE-416 use-after-free, specifically a use-after-return of a stack object, rooted in the interaction between two Zephyr subsystems: the DNS resolver (subsys/net/lib/dns/resolve.c) and the sockets getaddrinfo implementation (subsys/net/lib/sockets/getaddrinfo.c). exec_query() issues a DNS query with a pointer to its stack-local ai_state as the resolver callback context and waits on state->sem for timeout_ms + 100; when the wait times out it calls dns_cancel_addr_info_with_name(), ignores the return value and returns, leaving ai_state dangling. dns_resolve_cb() later writes state->status, calls k_sem_give(&state->sem) and memcpy()s address data into state->ai_arr[state->idx] - all through pointers read from the reused stack frame. The cancellation is the pivot: dns_resolve_cancel_with_name() computes a hash of the caller's original name and matches it against the slot's live query_hash, but after a CNAME-only reply the dispatcher_cb() re-queries the alias (up to CONFIG_DNS_RESOLVER_ADDITIONAL_QUERIES), the send path at resolve.c:2256 overwrites query_hash with the alias hash, and dns_write() reschedules the resolver timer with the full per-query timeout. The cancel therefore misses, the slot stays pending, and the resolver timeout outlives getaddrinfo()'s wait. The regression was introduced by cd27da58eed (getaddrinfo switched to name-qualified cancellation; backported to v4.4.2 as d9e6f47b06a) combined with 38d9c632d69 (v4.4.0, which keeps the query slot live across a CNAME re-query); the v4.3 backport 9d85f6e02bf is not exploitable because v4.3 lacks 38d9c632d69 and still releases the slot on a CNAME reply. The upstream fix 50a1257c045af73bc3e00df92728ede68627ffe8 adds orig_query_hash to struct dns_resolve_context, records it after the initial send, and cancels through get_slot_by_id_and_orig_hash() so the match survives CNAME aliasing.

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.5 MEDIUM
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H
vuln.today AI 6.5 MEDIUM

AV:N remote via DNS responses; AC:H for the ~100 ms CNAME timing race the advisory documents; PR:N/UI:N as the device only needs to perform a lookup; A:H for the kernel fault and I:L for stale-pointer memory corruption, C:N as no disclosure results.

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

Primary rating from Vendor (zephyr).

CVSS VectorVendor: zephyr

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

DescriptionCVE.org

dns_resolve_cancel_with_name() in subsys/net/lib/dns/resolve.c looks up the pending query to cancel by DNS id plus a hash of the name the caller originally asked for. When a reply contains only a CNAME, the resolver sends a new query for the alias and overwrites the slot's query_hash with the hash of the alias name. After one or more CNAME hops, cancelling by the original name silently fails with -ENOENT and the query stays pending.

zsock_getaddrinfo() (exec_query() in subsys/net/lib/sockets/getaddrinfo.c) passes a pointer to its stack-local ai_state as the resolver callback context. When its semaphore wait times out, it calls dns_cancel_addr_info_with_name(), ignores the result, and returns. The CNAME re-query restarts the resolver timer, so a CNAME-only response that arrives more than about 100 ms after the query lets the getaddrinfo() wait expire first. The cancel then fails and getaddrinfo() returns. An attacker who can supply DNS responses can trigger this reliably: a malicious or compromised DNS server, an on-path attacker, or any host on the link for mDNS/LLMNR lookups. The device only has to resolve a name with getaddrinfo().

When the orphaned query later times out, dns_resolve_cb() writes the status and calls k_sem_give() on the dead stack frame. If the attacker answers the alias query instead, the callback copies attacker-supplied address data through a stale ai_arr pointer read from the reused stack. The result is a kernel fault (denial of service) or memory corruption in the calling thread's stack and whatever memory the stale pointer references.

Threat Intelligence Overview

EPSS Score
0.4%
Top 76% exploitable
Prevalence
Medium
popular embedded/IoT RTOS, widely used but not ubiquitous like desktop/server OS
Social Media
1
Sightings
Data Quality
4 sources
Confidence: Medium

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.4%
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
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
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

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.

Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

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