CVE-2025-31498
Description
c-ares is an asynchronous resolver library. From 1.32.3 through 1.34.4, there is a use-after-free in read_answers() when process_answer() may re-enqueue a query either due to a DNS Cookie Failure or when the upstream server does not properly support EDNS, or possibly on TCP queries if the remote closed the connection immediately after a response. If there was an issue trying to put that new transaction on the wire, it would close the connection handle, but read_answers() was still expecting the connection handle to be available to possibly dequeue other responses. In theory a remote attacker might be able to trigger this by flooding the target with ICMP UNREACHABLE packets if they also control the upstream nameserver and can return a result with one of those conditions, this has been untested. Otherwise only a local attacker might be able to change system behavior to make send()/write() return a failure condition. This vulnerability is fixed in 1.34.5.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
14- osv-coords12 versionspkg:rpm/almalinux/nodejspkg:rpm/almalinux/nodejs-develpkg:rpm/almalinux/nodejs-docspkg:rpm/almalinux/nodejs-full-i18npkg:rpm/almalinux/nodejs-libspkg:rpm/almalinux/nodejs-nodemonpkg:rpm/almalinux/nodejs-npmpkg:rpm/almalinux/nodejs-packagingpkg:rpm/almalinux/nodejs-packaging-bundlerpkg:rpm/almalinux/npmpkg:rpm/almalinux/v8-12.4-develpkg:rpm/opensuse/c-ares&distro=openSUSE%20Tumbleweed
< 1:22.15.0-1.module_el8.10.0+3986+a908e756+ 11 more
- (no CPE)range: < 1:22.15.0-1.module_el8.10.0+3986+a908e756
- (no CPE)range: < 1:22.15.0-1.module_el8.10.0+3986+a908e756
- (no CPE)range: < 1:22.15.0-1.module_el8.10.0+3986+a908e756
- (no CPE)range: < 1:22.15.0-1.module_el8.10.0+3986+a908e756
- (no CPE)range: < 1:22.15.0-1.module_el8.10.0+3986+a908e756
- (no CPE)range: < 3.0.1-1.module_el8.10.0+3983+391a1a04
- (no CPE)range: < 1:10.9.2-1.22.15.0.1.el10_0
- (no CPE)range: < 2021.06-4.module_el8.10.0+3961+6a788e57
- (no CPE)range: < 2021.06-4.module_el8.10.0+3961+6a788e57
- (no CPE)range: < 1:10.9.2-1.22.15.0.1.module_el8.10.0+3986+a908e756
- (no CPE)range: < 3:12.4.254.21-1.22.15.0.1.module_el8.10.0+3986+a908e756
- (no CPE)range: < 1.34.5-1.1
Patches
Vulnerability mechanics
References
4News mentions
0No linked articles in our index yet.