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: 8.7 [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]
CVE-ID: CVE-2026-33630
CWE-ID: CWE-416
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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.


Affected software

c-ares
SUSE Linux Enterprise Server 12 SP5 LTSS Extended
SUSE Linux Enterprise Server 12 SP5
SUSE Linux Enterprise Server 15 SP6
SUSE Linux Enterprise Server 15 SP5
SUSE Linux Enterprise Server 15 SP4
Debian Linux
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise High Performance Computing 12
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise Desktop 15
SUSE Linux Enterprise Micro
SUSE Linux Enterprise Micro for Rancher
Basesystem Module
Ubuntu
Fedora
libcares2 (Ubuntu package)
libcares2-debugsource
libcares-devel
libcares2
libcares2-debuginfo
c-ares
c-ares-devel
c-ares-debugsource
c-ares (Debian package)

How to mitigate CVE-2026-33630

Install security update from vendor's website.

c-ares - update to 1.34.7
libcares2 (Ubuntu package) - update to 1.34.6-1ubuntu0.1
libcares2-debugsource - update to 1.9.1-9.24.1
libcares-devel - update to 1.9.1-9.24.1
libcares2 - addressed in versions 1.9.1-9.24.1, 1.34.8-150000.3.29.1
libcares2-debuginfo - addressed in versions 1.9.1-9.24.1, 1.34.8-150000.3.29.1
c-ares - addressed in versions 1.34.7-1.fc43, 1.34.7-1.fc44, 1.34.8-1.fc43
c-ares-devel - update to 1.34.8-150000.3.29.1
c-ares-debugsource - update to 1.34.8-150000.3.29.1
c-ares (Debian package) - update to 1.34.9-1~deb13u1

External References

Related Security Bulletins