Description
The donote function in readelf.c in file through 5.20, as used in the Fileinfo component in PHP 5.4.34, does not ensure that sufficient note headers are present, which allows remote attackers to cause a denial of service (out-of-bounds read and application crash) via a crafted ELF file.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | file | 1:5.20-2 | — |
| Debian 13 | file | 1:5.20-2 | — |
| Debian 12 | file | 1:5.20-2 | — |
| Debian 7 | file | 5.11-2+deb7u6 | DSA-3072-1 |
| Debian 7 | php5 | 5.4.35-0+deb7u1 | DSA-3074-1 |
| Debian 6.0 | file | 5.04-5+squeeze8 | DLA-86-1 |
| Debian 6.0 | php5 | 5.3.3-7+squeeze23 | DLA-94-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 14.04 LTS | file | 1:5.14-2ubuntu3.3 | USN-2494-1 |
| Ubuntu 14.04 LTS | php5 | 5.5.9+dfsg-1ubuntu4.5 | USN-2391-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 7 | file +4 | 5.11-31.el7 | RHSA-2015:2155 |
| RHEL 7 | php +24 | 5.4.16-23.el7_0.3 | RHSA-2014:1767 |
| RHEL 6 | file +4 | 5.04-30.el6 | RHSA-2016:0760 |
| RHEL 6 | php +26 | 5.3.3-40.el6_6 | RHSA-2014:1767 |
| RHEL 5 | php53 +20 | 5.3.3-26.el5_11 | RHSA-2014:1768 |
| RHEL 1 | php54-php +24 | 5.4.16-22.el6 | RHSA-2014:1765 |
| RHEL 1 | php55-php +26 | 5.5.6-13.el6 | RHSA-2014:1766 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | file | 5.29-2.1 | openSUSE-SU-2024:10221-1 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 7 | file +4 | 5.11-31.el7 | ELSA-2015-2155 |
| Oracle Linux 7 | php +24 | 5.4.16-23.el7_0.3 | ELSA-2014-1767 |
| Oracle Linux 7 | php-zts +2 | 5.3.3-40.el6_6 | ELSA-2014-1767 |
Advisories 15
- RHSA-2016:0760 Red Hat Security Advisory: file security, bug fix, and enhancement update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2015:2155 Red Hat Security Advisory: file security and bug fix update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2014:1768 Red Hat Security Advisory: php53 security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2014:1766 Red Hat Security Advisory: php55-php security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2014:1767 Red Hat Security Advisory: php security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2014:1765 Red Hat Security Advisory: php54-php security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- USN-2494-1 file vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- USN-2391-1 php5 vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- DLA-94-1 php5 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-86-1 file - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-3072-1 file - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-3074-1 php5 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:10221-1 file-5.29-2.1 on GA media SUSE / openSUSE Security Updates · May 7, 2025
- ELSA-2015-2155 Moderate: file security and bug fix update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Nov 23, 2015
- ELSA-2014-1767 Important: php security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Oct 30, 2014
References
- https://bugs.php.net/bug.php?id=68283
- http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=1803228597e82218a8c105e67975bc50e6f5bf0d
- 62347 third-party-advisory
- RHSA-2014:1767 vendor-advisory
- USN-2391-1 vendor-advisory
- https://github.com/file/file/commit/39c7ac1106be844a5296d3eb5971946cc09ffda0
- https://support.apple.com/HT204659
- 61982 third-party-advisory
- http://www.oracle.com/technetwork/topics/security/linuxbulletinapr2016-2952096.html
- 61763 third-party-advisory
- http://linux.oracle.com/errata/ELSA-2014-1767.html
- RHSA-2014:1766 vendor-advisory
- FreeBSD-SA-14:28 vendor-advisory
- http://linux.oracle.com/errata/ELSA-2014-1768.html
- DSA-3072 vendor-advisory
- RHSA-2016:0760 vendor-advisory
- http://www.oracle.com/technetwork/topics/security/bulletinjul2015-2511963.html
- USN-2494-1 vendor-advisory
- http://www.oracle.com/technetwork/topics/security/linuxbulletinoct2015-2719645.html
- APPLE-SA-2015-04-08-2 vendor-advisory
- 61970 third-party-advisory
- 1031344 vdb-entry
- http://www.oracle.com/technetwork/topics/security/bulletinjan2015-2370101.html
- RHSA-2014:1765 vendor-advisory
- openSUSE-SU-2014:1516 vendor-advisory
- RHSA-2014:1768 vendor-advisory
- GLSA-201701-42 vendor-advisory
- 60699 third-party-advisory
- GLSA-201503-03 vendor-advisory
- 70807 vdb-entry
- 60630 third-party-advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1155071
- 62559 third-party-advisory