
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-33630 is a use-after-free / double-free vulnerability in c-ares' query-completion handling, remotely triggerable via ares_getaddrinfo() over TCP. It affects c-ares versions greater than 1.32.3 up through 1.34.6, and was fixed in version 1.34.7. The vulnerability was published on July 6–7, 2026, and disclosed via the oss-security mailing list and a GitHub Security Advisory. It carries a CVSS v3.1 base score of 7.5 (High) (GitHub Advisory, Red Hat Bugzilla).
The root cause is a use-after-free / double-free (CWE-416, CWE-415) in c-ares' internal query-completion path, where a query's callback is invoked while the query is still linked in the channel's internal lookup structures. The flaw exists at multiple points in the resend/finish path — including timeout handling, response handling, and query dispatch. The remote exploitation path requires no application cooperation: an attacker acting as a malicious or on-path DNS server first forces the client onto TCP by setting the truncation (TC) bit in a UDP response, then returns a FORMERR without an OPT record (forcing an EDNS-downgrade retry), followed by a second response with the same query ID, and finally resets the TCP connection — causing ares_getaddrinfo()'s internal completion handler to re-enter and access a host_query that has already been freed. This was reproduced deterministically under AddressSanitizer against v1.34.6. The same pattern was previously partially addressed under CVE-2025-31498; CVE-2026-33630 covers the remaining occurrences (GitHub Advisory, oss-security).
Successful exploitation results in memory corruption and a crash of the affected application, causing a denial of service. Because c-ares is widely used as a DNS resolution library in many applications and runtimes, a crash can disrupt any service relying on it for name resolution. While reliable code execution has not been demonstrated, the use-after-free condition may have further impact depending on the memory allocator and build configuration (GitHub Advisory, Red Hat Bugzilla).
ares_getaddrinfo()'s completion handler to access the already-freed host_query structure.heap-use-after-free in ares_getaddrinfo() completion handler if the application is built with sanitizers.Upgrade to c-ares version 1.34.7 or later, which fully resolves the vulnerability by routing all deferred retries and completions through a single iterative drain and fully detaching each query from lookup structures before invoking its callback. As a partial application-level workaround, avoid calling ares_cancel() from within a query callback; however, this does not address the remotely-triggered path. For the remote path, prefer trusted DNS resolvers reached over a trusted transport (e.g., DNS-over-TLS), and implement network segmentation to restrict DNS traffic to known-good servers. Red Hat Enterprise Linux 10 users can apply RHSA-2026:42096; Fedora and Amazon Linux 2023 updates are also available (GitHub Advisory, Red Hat Errata, oss-security).
The vulnerability was reported independently by multiple researchers and disclosed by c-ares maintainer Brad House via the oss-security mailing list alongside the 1.34.7 release. The Slackware project issued SSA-2026-187-01 addressing the issue, and Fedora and Amazon Linux 2023 also released updates. The disclosure noted a relationship to CVE-2025-31498, which had previously addressed the same pattern at one call site, indicating ongoing security hardening of the c-ares query-completion path (oss-security, GitHub Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."