CVE-2026-102963
Use-after-return in getaddrinfo() when a DNS query that followed a CNAME cannot be cancelled
AI summary AI generated
An attacker who can supply DNS responses can corrupt the stack of a Zephyr thread calling getaddrinfo() through a use-after-return after a CNAME-only reply, causing a crash or memory corruption.
Mitigation
- Upgrade zephyr to 4.5.0 or later.
Who should check
- Anyone running zephyrproject zephyr >= 4.4.2, < 4.5.0
Vulnerability facts
- Affected
- zephyrproject zephyr >= 4.4.2, < 4.5.0
- Fixed in
- zephyrproject zephyr 4.5.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 6.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: Low
- Availability impact: High
- CWE
- CWE-416
- Modified
Description
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| zephyrproject zephyr | >= 4.4.2, < 4.5.0 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-102963. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-102963.md Affected: zephyrproject zephyr >= 4.4.2, < 4.5.0 Fixed in: 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.
Technologies
References
Vendor advisories
FAQ
Is CVE-2026-102963 being exploited?
There is no confirmed exploitation: CVE-2026-102963 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.
How serious is CVE-2026-102963?
Medium: CVSS 6.5 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2026-102963?
zephyrproject zephyr >= 4.4.2, < 4.5.0.
Is there a fix for CVE-2026-102963?
Yes. Fixed in zephyrproject zephyr 4.5.0. Upgrade zephyr to 4.5.0 or later.
How do I check if I'm affected by CVE-2026-102963?
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.
More Zephyr RTOS vulnerabilities
See all| Severity | Identifier / vulnerability | Technology | Signals | Age |
|---|---|---|---|---|
| LOW 2.8 | CVE-2026-104928 Kernel object validation bypass in k_thread_stack_space_get syscall verifier with CONFIG_NO_RUNTIME_CHECKS | Zephyr RTOS | ||
| MEDIUM 4.2 | CVE-2026-102962 MCUmgr SMP client accepts responses from any transport, allowing spoofed command results | Zephyr RTOS | ||
| MEDIUM 4.6 | CVE-2026-90592 Out-of-bounds read in it51xxx I2C target FIFO ISR on oversized read transaction | Zephyr RTOS | EPSS 10% | |
| MEDIUM 6.8 | CVE-2026-102960 Stack buffer overflow in Grow R502-A fingerprint sensor driver UART RX handler | Zephyr RTOS | EPSS 21% | |
| MEDIUM 6.4 | CVE-2026-102959 Stack use-after-return on RX timeout in Grow R502-A fingerprint sensor driver | Zephyr RTOS | EPSS 13% |