CVE-2022-4904

NameCVE-2022-4904
DescriptionA flaw was found in the c-ares package. The ares_set_sortlist is missing checks about the validity of the input string, which allows a possible arbitrary length stack overflow. This issue may cause a denial of service or a limited impact on confidentiality and integrity.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-3323-1, ELA-800-1
Debian Bugs1031525

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
c-ares (PTS)jessie, jessie (lts)1.10.0-2+deb8u7fixed
stretch (security)1.12.0-1+deb9u2vulnerable
stretch (lts), stretch1.12.0-1+deb9u6fixed
buster (security), buster, buster (lts)1.14.0-1+deb10u4fixed
bullseye (security), bullseye1.17.1-1+deb11u3fixed
bookworm1.18.1-3fixed
sid, trixie1.34.2-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
c-aressourcejessie1.10.0-2+deb8u4ELA-800-1
c-aressourcestretch1.12.0-1+deb9u3ELA-800-1
c-aressourcebuster1.14.0-1+deb10u2DLA-3323-1
c-aressourcebullseye1.17.1-1+deb11u2
c-aressource(unstable)1.18.1-21031525

Notes

https://bugzilla.redhat.com/show_bug.cgi?id=2168631
https://github.com/c-ares/c-ares/pull/497
https://github.com/c-ares/c-ares/commit/9903253c347f9e0bffd285ae3829aef251cc852d (cares-1_19_0)

Search for package or bug name: Reporting problems