CVE-2015-8865

NameCVE-2015-8865
DescriptionThe file_check_mem function in funcs.c in file before 5.23, as used in the Fileinfo component in PHP before 5.5.34, 5.6.x before 5.6.20, and 7.x before 7.0.5, mishandles continuation-level jumps, which allows context-dependent attackers to cause a denial of service (buffer overflow and application crash) or possibly execute arbitrary code via a crafted magic file.
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-460-1, DLA-499-1, DSA-3560-1
NVD severityhigh
Debian Bugs827377, 835032

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
file (PTS)jessie1:5.22+15-2+deb8u4fixed
jessie (security)1:5.22+15-2+deb8u5fixed
stretch1:5.30-1+deb9u2fixed
stretch (security)1:5.30-1+deb9u1fixed
buster1:5.35-4fixed
bullseye, sid1:5.37-5fixed
php5 (PTS)jessie5.6.33+dfsg-0+deb8u1fixed
jessie (security)5.6.40+dfsg-0+deb8u6fixed
php7.0 (PTS)stretch7.0.33-0+deb9u3fixed
stretch (security)7.0.33-0+deb9u5fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
filesource(unstable)1:5.24-1827377
filesourcejessie1:5.22+15-2+deb8u2
filesourcewheezy5.11-2+deb7u9DLA-460-1
hhvmsource(unstable)3.12.11+dfsg-1835032
php5source(unstable)5.6.20+dfsg-1
php5sourcejessie5.6.20+dfsg-0+deb8u1DSA-3560-1
php5sourcewheezy5.4.45-0+deb7u3DLA-499-1
php7.0source(unstable)7.0.5-1

Notes

http://bugs.gw.com/view.php?id=522
https://github.com/file/file/commit/6713ca45e7757297381f4b4cdb9cf5e624a9ad36
https://bugs.php.net/bug.php?id=71527
http://git.php.net/?p=php-src.git;a=commit;h=fe13566c93f118a15a96320a546c7878fd0cfc5e
PHP fixed in 7.0.5, 5.6.20, 5.5.34
http://www.openwall.com/lists/oss-security/2016/04/11/7
Fix in HHVM: https://github.com/facebook/hhvm/commit/4e614ba041e24af8351afbb49c92444c0850f23b

Search for package or bug name: Reporting problems