Skip to content

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.

PackageAffectedFixed inStatus
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

ProductAffected versionsFixed 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
ProductAffected versionsFixed 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