CVE-2025-31498
published high CVSS 4.0 · 8.3c-ares has a use-after-free in read_answers()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| c-ares | — | c-ares>= 1.32.3, < 1.34.5 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-942 | Fixed | Not stated | Amazon Linux assessment |
| Alpine Linux | edge | c-ares | Fixed | 1.34.5-r0 | Package fix record |
| Ubuntu | plucky | c-ares | Advisory build | 1.34.4-2.1ubuntu0.1 | USN-7477-1 |
| AlmaLinux | 10 | nodejs | Advisory build | 1:22.15.0-1.el10_0 | ALSA-2025:7502 |
| Oracle Linux | 10 | nodejsaarch64 | Advisory build | 1:22.16.0-1.el10_0 | ELSA-2025-7502 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.21 | c-ares | Fixed | 1.34.5-r0 | Package fix record |
| Alpine Linux | v3.22 | c-ares | Fixed | 1.34.5-r0 | Package fix record |
| Alpine Linux | v3.23 | c-ares | Fixed | 1.34.5-r0 | Package fix record |
| Alpine Linux | v3.24 | c-ares | Fixed | 1.34.5-r0 | Package fix record |
| AlmaLinux | 10 | nodejs-devel | Advisory build | 1:22.15.0-1.el10_0 | ALSA-2025:7502 |
| AlmaLinux | 10 | nodejs-docs | Advisory build | 1:22.15.0-1.el10_0 | ALSA-2025:7502 |
| AlmaLinux | 10 | nodejs-full-i18n | Advisory build | 1:22.15.0-1.el10_0 | ALSA-2025:7502 |
| AlmaLinux | 10 | nodejs-libs | Advisory build | 1:22.15.0-1.el10_0 | ALSA-2025:7502 |
| AlmaLinux | 10 | nodejs-npm | Advisory build | 1:10.9.2-1.22.15.0.1.el10_0 | ALSA-2025:7502 |
| AlmaLinux | 8 | nodejs | Advisory build | 1:20.19.1-1.module_el8.10.0+3987+dbda4426 | ALSA-2025:4461 |
| AlmaLinux | 8 | nodejs | Advisory build | 1:22.15.0-1.module_el8.10.0+3986+a908e756 | ALSA-2025:4459 |
| AlmaLinux | 8 | nodejs-devel | Advisory build | 1:20.19.1-1.module_el8.10.0+3987+dbda4426 | ALSA-2025:4461 |
| AlmaLinux | 8 | nodejs-devel | Advisory build | 1:22.15.0-1.module_el8.10.0+3986+a908e756 | ALSA-2025:4459 |
| AlmaLinux | 8 | nodejs-docs | Advisory build | 1:20.19.1-1.module_el8.10.0+3987+dbda4426 | ALSA-2025:4461 |
| AlmaLinux | 8 | nodejs-docs | Advisory build | 1:22.15.0-1.module_el8.10.0+3986+a908e756 | ALSA-2025:4459 |
| AlmaLinux | 8 | nodejs-full-i18n | Advisory build | 1:20.19.1-1.module_el8.10.0+3987+dbda4426 | ALSA-2025:4461 |
| AlmaLinux | 8 | nodejs-full-i18n | Advisory build | 1:22.15.0-1.module_el8.10.0+3986+a908e756 | ALSA-2025:4459 |
| AlmaLinux | 8 | nodejs-libs | Advisory build | 1:22.15.0-1.module_el8.10.0+3986+a908e756 | ALSA-2025:4459 |
| AlmaLinux | 8 | nodejs-nodemon | Advisory build | 3.0.1-1.module_el8.10.0+3982+85c136aa | ALSA-2025:4461 |
| AlmaLinux | 8 | nodejs-nodemon | Advisory build | 3.0.1-1.module_el8.10.0+3983+391a1a04 | ALSA-2025:4459 |
| AlmaLinux | 8 | nodejs-packaging | Advisory build | 2021.06-4.module_el8.10.0+3961+6a788e57 | ALSA-2025:4459 |
| AlmaLinux | 8 | nodejs-packaging | Advisory build | 2021.06-4.module_el8.10.0+3987+dbda4426 | ALSA-2025:4461 |
| AlmaLinux | 8 | nodejs-packaging-bundler | Advisory build | 2021.06-4.module_el8.10.0+3958+472a6467 | ALSA-2025:4461 |
| AlmaLinux | 8 | nodejs-packaging-bundler | Advisory build | 2021.06-4.module_el8.10.0+3961+6a788e57 | ALSA-2025:4459 |
| AlmaLinux | 8 | npm | Advisory build | 1:10.8.2-1.20.19.1.1.module_el8.10.0+3987+dbda4426 | ALSA-2025:4461 |
| AlmaLinux | 8 | npm | Advisory build | 1:10.9.2-1.22.15.0.1.module_el8.10.0+3986+a908e756 | ALSA-2025:4459 |
| AlmaLinux | 8 | v8-12.4-devel | Advisory build | 3:12.4.254.21-1.22.15.0.1.module_el8.10.0+3986+a908e756 | ALSA-2025:4459 |
| AlmaLinux | 9 | nodejs | Advisory build | 1:20.19.1-1.module_el9.6.0+163+d268fe53 | ALSA-2025:7426 |
| AlmaLinux | 9 | nodejs | Advisory build | 1:22.15.0-1.module_el9.6.0+164+2d89b8ed | ALSA-2025:7433 |
| AlmaLinux | 9 | nodejs-devel | Advisory build | 1:20.19.1-1.module_el9.6.0+163+d268fe53 | ALSA-2025:7426 |
| AlmaLinux | 9 | nodejs-devel | Advisory build | 1:22.15.0-1.module_el9.6.0+164+2d89b8ed | ALSA-2025:7433 |
| AlmaLinux | 9 | nodejs-docs | Advisory build | 1:20.19.1-1.module_el9.6.0+163+d268fe53 | ALSA-2025:7426 |
| AlmaLinux | 9 | nodejs-docs | Advisory build | 1:22.15.0-1.module_el9.6.0+164+2d89b8ed | ALSA-2025:7433 |
| AlmaLinux | 9 | nodejs-full-i18n | Advisory build | 1:20.19.1-1.module_el9.6.0+163+d268fe53 | ALSA-2025:7426 |
| AlmaLinux | 9 | nodejs-full-i18n | Advisory build | 1:22.15.0-1.module_el9.6.0+164+2d89b8ed | ALSA-2025:7433 |
| AlmaLinux | 9 | nodejs-libs | Advisory build | 1:22.15.0-1.module_el9.6.0+164+2d89b8ed | ALSA-2025:7433 |
| AlmaLinux | 9 | nodejs-nodemon | Advisory build | 3.0.1-1.module_el9.5.0+125+8dc38870 | ALSA-2025:7426 |
| AlmaLinux | 9 | nodejs-nodemon | Advisory build | 3.0.1-1.module_el9.5.0+139+09296491 | ALSA-2025:7433 |
| AlmaLinux | 9 | nodejs-packaging | Advisory build | 2021.06-4.module_el9.5.0+139+09296491 | ALSA-2025:7433 |
| AlmaLinux | 9 | nodejs-packaging | Advisory build | 2021.06-4.module_el9.6.0+162+8dc602e5 | ALSA-2025:7426 |
| AlmaLinux | 9 | nodejs-packaging-bundler | Advisory build | 2021.06-4.module_el9.5.0+139+09296491 | ALSA-2025:7433 |
| AlmaLinux | 9 | nodejs-packaging-bundler | Advisory build | 2021.06-4.module_el9.6.0+162+8dc602e5 | ALSA-2025:7426 |
| AlmaLinux | 9 | npm | Advisory build | 1:10.8.2-1.20.19.1.1.module_el9.6.0+163+d268fe53 | ALSA-2025:7426 |
| AlmaLinux | 9 | npm | Advisory build | 1:10.9.2-1.22.15.0.1.module_el9.6.0+164+2d89b8ed | ALSA-2025:7433 |
| AlmaLinux | 9 | v8-12.4-devel | Advisory build | 3:12.4.254.21-1.22.15.0.1.module_el9.6.0+164+2d89b8ed | ALSA-2025:7433 |
| Oracle Linux | 10 | nodejsx86_64 | Advisory build | 1:22.16.0-1.el10_0 | ELSA-2025-7502 |
| Oracle Linux | 10 | nodejs-develaarch64 | Advisory build | 1:22.16.0-1.el10_0 | ELSA-2025-7502 |
| Oracle Linux | 10 | nodejs-develx86_64 | Advisory build | 1:22.16.0-1.el10_0 | ELSA-2025-7502 |
| Oracle Linux | 10 | nodejs-docsaarch64 | Advisory build | 1:22.16.0-1.el10_0 | ELSA-2025-7502 |
| Oracle Linux | 10 | nodejs-docsx86_64 | Advisory build | 1:22.16.0-1.el10_0 | ELSA-2025-7502 |
| Oracle Linux | 10 | nodejs-full-i18naarch64 | Advisory build | 1:22.16.0-1.el10_0 | ELSA-2025-7502 |
| Oracle Linux | 10 | nodejs-full-i18nx86_64 | Advisory build | 1:22.16.0-1.el10_0 | ELSA-2025-7502 |
| Oracle Linux | 10 | nodejs-libsaarch64 | Advisory build | 1:22.16.0-1.el10_0 | ELSA-2025-7502 |
| Oracle Linux | 10 | nodejs-libsx86_64 | Advisory build | 1:22.16.0-1.el10_0 | ELSA-2025-7502 |
| Oracle Linux | 10 | nodejs-npmaarch64 | Advisory build | 1:10.9.2-1.22.16.0.1.el10_0 | ELSA-2025-7502 |
| Oracle Linux | 10 | nodejs-npmx86_64 | Advisory build | 1:10.9.2-1.22.16.0.1.el10_0 | ELSA-2025-7502 |
| Oracle Linux | 8 | nodejsaarch64 · nodejs · 20b | Advisory build | 1:20.19.1-1.module+el8.10.0+90560+49d7a1eb | ELSA-2025-4461 |
| Oracle Linux | 8 | nodejsaarch64 · nodejs · 22b | Advisory build | 1:22.15.0-1.module+el8.10.0+90558+f3d29a46 | ELSA-2025-4459 |
| Oracle Linux | 8 | nodejsx86_64 · nodejs · 20b | Advisory build | 1:20.19.1-1.module+el8.10.0+90560+49d7a1eb | ELSA-2025-4461 |
| Oracle Linux | 8 | nodejsx86_64 · nodejs · 22b | Advisory build | 1:22.15.0-1.module+el8.10.0+90558+f3d29a46 | ELSA-2025-4459 |
| Oracle Linux | 8 | nodejs-develaarch64 · nodejs · 20b | Advisory build | 1:20.19.1-1.module+el8.10.0+90560+49d7a1eb | ELSA-2025-4461 |
| Oracle Linux | 8 | nodejs-develaarch64 · nodejs · 22b | Advisory build | 1:22.15.0-1.module+el8.10.0+90558+f3d29a46 | ELSA-2025-4459 |
| Oracle Linux | 8 | nodejs-develx86_64 · nodejs · 20b | Advisory build | 1:20.19.1-1.module+el8.10.0+90560+49d7a1eb | ELSA-2025-4461 |
| Oracle Linux | 8 | nodejs-develx86_64 · nodejs · 22b | Advisory build | 1:22.15.0-1.module+el8.10.0+90558+f3d29a46 | ELSA-2025-4459 |
| Oracle Linux | 8 | nodejs-docsaarch64 · nodejs · 20b | Advisory build | 1:20.19.1-1.module+el8.10.0+90560+49d7a1eb | ELSA-2025-4461 |
| Oracle Linux | 8 | nodejs-docsaarch64 · nodejs · 22b | Advisory build | 1:22.15.0-1.module+el8.10.0+90558+f3d29a46 | ELSA-2025-4459 |
| Oracle Linux | 8 | nodejs-docsx86_64 · nodejs · 20b | Advisory build | 1:20.19.1-1.module+el8.10.0+90560+49d7a1eb | ELSA-2025-4461 |
| Oracle Linux | 8 | nodejs-docsx86_64 · nodejs · 22b | Advisory build | 1:22.15.0-1.module+el8.10.0+90558+f3d29a46 | ELSA-2025-4459 |
| Oracle Linux | 8 | nodejs-full-i18naarch64 · nodejs · 20b | Advisory build | 1:20.19.1-1.module+el8.10.0+90560+49d7a1eb | ELSA-2025-4461 |
| Oracle Linux | 8 | nodejs-full-i18naarch64 · nodejs · 22b | Advisory build | 1:22.15.0-1.module+el8.10.0+90558+f3d29a46 | ELSA-2025-4459 |
| Oracle Linux | 8 | nodejs-full-i18nx86_64 · nodejs · 20b | Advisory build | 1:20.19.1-1.module+el8.10.0+90560+49d7a1eb | ELSA-2025-4461 |
| Oracle Linux | 8 | nodejs-full-i18nx86_64 · nodejs · 22b | Advisory build | 1:22.15.0-1.module+el8.10.0+90558+f3d29a46 | ELSA-2025-4459 |
| Oracle Linux | 8 | nodejs-libsaarch64 · nodejs · 22b | Advisory build | 1:22.15.0-1.module+el8.10.0+90558+f3d29a46 | ELSA-2025-4459 |
| Oracle Linux | 8 | nodejs-libsx86_64 · nodejs · 22b | Advisory build | 1:22.15.0-1.module+el8.10.0+90558+f3d29a46 | ELSA-2025-4459 |
| Oracle Linux | 8 | nodejs-nodemonaarch64 · nodejs · 20b | Advisory build | 0:3.0.1-1.module+el8.10.0+90560+49d7a1eb | ELSA-2025-4461 |
| Oracle Linux | 8 | nodejs-nodemonaarch64 · nodejs · 22b | Advisory build | 0:3.0.1-1.module+el8.10.0+90558+f3d29a46 | ELSA-2025-4459 |
| Oracle Linux | 8 | nodejs-nodemonx86_64 · nodejs · 20b | Advisory build | 0:3.0.1-1.module+el8.10.0+90560+49d7a1eb | ELSA-2025-4461 |
| Oracle Linux | 8 | nodejs-nodemonx86_64 · nodejs · 22b | Advisory build | 0:3.0.1-1.module+el8.10.0+90558+f3d29a46 | ELSA-2025-4459 |
| Oracle Linux | 8 | nodejs-packagingaarch64 · nodejs · 20b | Advisory build | 0:2021.06-4.module+el8.10.0+90560+49d7a1eb | ELSA-2025-4461 |
| Oracle Linux | 8 | nodejs-packagingaarch64 · nodejs · 22b | Advisory build | 0:2021.06-4.module+el8.10.0+90558+f3d29a46 | ELSA-2025-4459 |
| Oracle Linux | 8 | nodejs-packagingx86_64 · nodejs · 20b | Advisory build | 0:2021.06-4.module+el8.10.0+90560+49d7a1eb | ELSA-2025-4461 |
| Oracle Linux | 8 | nodejs-packagingx86_64 · nodejs · 22b | Advisory build | 0:2021.06-4.module+el8.10.0+90558+f3d29a46 | ELSA-2025-4459 |
| Oracle Linux | 8 | nodejs-packaging-bundleraarch64 · nodejs · 20b | Advisory build | 0:2021.06-4.module+el8.10.0+90560+49d7a1eb | ELSA-2025-4461 |
| Oracle Linux | 8 | nodejs-packaging-bundleraarch64 · nodejs · 22b | Advisory build | 0:2021.06-4.module+el8.10.0+90558+f3d29a46 | ELSA-2025-4459 |
| Oracle Linux | 8 | nodejs-packaging-bundlerx86_64 · nodejs · 20b | Advisory build | 0:2021.06-4.module+el8.10.0+90560+49d7a1eb | ELSA-2025-4461 |
| Oracle Linux | 8 | nodejs-packaging-bundlerx86_64 · nodejs · 22b | Advisory build | 0:2021.06-4.module+el8.10.0+90558+f3d29a46 | ELSA-2025-4459 |
| Oracle Linux | 8 | npmaarch64 · nodejs · 20b | Advisory build | 1:10.8.2-1.20.19.1.1.module+el8.10.0+90560+49d7a1eb | ELSA-2025-4461 |
| Oracle Linux | 8 | npmaarch64 · nodejs · 22b | Advisory build | 1:10.9.2-1.22.15.0.1.module+el8.10.0+90558+f3d29a46 | ELSA-2025-4459 |
| Oracle Linux | 8 | npmx86_64 · nodejs · 20b | Advisory build | 1:10.8.2-1.20.19.1.1.module+el8.10.0+90560+49d7a1eb | ELSA-2025-4461 |
| Oracle Linux | 8 | npmx86_64 · nodejs · 22b | Advisory build | 1:10.9.2-1.22.15.0.1.module+el8.10.0+90558+f3d29a46 | ELSA-2025-4459 |
| Oracle Linux | 8 | v8-12.4-develaarch64 · nodejs · 22b | Advisory build | 3:12.4.254.21-1.22.15.0.1.module+el8.10.0+90558+f3d29a46 | ELSA-2025-4459 |
| Oracle Linux | 8 | v8-12.4-develx86_64 · nodejs · 22b | Advisory build | 3:12.4.254.21-1.22.15.0.1.module+el8.10.0+90558+f3d29a46 | ELSA-2025-4459 |
| Oracle Linux | 9 | nodejsaarch64 · nodejs · 20b | Advisory build | 1:20.19.1-1.module+el9.6.0+90590+fd42b52a | ELSA-2025-7426 |
| Oracle Linux | 9 | nodejsaarch64 · nodejs · 22b | Advisory build | 1:22.15.0-1.module+el9.6.0+90588+1a9ecb62 | ELSA-2025-7433 |
| Oracle Linux | 9 | nodejsx86_64 · nodejs · 20b | Advisory build | 1:20.19.1-1.module+el9.6.0+90590+fd42b52a | ELSA-2025-7426 |
| Oracle Linux | 9 | nodejsx86_64 · nodejs · 22b | Advisory build | 1:22.15.0-1.module+el9.6.0+90588+1a9ecb62 | ELSA-2025-7433 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.3 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| c-ares | c-ares | >= 1.32.3, < 1.34.5 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-416 CWE-416: Use After Free
References
4Provider assertions
3GitHub_M · cna
c-ares has a use-after-free in read_answers()
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- e994cf66030e1732fe1ee026b8be074aa69a7aaf0dae29b3be68a83ee6e6c565
- Ingested
- 23 Sep 2026, 08:44:43 UTC
- Source record
- Official CVE record