CVE-2026-102963: Use-after-return in getaddrinfo() when a DNS query that followed a CNAME cannot be cancelled

Published Nov 27, 2026
·
Updated

dnsresolvecancelwithname() 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 queryhash 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.

zsockgetaddrinfo() (execquery() in subsys/net/lib/sockets/getaddrinfo.c) passes a pointer to its stack-local aistate as the resolver callback context. When its semaphore wait times out, it calls dnscanceladdrinfowithname(), 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, dnsresolvecb() writes the status and calls ksemgive() on the dead stack frame. If the attacker answers the alias query instead, the callback copies attacker-supplied address data through a stale aiarr 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 Software

1 affected component
Zephyr Zephyr

Event History

Nov 27, 2026
CVE Published
via MITRE·03:42 PM
Data Sourced
via MITRE·03:42 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:18 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which devices are exposed to this issue?

A device is exposed when it resolves a name through getaddrinfo() and an attacker can supply DNS responses for that lookup. This includes environments using a malicious or compromised DNS server, with an on-path attacker, or using mDNS/LLMNR where a host on the local link can respond.

2

Does exploitation require credentials or user interaction?

No. The supplied severity vector indicates no privileges and no user interaction are required, but exploitation has high attack complexity because the attacker must provide a CNAME-only response at the required point in the resolution flow.

3

What security impact is indicated?

The supplied vector indicates high availability impact and low integrity impact, with no confidentiality impact. The affected resolution can remain pending after getaddrinfo() returns, leaving a later resolver callback associated with stack-local state that is no longer valid.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203