CVEfocus › CVE database › CVE-2024-25629

CVE-2024-25629c-ares out of bounds read in ares__read_line()

CVSS 4.4 MediumEPSS 0.3% (higher than 17% of CVEs)Published 2024-02-23Updated 2025-02-13Assigner: GitHub_M

c-ares is a C library for asynchronous DNS requests. `ares__read_line()` is used to parse local configuration files such as `/etc/resolv.conf`, `/etc/nsswitch.conf`, the `HOSTALIASES` file, and if using a c-ares version prior to 1.27.0, the `/etc/hosts` file. If any of these configuration files has an embedded `NULL` character as the first character in a new line, it can lead to attempting to read memory prior to the start of the given buffer which may result in a crash. This issue is fixed in c-ares 1.27.0. No known workarounds exist.

CWE-127

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.

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

63Fixed
9Fix pending
4Will not fix
1Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04c-aresFixed1.18.1-1ubuntu0.22.04.3UBUNTU-CVE-2024-25629
Ubuntu 20.04c-aresFixed1.15.0-1ubuntu0.5UBUNTU-CVE-2024-25629
Ubuntu 18.04c-aresFix pending1.14.0-1ubuntu0.2+esm2 (Ubuntu Pro)UBUNTU-CVE-2024-25629
Ubuntu 16.04c-aresFix pending1.10.0-3ubuntu0.2+esm3 (Ubuntu Pro)UBUNTU-CVE-2024-25629
Ubuntu 14.04c-aresFix pending
Debian 14c-aresFixed1.27.0-1DEBIAN-CVE-2024-25629
Debian 13c-aresFixed1.27.0-1DEBIAN-CVE-2024-25629
Debian 12c-aresFix pendingDEBIAN-CVE-2024-25629
Red Hat Enterprise Linux 10c-aresFix pending
Affected
Red Hat Enterprise Linux 10c-ares-develFix pending
Affected
Red Hat Enterprise Linux 10nodejs20Not affected
Red Hat Enterprise Linux 9c-aresFixed0:1.19.1-2.el9_4RHSA-2024:3842
Red Hat Enterprise Linux 9c-ares-develFixed0:1.19.1-2.el9_4RHSA-2024:3842
Red Hat Enterprise Linux 9nodejsFixed1:20.12.2-2.module+el9.4.0+21731+46b5b8a7RHSA-2024:2910
Red Hat Enterprise Linux 9nodejs-develFixed1:20.12.2-2.module+el9.4.0+21731+46b5b8a7RHSA-2024:2779
Red Hat Enterprise Linux 9nodejs-docsFixed1:20.12.2-2.module+el9.4.0+21731+46b5b8a7RHSA-2024:2910
Red Hat Enterprise Linux 9nodejs-full-i18nFixed1:18.20.2-2.module+el9.4.0+21742+692df1eaRHSA-2024:2853
Red Hat Enterprise Linux 9nodejs-libsFixed1:16.20.2-8.el9_4RHSA-2024:2910
Red Hat Enterprise Linux 9nodejs-nodemonFixed0:3.0.1-1.module+el9.3.0.z+20478+84a9f781RHSA-2024:2779
Red Hat Enterprise Linux 9nodejs-packagingFixed0:2021.06-4.module+el9.1.0+15718+e52ec601RHSA-2024:2853
Red Hat Enterprise Linux 9nodejs-packaging-bundlerFixed0:2021.06-4.module+el9.3.0+19518+63aad52dRHSA-2024:2779
Red Hat Enterprise Linux 9npmFixed1:8.19.4-1.16.20.2.8.el9_4RHSA-2024:2779
Red Hat Enterprise Linux 8c-aresFixed0:1.13.0-11.el8_10RHSA-2024:4249
Red Hat Enterprise Linux 8c-ares-develFixed0:1.13.0-11.el8_10RHSA-2024:4249
Red Hat Enterprise Linux 8nodejsFixed
Fix deferred
1:20.12.2-2.module+el8.9.0+21743+0b3f1be2RHSA-2024:2780
Red Hat Enterprise Linux 8nodejs-develFixed
Fix deferred
1:18.20.2-1.module+el8.9.0+21767+537f34eeRHSA-2024:2778
Red Hat Enterprise Linux 8nodejs-docsFixed
Fix deferred
1:20.12.2-2.module+el8.9.0+21743+0b3f1be2RHSA-2024:2780
Red Hat Enterprise Linux 8nodejs-full-i18nFixed
Fix deferred
1:18.20.2-1.module+el8.9.0+21767+537f34eeRHSA-2024:2778
Red Hat Enterprise Linux 8nodejs-libsFix pending
Fix deferred
Red Hat Enterprise Linux 8nodejs-nodemonFixed
Fix deferred
0:3.0.1-1.module+el8.9.0+20473+c4e3d824RHSA-2024:2780
Red Hat Enterprise Linux 8nodejs-packagingFixed
Fix deferred
0:2021.06-4.module+el8.9.0+19519+e25b965aRHSA-2024:2780
Red Hat Enterprise Linux 8nodejs-packaging-bundlerFixed
Fix deferred
0:2021.06-4.module+el8.9.0+21190+5ebd2c33RHSA-2024:2778
Red Hat Enterprise Linux 8npmFixed
Fix deferred
1:10.5.0-1.18.20.2.1.module+el8.9.0+21767+537f34eeRHSA-2024:2778
Red Hat Enterprise Linux 8v8-12.4-develFix pending
Fix deferred
Red Hat Enterprise Linux 8v8-13.6-develFix pending
Fix deferred
Red Hat Enterprise Linux 7c-aresWill not fix
Out of support scope
Red Hat Enterprise Linux 7c-ares-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6c-aresWill not fix
Out of support scope
Red Hat Enterprise Linux 6c-ares-develWill not fix
Out of support scope
AlmaLinux 9c-aresFixed1.19.1-2.el9_4ALSA-2024:3842
AlmaLinux 9c-ares-develFixed1.19.1-2.el9_4ALSA-2024:3842
AlmaLinux 9nodejsFixed1:16.20.2-8.el9_4ALSA-2024:2853
AlmaLinux 9nodejs-develFixed1:20.12.2-2.module_el9.4.0+100+71fc9528ALSA-2024:2779
AlmaLinux 9nodejs-docsFixed1:20.12.2-2.module_el9.4.0+100+71fc9528ALSA-2024:2910
AlmaLinux 9nodejs-full-i18nFixed1:16.20.2-8.el9_4ALSA-2024:2853
AlmaLinux 9nodejs-libsFixed1:16.20.2-8.el9_4ALSA-2024:2910
AlmaLinux 9nodejs-nodemonFixed3.0.1-1.module_el9.2.0+36+853e48f5ALSA-2024:2853
AlmaLinux 9nodejs-packagingFixed2021.06-4.module_el9.1.0+13+d9a595eaALSA-2024:2853
AlmaLinux 9nodejs-packaging-bundlerFixed2021.06-4.module_el9.1.0+13+d9a595eaALSA-2024:2853
AlmaLinux 9npmFixed1:10.5.0-1.18.20.2.2.module_el9.4.0+99+a01f7676ALSA-2024:2910
AlmaLinux 8c-aresFixed1.13.0-11.el8_10ALSA-2024:4249
AlmaLinux 8c-ares-develFixed1.13.0-11.el8_10ALSA-2024:4249
AlmaLinux 8nodejsFixed1:20.12.2-2.module_el8.9.0+3827+11b91f3eALSA-2024:2780
AlmaLinux 8nodejs-develFixed1:18.20.2-1.module_el8.9.0+3828+c9fa9644ALSA-2024:2778
AlmaLinux 8nodejs-docsFixed1:20.12.2-2.module_el8.9.0+3827+11b91f3eALSA-2024:2780
AlmaLinux 8nodejs-full-i18nFixed1:20.12.2-2.module_el8.9.0+3827+11b91f3eALSA-2024:2780
AlmaLinux 8nodejs-nodemonFixed3.0.1-1.module_el8.8.0+3613+1ed8c91dALSA-2024:2778
AlmaLinux 8nodejs-packagingFixed2021.06-4.module_el8.7.0+3343+ea2b7901ALSA-2024:2778
AlmaLinux 8nodejs-packaging-bundlerFixed2021.06-4.module_el8.7.0+3343+ea2b7901ALSA-2024:2778
AlmaLinux 8npmFixed1:10.5.0-1.20.12.2.2.module_el8.9.0+3827+11b91f3eALSA-2024:2780
Rocky Linux 9c-aresFixed0:1.19.1-2.el9_4RLSA-2024:3842
Rocky Linux 9nodejsFixed1:16.20.2-8.el9_4RLSA-2024:2910
Rocky Linux 9nodejs-nodemonFixed0:3.0.1-1.module+el9.6.0+32143+ae966e5bRLSA-2024:2853
Rocky Linux 9nodejs-packagingFixed0:2021.06-4.module+el9.6.0+32185+bd121a25RLSA-2024:2853
Rocky Linux 8c-aresFixed0:1.13.0-11.el8_10RLSA-2024:4249
Rocky Linux 8nodejsFixed1:18.20.2-1.module+el8.9.0+1803+9ac8b495RLSA-2024:2778
Rocky Linux 8nodejs-nodemonFixed0:3.0.1-1.module+el8.8.0+1459+02651ab6RLSA-2024:2780
Rocky Linux 8nodejs-packagingFixed0:2021.06-4.module+el8.7.0+1072+5b168780RLSA-2024:2780
Alpine Linux 3.24c-aresFixed1.27.0-r0ALPINE-CVE-2024-25629
Alpine Linux 3.23c-aresFixed1.27.0-r0ALPINE-CVE-2024-25629
Alpine Linux 3.22c-aresFixed1.27.0-r0ALPINE-CVE-2024-25629
Alpine Linux 3.21c-aresFixed1.27.0-r0ALPINE-CVE-2024-25629
Alpine Linux 3.20c-aresFixed1.27.0-r0ALPINE-CVE-2024-25629
Alpine Linux 3.19c-aresFixed1.27.0-r0ALPINE-CVE-2024-25629
Alpine Linux 3.18c-aresFixed1.19.1-r1ALPINE-CVE-2024-25629
Alpine Linux 3.17c-aresFixed1.19.1-r1ALPINE-CVE-2024-25629
Alpine Linux 3.16c-aresFixed1.19.1-r1ALPINE-CVE-2024-25629

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.

References

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.