Description
A flaw was found in c-ares. A use-after-free / double-free vulnerability exists in the query-completion handling path, where a query callback is invoked while the query is still linked in internal lookup structures. A remote attacker can exploit this via ares_getaddrinfo() over TCP by sending crafted DNS responses that force an EDNS-downgrade retry followed by a connection reset, causing the internal completion handler to access freed memory. This leads to memory corruption and a crash (denial of service), with potential for further impact depending on the allocator and build configuration.
Published: n/a
Score: 7.5 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A use‑after‑free / double‑free condition (CWE‑416) exists in the query‑completion handling path of c‑ares, a widely used DNS resolution library. When a query callback is invoked while the query is still linked in internal lookup structures, the library may dereference freed memory, causing memory corruption and application crash. Depending on the memory allocator and build settings, this could allow an attacker to trigger more severe exploitation beyond denial of service.

Affected Systems

The affected product is the c‑ares library. No specific version information is provided in the advisory, so all releases of c‑ares that include the vulnerable query‑completion handling code are considered at risk.

Risk and Exploitability

The flaw is remotely exploitable via the ares_getaddrinfo() function over TCP. An attacker can send crafted DNS responses that force an EDNS‑downgrade retry and then reset the connection, which triggers the internal completion handler to access memory that has already been freed. This memory corruption results in a crash, i.e., denial of service. The CVSS score of 7.5 indicates a high level of risk. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog. The impact is limited to denial of service unless the allocator or build configuration allows the memory corruption to lead to more serious exploitation.

Generated by OpenCVE AI on July 28, 2026 at 13:23 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to a c‑ares release that includes the patch for the use‑after‑free condition.
  • If an immediate upgrade is not possible, build or configure c‑ares with a hardened allocator and disable EDNS or the query‑completion path as a temporary safeguard.
  • Apply network filtering to block anomalous DNS responses that could trigger EDNS downgrade retries or unexpected connection resets, mitigating exploitation until the patch can be deployed.

Generated by OpenCVE AI on July 28, 2026 at 13:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 09 Jul 2026 13:45:00 +0000

Type Values Removed Values Added
First Time appeared C-ares
C-ares c-ares
Vendors & Products C-ares
C-ares c-ares

Thu, 09 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
Description A flaw was found in c-ares. A use-after-free / double-free vulnerability exists in the query-completion handling path, where a query callback is invoked while the query is still linked in internal lookup structures. A remote attacker can exploit this via ares_getaddrinfo() over TCP by sending crafted DNS responses that force an EDNS-downgrade retry followed by a connection reset, causing the internal completion handler to access freed memory. This leads to memory corruption and a crash (denial of service), with potential for further impact depending on the allocator and build configuration.
Title c-ares: c-ares: Use-after-free / double-free in query-completion handling
Weaknesses CWE-416
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Important


cve-icon MITRE

No data.

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

Severity : Important

Publid Date: 2026-07-07T00:00:00Z

Links: CVE-2026-33630 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-07-28T13:30:06Z

Weaknesses