libcares2: c-ares is an asynchronous resolver library
CVE-2025-31498 is fixed in 25 products on 1 platform, first by RHSA-2025:7502, released April 8, 2025. It is not reported as exploited. Patch Radar priority: High.
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() mayre-enqueue a query either due to a DNS Cookie Failure or when the upstreamserver does not properly support EDNS, or possibly on TCP queries if theremote closed the connection immediately after a response. If there was anissue trying to put that new transaction on the wire, it would close theconnection handle, but read_answers() was still expecting the connectionhandle to be available to possibly dequeue other responses. In theory aremote attacker might be able to trigger this by flooding the target withICMP UNREACHABLE packets if they also control the upstream nameserver andcan return a result with one of those conditions, this has been untested.Otherwise only a local attacker might be able to change system behavior tomake send()/write() return a failure condition. This vulnerability is fixedin 1.34.5.
Where it's fixed
| Product | Fixed in | Fix | Released |
|---|---|---|---|
| Linux | |||
| c-ares · Debian 13.5 (trixie) | 1.34.5-1 | DEBIAN-CVE-2025-31498 | Apr 8, 2025 |
| c-ares · Debian 14 | 1.34.5-1 | DEBIAN-CVE-2025-31498 | Apr 8, 2025 |
| c-ares · sles 15.6 | 1.34.8-150000.3.29.1 | SUSE-SU-2026:4021-1 | Sep 7, 2026 |
| c-ares · sles 15.7 | 1.34.8-150000.3.29.1 | SUSE-SU-2026:4021-1 | Sep 7, 2026 |
| libc-ares2 · Ubuntu 25.04 (plucky) | 1.34.4-2.1ubuntu0.1 | libc-ares2 1.34.4-2.1ubuntu0.1 | Jan 16, 2026 |
| libcares2 · Ubuntu 24.10 (oracular) | 1.33.0-1ubuntu0.1 | libcares2 1.33.0-1ubuntu0.1 | Jan 16, 2026 |
| libcares2 · Ubuntu 25.04 (plucky) | 1.34.4-2.1ubuntu0.1 | libcares2 1.34.4-2.1ubuntu0.1 | Jan 16, 2026 |
| nodejs · RHEL 8 | 1:20.19.1-1.module+el8.10.0+23054+5431297f | RHSA-2025:4461 | May 5, 2025 |
| nodejs · RHEL 9 | 1:22.15.0-1.module+el9.6.0+23062+9e7801b9 | RHSA-2025:7433 | May 13, 2025 |
| nodejs · almalinux 10 | 1:22.15.0-1.el10_0 | ALSA-2025:7502 | May 13, 2025 |
| nodejs · almalinux 8 | 1:20.19.1-1.module_el8.10.0+3987+dbda4426 | ALSA-2025:4461 | May 5, 2025 |
| nodejs · almalinux 9 | 1:22.15.0-1.module_el9.6.0+164+2d89b8ed | ALSA-2025:7433 | May 13, 2025 |
| nodejs · ol 10 | 1:22.16.0-1.el10_0 | ELSA-2025-7502 | Jun 30, 2025 |
| nodejs · ol 8 | 1:20.19.1-1.module+el8.10.0+90560+49d7a1eb | ELSA-2025-4461 | May 5, 2025 |
| nodejs · ol 9 | 1:20.19.1-1.module+el9.6.0+90590+fd42b52a | ELSA-2025-7426 | May 21, 2025 |
| nodejs · rocky 8 | 1:20.19.1-1.module+el8.10.0+1972+57cf735f | RLSA-2025:4461 | Jul 29, 2025 |
| nodejs-devel · RHEL 8 | 1:20.19.1-1.module+el8.10.0+23054+5431297f | RHSA-2025:4461 | May 5, 2025 |
| nodejs-devel · RHEL 9 | 1:22.15.0-1.module+el9.6.0+23062+9e7801b9 | RHSA-2025:7433 | May 13, 2025 |
| nodejs-devel · almalinux 10 | 1:22.15.0-1.el10_0 | ALSA-2025:7502 | May 13, 2025 |
| nodejs-devel · almalinux 8 | 1:20.19.1-1.module_el8.10.0+3987+dbda4426 | ALSA-2025:4461 | May 5, 2025 |
| nodejs-devel · almalinux 9 | 1:22.15.0-1.module_el9.6.0+164+2d89b8ed | ALSA-2025:7433 | May 13, 2025 |
| nodejs-devel · ol 10 | 1:22.16.0-1.el10_0 | ELSA-2025-7502 | Jun 30, 2025 |
| nodejs-devel · ol 8 | 1:20.19.1-1.module+el8.10.0+90560+49d7a1eb | ELSA-2025-4461 | May 5, 2025 |
| nodejs-devel · ol 9 | 1:20.19.1-1.module+el9.6.0+90590+fd42b52a | ELSA-2025-7426 | May 21, 2025 |
| nodejs-docs · RHEL 8 | 1:20.19.1-1.module+el8.10.0+23054+5431297f | RHSA-2025:4461 | May 5, 2025 |
| nodejs-docs · RHEL 9 | 1:22.15.0-1.module+el9.6.0+23062+9e7801b9 | RHSA-2025:7433 | May 13, 2025 |
| nodejs-docs · almalinux 10 | 1:22.15.0-1.el10_0 | ALSA-2025:7502 | May 13, 2025 |
| nodejs-docs · almalinux 8 | 1:20.19.1-1.module_el8.10.0+3987+dbda4426 | ALSA-2025:4461 | May 5, 2025 |
| nodejs-docs · almalinux 9 | 1:22.15.0-1.module_el9.6.0+164+2d89b8ed | ALSA-2025:7433 | May 13, 2025 |
| nodejs-docs · ol 10 | 1:22.16.0-1.el10_0 | ELSA-2025-7502 | Jun 30, 2025 |
| nodejs-docs · ol 8 | 1:20.19.1-1.module+el8.10.0+90560+49d7a1eb | ELSA-2025-4461 | May 5, 2025 |
| nodejs-docs · ol 9 | 1:20.19.1-1.module+el9.6.0+90590+fd42b52a | ELSA-2025-7426 | May 21, 2025 |
| nodejs-full-i18n · RHEL 8 | 1:20.19.1-1.module+el8.10.0+23054+5431297f | RHSA-2025:4461 | May 5, 2025 |
| nodejs-full-i18n · RHEL 9 | 1:22.15.0-1.module+el9.6.0+23062+9e7801b9 | RHSA-2025:7433 | May 13, 2025 |
| nodejs-full-i18n · almalinux 10 | 1:22.15.0-1.el10_0 | ALSA-2025:7502 | May 13, 2025 |
| nodejs-full-i18n · almalinux 8 | 1:20.19.1-1.module_el8.10.0+3987+dbda4426 | ALSA-2025:4461 | May 5, 2025 |
| nodejs-full-i18n · almalinux 9 | 1:22.15.0-1.module_el9.6.0+164+2d89b8ed | ALSA-2025:7433 | May 13, 2025 |
| nodejs-full-i18n · ol 10 | 1:22.16.0-1.el10_0 | ELSA-2025-7502 | Jun 30, 2025 |
| nodejs-full-i18n · ol 8 | 1:20.19.1-1.module+el8.10.0+90560+49d7a1eb | ELSA-2025-4461 | May 5, 2025 |
| nodejs-full-i18n · ol 9 | 1:20.19.1-1.module+el9.6.0+90590+fd42b52a | ELSA-2025-7426 | May 21, 2025 |
| nodejs-libs · RHEL 8 | 1:22.15.0-1.module+el8.10.0+23068+28ff2340 | RHSA-2025:4459 | May 5, 2025 |
| nodejs-libs · RHEL 9 | 1:22.15.0-1.module+el9.6.0+23062+9e7801b9 | RHSA-2025:7433 | May 13, 2025 |
| nodejs-libs · almalinux 10 | 1:22.15.0-1.el10_0 | ALSA-2025:7502 | May 13, 2025 |
| nodejs-libs · almalinux 8 | 1:22.15.0-1.module_el8.10.0+3986+a908e756 | ALSA-2025:4459 | May 5, 2025 |
| nodejs-libs · almalinux 9 | 1:22.15.0-1.module_el9.6.0+164+2d89b8ed | ALSA-2025:7433 | May 13, 2025 |
| nodejs-libs · ol 10 | 1:22.16.0-1.el10_0 | ELSA-2025-7502 | Jun 30, 2025 |
| nodejs-libs · ol 8 | 1:22.15.0-1.module+el8.10.0+90558+f3d29a46 | ELSA-2025-4459 | May 5, 2025 |
| nodejs-libs · ol 9 | 1:22.15.0-1.module+el9.6.0+90588+1a9ecb62 | ELSA-2025-7433 | May 22, 2025 |
| nodejs-nodemon · RHEL 8 | 0:3.0.1-1.module+el8.10.0+22904+d0fedeff | RHSA-2025:4461 | May 5, 2025 |
| nodejs-nodemon · RHEL 9 | 0:3.0.1-1.module+el9.6.0+23062+9e7801b9 | RHSA-2025:7433 | May 13, 2025 |
| nodejs-nodemon · almalinux 8 | 3.0.1-1.module_el8.10.0+3982+85c136aa | ALSA-2025:4461 | May 5, 2025 |
| nodejs-nodemon · almalinux 9 | 3.0.1-1.module_el9.5.0+139+09296491 | ALSA-2025:7433 | May 13, 2025 |
| nodejs-nodemon · ol 8 | 0:3.0.1-1.module+el8.10.0+90560+49d7a1eb | ELSA-2025-4461 | May 5, 2025 |
| nodejs-nodemon · ol 9 | 0:3.0.1-1.module+el9.3.0+90066+12d4a8d7 | ELSA-2025-7426 | May 21, 2025 |
| nodejs-nodemon · rocky 8 | 0:3.0.1-1.module+el8.10.0+1988+437f3d23 | RLSA-2025:4461 | Jul 29, 2025 |
| nodejs-nodemon · rocky 9 | 0:3.0.1-1.module+el9.5.0+31770+0da7192d | RLSA-2025:7433 | Jul 29, 2025 |
| nodejs-npm · almalinux 10 | 1:10.9.2-1.22.15.0.1.el10_0 | ALSA-2025:7502 | May 13, 2025 |
| nodejs-npm · ol 10 | 1:10.9.2-1.22.16.0.1.el10_0 | ELSA-2025-7502 | Jun 30, 2025 |
| nodejs-packaging · RHEL 8 | 0:2021.06-4.module+el8.10.0+22904+d0fedeff | RHSA-2025:4461 | May 5, 2025 |
| nodejs-packaging · RHEL 9 | 0:2021.06-4.module+el9.6.0+23062+9e7801b9 | RHSA-2025:7433 | May 13, 2025 |
| nodejs-packaging · almalinux 8 | 2021.06-4.module_el8.10.0+3987+dbda4426 | ALSA-2025:4461 | May 5, 2025 |
| nodejs-packaging · almalinux 9 | 2021.06-4.module_el9.5.0+139+09296491 | ALSA-2025:7433 | May 13, 2025 |
| nodejs-packaging · ol 8 | 0:2021.06-4.module+el8.10.0+90560+49d7a1eb | ELSA-2025-4461 | May 5, 2025 |
| nodejs-packaging · ol 9 | 0:2021.06-4.module+el9.3.0+90066+12d4a8d7 | ELSA-2025-7426 | May 21, 2025 |
| nodejs-packaging · rocky 8 | 0:2021.06-4.module+el8.10.0+1667+4a788d89 | RLSA-2025:4461 | Jul 29, 2025 |
| nodejs-packaging · rocky 9 | 0:2021.06-4.module+el9.5.0+31770+0da7192d | RLSA-2025:7433 | Jul 29, 2025 |
| nodejs-packaging-bundler · RHEL 8 | 0:2021.06-4.module+el8.10.0+22904+d0fedeff | RHSA-2025:4461 | May 5, 2025 |
| nodejs-packaging-bundler · RHEL 9 | 0:2021.06-4.module+el9.6.0+23062+9e7801b9 | RHSA-2025:7433 | May 13, 2025 |
| nodejs-packaging-bundler · almalinux 8 | 2021.06-4.module_el8.10.0+3958+472a6467 | ALSA-2025:4461 | May 5, 2025 |
| nodejs-packaging-bundler · almalinux 9 | 2021.06-4.module_el9.5.0+139+09296491 | ALSA-2025:7433 | May 13, 2025 |
| nodejs-packaging-bundler · ol 8 | 0:2021.06-4.module+el8.10.0+90560+49d7a1eb | ELSA-2025-4461 | May 5, 2025 |
| nodejs-packaging-bundler · ol 9 | 0:2021.06-4.module+el9.3.0+90066+12d4a8d7 | ELSA-2025-7426 | May 21, 2025 |
| nodejs20 · amzn 2023 | 1:20.19.0-1.amzn2023.0.1 | ALAS2023-2025-942 | Apr 23, 2025 |
| nodejs20-debuginfo · amzn 2023 | 1:20.19.0-1.amzn2023.0.1 | ALAS2023-2025-942 | Apr 23, 2025 |
| nodejs20-debugsource · amzn 2023 | 1:20.19.0-1.amzn2023.0.1 | ALAS2023-2025-942 | Apr 23, 2025 |
| nodejs20-devel · amzn 2023 | 1:20.19.0-1.amzn2023.0.1 | ALAS2023-2025-942 | Apr 23, 2025 |
| nodejs20-docs · amzn 2023 | 1:20.19.0-1.amzn2023.0.1 | ALAS2023-2025-942 | Apr 23, 2025 |
| nodejs20-full-i18n · amzn 2023 | 1:20.19.0-1.amzn2023.0.1 | ALAS2023-2025-942 | Apr 23, 2025 |
| nodejs20-libs · amzn 2023 | 1:20.19.0-1.amzn2023.0.1 | ALAS2023-2025-942 | Apr 23, 2025 |
| nodejs20-libs-debuginfo · amzn 2023 | 1:20.19.0-1.amzn2023.0.1 | ALAS2023-2025-942 | Apr 23, 2025 |
| nodejs20-npm · amzn 2023 | 1:10.8.2-1.20.19.0.1.amzn2023.0.1 | ALAS2023-2025-942 | Apr 23, 2025 |
| nodejs22 · RHEL 10 | 22.15.0-1.el10_0 | RHSA-2025:7502 | Apr 8, 2025 |
| npm · RHEL 8 | 1:10.8.2-1.20.19.1.1.module+el8.10.0+23054+5431297f | RHSA-2025:4461 | May 5, 2025 |
| npm · RHEL 9 | 1:10.9.2-1.22.15.0.1.module+el9.6.0+23062+9e7801b9 | RHSA-2025:7433 | May 13, 2025 |
| npm · almalinux 8 | 1:10.8.2-1.20.19.1.1.module_el8.10.0+3987+dbda4426 | ALSA-2025:4461 | May 5, 2025 |
| npm · almalinux 9 | 1:10.9.2-1.22.15.0.1.module_el9.6.0+164+2d89b8ed | ALSA-2025:7433 | May 13, 2025 |
| npm · ol 8 | 1:10.8.2-1.20.19.1.1.module+el8.10.0+90560+49d7a1eb | ELSA-2025-4461 | May 5, 2025 |
| npm · ol 9 | 1:10.8.2-1.20.19.1.1.module+el9.6.0+90590+fd42b52a | ELSA-2025-7426 | May 21, 2025 |
| v8-11.3-devel · amzn 2023 | 3:11.3.244.8-1.20.19.0.1.amzn2023.0.1 | ALAS2023-2025-942 | Apr 23, 2025 |
| v8-12.4-devel · RHEL 8 | 3:12.4.254.21-1.22.15.0.1.module+el8.10.0+23068+28ff2340 | RHSA-2025:4459 | May 5, 2025 |
| v8-12.4-devel · RHEL 9 | 3:12.4.254.21-1.22.15.0.1.module+el9.6.0+23062+9e7801b9 | RHSA-2025:7433 | May 13, 2025 |
| v8-12.4-devel · almalinux 8 | 3:12.4.254.21-1.22.15.0.1.module_el8.10.0+3986+a908e756 | ALSA-2025:4459 | May 5, 2025 |
| v8-12.4-devel · almalinux 9 | 3:12.4.254.21-1.22.15.0.1.module_el9.6.0+164+2d89b8ed | ALSA-2025:7433 | May 13, 2025 |
| v8-12.4-devel · ol 8 | 3:12.4.254.21-1.22.15.0.1.module+el8.10.0+90558+f3d29a46 | ELSA-2025-4459 | May 5, 2025 |
| v8-12.4-devel · ol 9 | 3:12.4.254.21-1.22.15.0.1.module+el9.6.0+90588+1a9ecb62 | ELSA-2025-7433 | May 22, 2025 |
Patch Radar data is free to use with attribution. Terms and how to credit it.
Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.