CVE-2023-31130 Buffer Underwrite in ares_inet_net_pton()
MediumCVSS 6.4
EPSS 0.39%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
Description
c-ares is an asynchronous resolver library. ares_inet_net_pton() is vulnerable to a buffer underflow for certain ipv6 addresses, in particular "0::00:00:00/2" was found to cause an issue. C-ares only uses this function internally for configuration purposes which would require an administrator to configure such an address via ares_set_sortlist(). However, users may externally use ares_inet_net_pton() for other purposes and thus be vulnerable to more severe issues. This issue has been fixed in 1.19.1.
Upgrade path
11 packages: 8 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| c-ares project c-ares | < 1.19.1 | 1.19.1 | Fixed |
| debian/c-ares(Debian 12) | < 1.18.1-3 | 1.18.1-3 | Fixed |
| debian/c-ares(Debian 13) | < 1.18.1-3 | 1.18.1-3 | Fixed |
| debian/c-ares(Debian 14) | < 1.18.1-3 | 1.18.1-3 | Fixed |
| ubuntu/c-ares(Ubuntu 20.04) | < 1.15.0-1ubuntu0.3; = 1.15.0-1build1; = 1.15.0-1ubuntu0.1; = 1.15.0-1ubuntu0.2 | 1.15.0-1ubuntu0.3 | Fixed |
| ubuntu/c-ares(Ubuntu 22.04) | < 1.18.1-1ubuntu0.22.04.2; = 1.17.1-1ubuntu1; = 1.18.1-1; = 1.18.1-1build1 +1 more | 1.18.1-1ubuntu0.22.04.2 | Fixed |
| ubuntu/c-ares(Ubuntu Pro 16.04) | < 1.10.0-3ubuntu0.2+esm2; = 1.10.0-2; = 1.10.0-3; = 1.10.0-3ubuntu0.1 +2 more | 1.10.0-3ubuntu0.2+esm2 | Fixed |
| ubuntu/c-ares(Ubuntu Pro 18.04) | < 1.14.0-1ubuntu0.2+esm1; = 1.13.0-2; = 1.13.0-3; = 1.14.0-1 +2 more | 1.14.0-1ubuntu0.2+esm1 | Fixed |
| c-ares | = < 1.19.1 | No fix listed | Versions listed |
| debian linux | = 10.0; = 11.0 | No fix listed | Versions listed |
| fedoraproject fedora | = 37; = 38 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/c-ares(Debian:12) | < 1.18.1-3 | 1.18.1-3 |
| debian/c-ares(Debian:13) | < 1.18.1-3 | 1.18.1-3 |
| debian/c-ares(Debian:14) | < 1.18.1-3 | 1.18.1-3 |
| c-ares | = < 1.19.1 | No fix listed |
| ubuntu/c-ares(Ubuntu:22.04) | < 1.18.1-1ubuntu0.22.04.2 | 1.18.1-1ubuntu0.22.04.2 |
| c-ares project c-ares | < 1.19.1 | 1.19.1 |
| fedoraproject fedora | = 37 | No fix listed |
| fedoraproject fedora | = 38 | No fix listed |
| debian linux | = 10.0 | No fix listed |
| debian linux | = 11.0 | No fix listed |
| ubuntu/c-ares(Ubuntu:Pro:16.04) | < 1.10.0-3ubuntu0.2+esm2 | 1.10.0-3ubuntu0.2+esm2 |
| 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:18.04) | < 1.14.0-1ubuntu0.2+esm1 | 1.14.0-1ubuntu0.2+esm1 |
| 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:20.04) | < 1.15.0-1ubuntu0.3 | 1.15.0-1ubuntu0.3 |
| 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 |
Show 5 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/c-ares(Ubuntu:20.04) | = 1.15.0-1ubuntu0.2 | 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 |
References
- Debian Security Tracker CVE-2023-31130 vendor-advisory
- https://github.com/c-ares/c-ares/security/advisories/GHSA-x6mf-cxr9-8q6v issue-tracking third-party-advisory
- https://github.com/c-ares/c-ares/releases/tag/cares-1_19_1 release-notes
- lists.fedoraproject.org mailing-list third-party-advisory
- lists.fedoraproject.org mailing-list third-party-advisory
- www.debian.org third-party-advisory
- lists.debian.org mailing-list
- security.gentoo.org third-party-advisory
- security.netapp.com
- Ubuntu CVE tracker issue-tracking vendor-advisory
- USN-6164-1 vendor-advisory
- USN-6164-2 vendor-advisory
- www.cve.org issue-tracking
- www.openwall.com issue-tracking