Summary
Multiple security issues have been
found in file, a tool/library to determine a file type. Processing a malformed file could result in denial of service. Most of the changes are related to parsing ELF files.
As part of the fixes, several limits on aspects of the detection were added or tightened, sometimes resulting in messages like recursion limit exceeded or too many program header sections.
To mitigate such shortcomings, these limits are controllable by a new - -P, --parameter option in the file program.
Solution
For the stable distribution (wheezy),
these problems have been fixed in version 5.11-2+deb7u7.
For the upcoming stable distribution (jessie), these problems will be fixed soon.
For the unstable distribution (sid), these problems have been fixed in version 1:5.21+15-1.
We recommend that you upgrade your file packages.
Insight
File tests each argument in an attempt
to classify it. There are three sets of tests, performed in this order:
filesystem tests, magic number tests, and language tests. The first test that succeeds causes the file type to be printed.
Affected
file on Debian Linux
Detection
This check tests the installed software version using the apt package manager.
References
Updated on 2015-03-25
Severity
Classification
-
CVE CVE-2014-8116, CVE-2014-8117, CVE-2014-9620 -
CVSS Base Score: 5.0
AV:N/AC:L/Au:N/C:N/I:N/A:P
Related Vulnerabilities