Use-after-free in c-ares - CVE-2026-33630

 

Use-after-free in c-ares - CVE-2026-33630

Published: July 7, 2026


Vulnerability identifier: #VU137036
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2026-33630
CWE-ID: CWE-416
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: c-ares.haxx.se
Affected software:
c-ares

Detailed vulnerability description

The vulnerability allows a remote attacker to cause a denial of service.

The vulnerability exists due to use-after-free in c-ares query-completion handling for ares_getaddrinfo() when processing crafted DNS responses over TCP. A remote attacker can send crafted DNS responses that trigger re-entrant completion handling to cause a denial of service.

An attacker can force the client to retry over TCP by setting the truncation bit in a UDP response, and the issue was observed when a malicious or on-path DNS server returned a FORMERR response without an OPT record, followed by a second response with the same query id and a connection reset.


How to mitigate CVE-2026-33630

Install security update from vendor's website.

Sources