Skip to content

CVE-2026-33630 c-ares : Use-after-free / double-free in c-ares query-completion handling, remotely triggerable via ares_getaddrinfo() over TCP

HighCVSS 7.5 EPSS 0.85%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial
Technology
UbuntuDebianRed Hat

Description

c-ares is an asynchronous resolver library. From ver 1.32.3 until 1.34.7, a use-after-free / double-free in c-ares' query-completion handling. The same flaw — a query's callback being invoked while the query is still linked in the channel's internal lookup structures — is present at multiple points in the resend/finish path (timeout handling, response handling, and query dispatch). If the query, or for ares_getaddrinfo() the owning host_query, is freed as a side effect of that callback, it is then accessed and/or freed a second time. This vulnerability is fixed in ver 1.34.7.

Upgrade path

11 packages: 10 fixed.

PackageAffectedFixed inStatus
alpine/c-ares(Alpine v3.21) < 1.34.8-r0 1.34.8-r0 Fixed
alpine/c-ares(Alpine v3.22) < 1.34.8-r0 1.34.8-r0 Fixed
alpine/c-ares(Alpine v3.23) < 1.34.8-r0 1.34.8-r0 Fixed
alpine/c-ares(Alpine v3.24) < 1.34.8-r0 1.34.8-r0 Fixed
azure linux fluent-bit(Azure Linux 3.0) < 3.1.10-7 3.1.10-7 Fixed
debian/c-ares(Debian 13) < 1.34.9-1~deb13u1; = 1.34.5-1; = 1.34.5-1+deb13u1; = 1.34.6-1 +2 more 1.34.9-1~deb13u1 Fixed
debian/c-ares(Debian 14) < 1.34.7-1; = 1.34.5-1; = 1.34.6-1 1.34.7-1 Fixed
redhat/c-ares(Red Hat enterprise_linux 10.2) < 1.34.6-2.el10_2 1.34.6-2.el10_2 Fixed
redhat/c-ares-main(Red Hat hummingbird 1) < 1.34.7-1.hum1 1.34.7-1.hum1 Fixed
ubuntu/c-ares(Ubuntu 26.04) < 1.34.6-1ubuntu0.1 1.34.6-1ubuntu0.1 Fixed
c-ares = >= 1.32.3, < 1.34.7 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
c-ares = >= 1.32.3, < 1.34.7 No fix listed
redhat/c-ares(Red Hat:enterprise_linux:10.2) < 1.34.6-2.el10_2 1.34.6-2.el10_2
redhat/c-ares-main(Red Hat:hummingbird:1) < 1.34.7-1.hum1 1.34.7-1.hum1
redhat/c-ares(Red Hat:rhel_els:6) All versions No fix listed
alpine/c-ares(Alpine:v3.21) < 1.34.8-r0 1.34.8-r0
alpine/c-ares(Alpine:v3.22) < 1.34.8-r0 1.34.8-r0
alpine/c-ares(Alpine:v3.23) < 1.34.8-r0 1.34.8-r0
alpine/c-ares(Alpine:v3.24) < 1.34.8-r0 1.34.8-r0
ubuntu/c-ares(Ubuntu:26.04) < 1.34.6-1ubuntu0.1 1.34.6-1ubuntu0.1
debian/c-ares(Debian:13) < 1.34.9-1~deb13u1 1.34.9-1~deb13u1
debian/c-ares(Debian:13) = 1.34.5-1 No fix listed
debian/c-ares(Debian:13) = 1.34.5-1+deb13u1 No fix listed
debian/c-ares(Debian:13) = 1.34.6-1 No fix listed
debian/c-ares(Debian:13) = 1.34.7-1 No fix listed
debian/c-ares(Debian:13) = 1.34.8-1 No fix listed
debian/c-ares(Debian:14) < 1.34.7-1 1.34.7-1
debian/c-ares(Debian:14) = 1.34.5-1 No fix listed
debian/c-ares(Debian:14) = 1.34.6-1 No fix listed
azure linux fluent-bit(Azure Linux:3.0) < 3.1.10-7 3.1.10-7

References