Name | CVE-2014-9652 |
Description | The mconvert function in softmagic.c in file before 5.21, as used in the Fileinfo component in PHP before 5.4.37, 5.5.x before 5.5.21, and 5.6.x before 5.6.5, does not properly handle a certain string-length field during a copy of a truncated version of a Pascal string, which might allow remote attackers to cause a denial of service (out-of-bounds memory access and application crash) via a crafted file. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-145-1, DSA-3121-1, DSA-3126-1 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
file (PTS) | jessie, jessie (lts) | 1:5.22+15-2+deb8u7 | fixed |
stretch (security), stretch (lts), stretch | 1:5.30-1+deb9u3 | fixed | |
buster | 1:5.35-4+deb10u2 | fixed | |
buster (security), buster (lts) | 1:5.35-4+deb10u1 | fixed | |
bullseye (security), bullseye | 1:5.39-3+deb11u1 | fixed | |
bookworm | 1:5.44-3 | fixed | |
sid, trixie | 1:5.45-3 | fixed | |
php5 (PTS) | jessie, jessie (lts) | 5.6.40+dfsg-0+deb8u21 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
file | source | squeeze | (not affected) | |||
file | source | wheezy | 5.11-2+deb7u7 | |||
file | source | (unstable) | 1:5.21+15-1 | |||
php5 | source | squeeze | 5.3.3-7+squeeze24 | DLA-145-1 | ||
php5 | source | wheezy | 5.4.36-0+deb7u3 | |||
php5 | source | (unstable) | 5.6.5+dfsg-1 |
[squeeze] - file <not-affected> (The code was not vulnerable, confirmed with Valgrind on the test data submitted to upstream)
http://bugs.gw.com/view.php?id=398
https://github.com/file/file/commit/59e63838913eee47f5c120a6c53d4565af638158
https://bugs.php.net/bug.php?id=68735