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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- MSRC Security Update Guide vendor-advisory
- Security Update patch
- https://github.com/c-ares/c-ares/security/advisories/GHSA-6wfj-rwm7-3542
- https://github.com/c-ares/c-ares/pull/1237
- https://github.com/c-ares/c-ares/commit/1fa3b86a0b8d18fe7b60f3228a01d770feb026bc
- https://github.com/c-ares/c-ares/commit/d823199b688052dcdc1646f2ab4cb8c16b1c644a
- https://github.com/c-ares/c-ares/releases/tag/v1.34.7
- Red Hat CVE page mitigation vendor-advisory
- RHSA-2026:42096 patch vendor-advisory
- RHSA-2026:36192 patch vendor-advisory
- Red Hat Bugzilla 2497686 issue-tracking
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-33630 vendor-advisory
- security.alpinelinux.org vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-8844-1 vendor-advisory
- ENISA EUVD EUVD-2026-70664 third-party-advisory