CVE-2026-69186c-ares: Memory-amplification denial of service via unvalidated DNS header record counts
c-ares is an asynchronous resolver library. Prior to 1.34.7, ares_dns_parse() trusts the attacker-controlled ANCOUNT, NSCOUNT, and ARCOUNT fields before confirming that the DNS response contains enough bytes for the claimed records. Because process_answer() invokes parsing before transaction ID and question validation, a malicious DNS response can cause ares_dns_record_rr_prealloc() and ares_array_set_size() to reserve disproportionate heap memory for a tiny message. Repeated responses create large allocation and release cycles that can degrade or deny name resolution, without causing memory corruption or information disclosure. This issue is fixed in version 1.34.7.
What to do
Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | c-ares | Fixed | 1.34.6-1ubuntu0.2 | UBUNTU-CVE-2026-69186 |
| Ubuntu 24.04 | c-ares | Fixed | 1.27.0-1.0ubuntu1.1 | UBUNTU-CVE-2026-69186 |
| Ubuntu 22.04 | c-ares | Not affected vulnerable_code_not_present | ||
| Debian 14 | c-ares | Fixed | 1.34.7-1 | DEBIAN-CVE-2026-69186 |
| Debian 13 | c-ares | Fixed | 1.34.9-1~deb13u1 | DEBIAN-CVE-2026-69186 |
| Red Hat Enterprise Linux 10 | c-ares | Fixed | 0:1.34.6-5.el10_3.2 | RHSA-2026:98629 |
| Red Hat Enterprise Linux 10 | c-ares-devel | Fixed | 0:1.34.6-5.el10_3.2 | RHSA-2026:98629 |
| Red Hat Enterprise Linux 10 | nodejs | Not affected | ||
| Red Hat Enterprise Linux 10 | nodejs-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | nodejs-docs | Not affected | ||
| Red Hat Enterprise Linux 10 | nodejs-full-i18n | Not affected | ||
| Red Hat Enterprise Linux 10 | nodejs-libs | Not affected | ||
| Red Hat Enterprise Linux 10 | nodejs-npm | Not affected | ||
| Red Hat Enterprise Linux 10 | nodejs22 | Not affected | ||
| Red Hat Enterprise Linux 9 | c-ares | Not affected | ||
| Red Hat Enterprise Linux 9 | c-ares-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | nodejs | Not affected | ||
| Red Hat Enterprise Linux 9 | nodejs-docs | Not affected | ||
| Red Hat Enterprise Linux 9 | nodejs-full-i18n | Not affected | ||
| Red Hat Enterprise Linux 9 | nodejs-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | npm | Not affected | ||
| Red Hat Enterprise Linux 8 | c-ares | Not affected | ||
| Red Hat Enterprise Linux 8 | c-ares-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | nodejs | Not affected | ||
| Red Hat Enterprise Linux 8 | nodejs-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | nodejs-docs | Not affected | ||
| Red Hat Enterprise Linux 8 | nodejs-full-i18n | Not affected | ||
| Red Hat Enterprise Linux 8 | nodejs-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | nodejs-nodemon | Not affected | ||
| Red Hat Enterprise Linux 8 | nodejs-packaging | Not affected | ||
| Red Hat Enterprise Linux 8 | nodejs-packaging-bundler | Not affected | ||
| Red Hat Enterprise Linux 8 | npm | Not affected | ||
| Red Hat Enterprise Linux 8 | v8-12.4-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | v8-13.6-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | c-ares | Not affected | ||
| Red Hat Enterprise Linux 7 | c-ares-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | c-ares | Not affected | ||
| Red Hat Enterprise Linux 6 | c-ares-devel | Not affected | ||
| AlmaLinux 10 | c-ares | Fixed | 1.34.6-5.el10_3.2 | ALSA-2026:98629 |
| AlmaLinux 10 | c-ares-devel | Fixed | 1.34.6-5.el10_3.2 | ALSA-2026:98629 |
| Rocky Linux 10 | c-ares | Fixed | 0:1.34.6-5.el10_3.2 | RLSA-2026:98629 |
| Rocky Linux 10 | c-ares-devel | Fixed | 0:1.34.6-5.el10_3.2 | RLSA-2026:98629 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- c-ares: affected: < 1.34.7
References
- https://github.com/c-ares/c-ares/security/advisories/GHSA-jv8r-gqr9-68wj
- https://github.com/c-ares/c-ares/pull/1134
- https://github.com/c-ares/c-ares/commit/e47c203f91cd8b749c8736bc18d75a31ffdec8f4
- https://github.com/c-ares/c-ares/commit/eaded4cb200b2a5f8d73f11021ff7c8d6968aaab
- https://github.com/c-ares/c-ares/releases/tag/v1.34.7
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.