CVE-2024-25629 c-ares out of bounds read in ares__read_line()
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
Description
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.
Upgrade path
20 packages: 18 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/c-ares(Debian 12) | = 1.18.1-3; = 1.19.0-1; = 1.19.1-1; = 1.19.1-2 +38 more | No fix listed | No fix yet |
| alpine/c-ares(Alpine v3.16) | < 1.19.1-r1 | 1.19.1-r1 | Fixed |
| alpine/c-ares(Alpine v3.17) | < 1.19.1-r1 | 1.19.1-r1 | Fixed |
| alpine/c-ares(Alpine v3.18) | < 1.19.1-r1 | 1.19.1-r1 | Fixed |
| alpine/c-ares(Alpine v3.19) | < 1.27.0-r0 | 1.27.0-r0 | Fixed |
| alpine/c-ares(Alpine v3.20) | < 1.27.0-r0 | 1.27.0-r0 | Fixed |
| alpine/c-ares(Alpine v3.21) | < 1.27.0-r0 | 1.27.0-r0 | Fixed |
| alpine/c-ares(Alpine v3.22) | < 1.27.0-r0 | 1.27.0-r0 | Fixed |
| alpine/c-ares(Alpine v3.23) | < 1.27.0-r0 | 1.27.0-r0 | Fixed |
| alpine/c-ares(Alpine v3.24) | < 1.27.0-r0 | 1.27.0-r0 | Fixed |
| c-ares | < 1.27.0; = < 1.27.0 | 1.27.0 | Fixed |
| debian/c-ares(Debian 13) | < 1.27.0-1 | 1.27.0-1 | Fixed |
| debian/c-ares(Debian 14) | < 1.27.0-1 | 1.27.0-1 | Fixed |
| Microsoft azure linux | < 1.30.0-1; < 3.0.6-1; < 20.14.0-1; < 23.9.1-4 | 1.30.0-1, 3.0.6-1, 20.14.0-1, 23.9.1-4 | Fixed |
| Microsoft cbl mariner | < 2.2.3-1; < 18.20.2-1 | 2.2.3-1, 18.20.2-1 | Fixed |
| ubuntu/c-ares(Ubuntu 20.04) | < 1.15.0-1ubuntu0.5; = 1.15.0-1build1; = 1.15.0-1ubuntu0.1; = 1.15.0-1ubuntu0.2 +2 more | 1.15.0-1ubuntu0.5 | Fixed |
| ubuntu/c-ares(Ubuntu 22.04) | < 1.18.1-1ubuntu0.22.04.3; = 1.17.1-1ubuntu1; = 1.18.1-1; = 1.18.1-1build1 +2 more | 1.18.1-1ubuntu0.22.04.3 | Fixed |
| ubuntu/c-ares(Ubuntu Pro 16.04) | < 1.10.0-3ubuntu0.2+esm3; = 1.10.0-2; = 1.10.0-3; = 1.10.0-3ubuntu0.1 +3 more | 1.10.0-3ubuntu0.2+esm3 | Fixed |
| ubuntu/c-ares(Ubuntu Pro 18.04) | < 1.14.0-1ubuntu0.2+esm2; = 1.13.0-2; = 1.13.0-3; = 1.14.0-1 +3 more | 1.14.0-1ubuntu0.2+esm2 | Fixed |
| fedoraproject fedora | = 38; = 39; = 40 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Microsoft cbl mariner | < 2.2.3-1 | 2.2.3-1 |
| Microsoft cbl mariner | < 18.20.2-1 | 18.20.2-1 |
| Microsoft azure linux | < 1.30.0-1 | 1.30.0-1 |
| Microsoft azure linux | < 3.0.6-1 | 3.0.6-1 |
| Microsoft azure linux | < 20.14.0-1 | 20.14.0-1 |
| Microsoft azure linux | < 23.9.1-4 | 23.9.1-4 |
| debian/c-ares(Debian:12) | All versions | No fix listed |
| debian/c-ares(Debian:12) | = 1.18.1-3 | No fix listed |
| debian/c-ares(Debian:12) | = 1.19.0-1 | No fix listed |
| debian/c-ares(Debian:12) | = 1.19.1-1 | No fix listed |
| debian/c-ares(Debian:12) | = 1.19.1-2 | No fix listed |
| debian/c-ares(Debian:12) | = 1.19.1-3 | No fix listed |
| debian/c-ares(Debian:12) | = 1.20.0-1 | No fix listed |
| debian/c-ares(Debian:12) | = 1.20.0-2 | No fix listed |
| debian/c-ares(Debian:12) | = 1.20.0-3 | No fix listed |
| debian/c-ares(Debian:12) | = 1.20.1-1 | No fix listed |
| debian/c-ares(Debian:12) | = 1.21.0-1 | No fix listed |
| debian/c-ares(Debian:12) | = 1.22.0-1 | No fix listed |
| debian/c-ares(Debian:12) | = 1.22.1-1 | No fix listed |
| debian/c-ares(Debian:12) | = 1.23.0-1 | No fix listed |
| debian/c-ares(Debian:12) | = 1.24.0-1 | No fix listed |
| debian/c-ares(Debian:12) | = 1.25.0-1 | No fix listed |
| debian/c-ares(Debian:12) | = 1.26.0-1 | No fix listed |
| debian/c-ares(Debian:12) | = 1.26.0-1.1~exp1 | No fix listed |
| debian/c-ares(Debian:12) | = 1.27.0-1 | No fix listed |
Show 65 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/c-ares(Debian:12) | = 1.27.0-1.1 | No fix listed |
| debian/c-ares(Debian:12) | = 1.27.0-1.1~exp1 | No fix listed |
| debian/c-ares(Debian:12) | = 1.27.0-1.2 | No fix listed |
| debian/c-ares(Debian:12) | = 1.28.1-1 | No fix listed |
| debian/c-ares(Debian:12) | = 1.29.0-1 | No fix listed |
| debian/c-ares(Debian:12) | = 1.30.0-1 | No fix listed |
| debian/c-ares(Debian:12) | = 1.31.0-1 | No fix listed |
| debian/c-ares(Debian:12) | = 1.32.2-1 | No fix listed |
| debian/c-ares(Debian:12) | = 1.32.2-2 | No fix listed |
| debian/c-ares(Debian:12) | = 1.32.3-1 | No fix listed |
| debian/c-ares(Debian:12) | = 1.33.0-1 | No fix listed |
| debian/c-ares(Debian:12) | = 1.33.1-1 | No fix listed |
| debian/c-ares(Debian:12) | = 1.33.1-2 | No fix listed |
| debian/c-ares(Debian:12) | = 1.34.2-1 | No fix listed |
| debian/c-ares(Debian:12) | = 1.34.3-1 | No fix listed |
| debian/c-ares(Debian:12) | = 1.34.4-1 | No fix listed |
| debian/c-ares(Debian:12) | = 1.34.4-2 | No fix listed |
| debian/c-ares(Debian:12) | = 1.34.4-2.1 | No fix listed |
| debian/c-ares(Debian:12) | = 1.34.5-1 | No fix listed |
| debian/c-ares(Debian:12) | = 1.34.6-1 | No fix listed |
| debian/c-ares(Debian:12) | = 1.34.7-1 | No fix listed |
| debian/c-ares(Debian:12) | = 1.34.8-1 | No fix listed |
| debian/c-ares(Debian:12) | = 1.34.9-1 | No fix listed |
| debian/c-ares(Debian:13) | < 1.27.0-1 | 1.27.0-1 |
| debian/c-ares(Debian:14) | < 1.27.0-1 | 1.27.0-1 |
| ubuntu/c-ares(Ubuntu:22.04) | < 1.18.1-1ubuntu0.22.04.3 | 1.18.1-1ubuntu0.22.04.3 |
| c-ares | = < 1.27.0 | No fix listed |
| alpine/c-ares(Alpine:v3.16) | < 1.19.1-r1 | 1.19.1-r1 |
| alpine/c-ares(Alpine:v3.17) | < 1.19.1-r1 | 1.19.1-r1 |
| alpine/c-ares(Alpine:v3.18) | < 1.19.1-r1 | 1.19.1-r1 |
| alpine/c-ares(Alpine:v3.19) | < 1.27.0-r0 | 1.27.0-r0 |
| alpine/c-ares(Alpine:v3.20) | < 1.27.0-r0 | 1.27.0-r0 |
| alpine/c-ares(Alpine:v3.21) | < 1.27.0-r0 | 1.27.0-r0 |
| alpine/c-ares(Alpine:v3.22) | < 1.27.0-r0 | 1.27.0-r0 |
| alpine/c-ares(Alpine:v3.23) | < 1.27.0-r0 | 1.27.0-r0 |
| alpine/c-ares(Alpine:v3.24) | < 1.27.0-r0 | 1.27.0-r0 |
| c-ares | < 1.27.0 | 1.27.0 |
| fedoraproject fedora | = 38 | No fix listed |
| fedoraproject fedora | = 39 | No fix listed |
| fedoraproject fedora | = 40 | No fix listed |
| ubuntu/c-ares(Ubuntu:Pro:16.04) | < 1.10.0-3ubuntu0.2+esm3 | 1.10.0-3ubuntu0.2+esm3 |
| ubuntu/c-ares(Ubuntu:Pro:16.04) | = 1.10.0-2 | No fix listed |
| ubuntu/c-ares(Ubuntu:Pro:16.04) | = 1.10.0-3 | No fix listed |
| ubuntu/c-ares(Ubuntu:Pro:16.04) | = 1.10.0-3ubuntu0.1 | No fix listed |
| ubuntu/c-ares(Ubuntu:Pro:16.04) | = 1.10.0-3ubuntu0.2 | No fix listed |
| ubuntu/c-ares(Ubuntu:Pro:16.04) | = 1.10.0-3ubuntu0.2+esm1 | No fix listed |
| ubuntu/c-ares(Ubuntu:Pro:16.04) | = 1.10.0-3ubuntu0.2+esm2 | No fix listed |
| ubuntu/c-ares(Ubuntu:Pro:18.04) | < 1.14.0-1ubuntu0.2+esm2 | 1.14.0-1ubuntu0.2+esm2 |
| ubuntu/c-ares(Ubuntu:Pro:18.04) | = 1.13.0-2 | No fix listed |
| ubuntu/c-ares(Ubuntu:Pro:18.04) | = 1.13.0-3 | No fix listed |
| ubuntu/c-ares(Ubuntu:Pro:18.04) | = 1.14.0-1 | No fix listed |
| ubuntu/c-ares(Ubuntu:Pro:18.04) | = 1.14.0-1ubuntu0.1 | No fix listed |
| ubuntu/c-ares(Ubuntu:Pro:18.04) | = 1.14.0-1ubuntu0.2 | No fix listed |
| ubuntu/c-ares(Ubuntu:Pro:18.04) | = 1.14.0-1ubuntu0.2+esm1 | No fix listed |
| ubuntu/c-ares(Ubuntu:20.04) | < 1.15.0-1ubuntu0.5 | 1.15.0-1ubuntu0.5 |
| ubuntu/c-ares(Ubuntu:20.04) | = 1.15.0-1build1 | No fix listed |
| ubuntu/c-ares(Ubuntu:20.04) | = 1.15.0-1ubuntu0.1 | No fix listed |
| ubuntu/c-ares(Ubuntu:20.04) | = 1.15.0-1ubuntu0.2 | No fix listed |
| ubuntu/c-ares(Ubuntu:20.04) | = 1.15.0-1ubuntu0.3 | No fix listed |
| ubuntu/c-ares(Ubuntu:20.04) | = 1.15.0-1ubuntu0.4 | No fix listed |
| ubuntu/c-ares(Ubuntu:22.04) | = 1.17.1-1ubuntu1 | No fix listed |
| ubuntu/c-ares(Ubuntu:22.04) | = 1.18.1-1 | No fix listed |
| ubuntu/c-ares(Ubuntu:22.04) | = 1.18.1-1build1 | No fix listed |
| ubuntu/c-ares(Ubuntu:22.04) | = 1.18.1-1ubuntu0.22.04.1 | No fix listed |
| ubuntu/c-ares(Ubuntu:22.04) | = 1.18.1-1ubuntu0.22.04.2 | No fix listed |
References
- MSRC Security Update Guide vendor-advisory
- fluent-bit vendor-advisory
- Debian Security Tracker CVE-2024-25629 vendor-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- USN-6676-1 vendor-advisory
- www.cve.org issue-tracking
- https://github.com/c-ares/c-ares/security/advisories/GHSA-mg26-v6qh-x48q issue-tracking vendor-advisory
- https://github.com/c-ares/c-ares/commit/a804c04ddc8245fc8adf0e92368709639125e183 patch
- lists.fedoraproject.org mailing-list
- lists.fedoraproject.org mailing-list
- lists.fedoraproject.org mailing-list
- security.alpinelinux.org vendor-advisory