CVE-2017-7376

NameCVE-2017-7376
DescriptionBuffer overflow in libxml2 allows remote attackers to execute arbitrary code by leveraging an incorrect limit for port values when handling redirects.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-1060-1, DSA-3952-1
Debian Bugs870865

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
libxml2 (PTS)jessie, jessie (lts)2.9.1+dfsg1-5+deb8u17fixed
stretch (security)2.9.4+dfsg1-2.2+deb9u7fixed
stretch (lts), stretch2.9.4+dfsg1-2.2+deb9u11fixed
buster, buster (lts)2.9.4+dfsg1-7+deb10u9fixed
buster (security)2.9.4+dfsg1-7+deb10u6fixed
bullseye2.9.10+dfsg-6.7+deb11u4fixed
bullseye (security)2.9.10+dfsg-6.7+deb11u5fixed
bookworm2.9.14+dfsg-1.3~deb12u1fixed
sid, trixie2.12.7+dfsg+really2.9.14-0.2fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
libxml2sourcewheezy2.8.0+dfsg1-7+wheezy9DLA-1060-1
libxml2sourcejessie2.9.1+dfsg1-5+deb8u5DSA-3952-1
libxml2sourcestretch2.9.4+dfsg1-2.2+deb9u1DSA-3952-1
libxml2source(unstable)2.9.4+dfsg1-3.1870865

Notes

https://bugzilla.gnome.org/show_bug.cgi?id=780690 (not yet public)
Android patch: https://android.googlesource.com/platform/external/libxml2/+/51e0cb2e5ec18eaf6fb331bc573ff27b743898f4
Fix upstream: https://gitlab.gnome.org/GNOME/libxml2/-/commit/5dca9eea1bd4263bfa4d037ab2443de1cd730f7e
The upstream patch has the slight consequence that some port values end up
negative when cast to a 32-bit int. A negative port though in the URL would
make the URL invalid. It is discussed if instead it would be best to prevent
the port from ever being negative. Upstream decided to leave the above patch.

Search for package or bug name: Reporting problems