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, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more)
ReferencesDLA-1060-1, DSA-3952-1
NVD severityhigh (attack range: remote)
Debian Bugs870865

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
libxml2 (PTS)jessie (security), jessie2.9.1+dfsg1-5+deb8u6fixed
stretch (security), stretch2.9.4+dfsg1-2.2+deb9u2fixed
buster, sid2.9.4+dfsg1-7fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
libxml2source(unstable)2.9.4+dfsg1-3.1high870865
libxml2sourcejessie2.9.1+dfsg1-5+deb8u5highDSA-3952-1
libxml2sourcestretch2.9.4+dfsg1-2.2+deb9u1highDSA-3952-1
libxml2sourcewheezy2.8.0+dfsg1-7+wheezy9highDLA-1060-1

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://git.gnome.org/browse/libxml2/commit/?id=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