Description
The do_core_note function in readelf.c in libmagic.a in file 5.33 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.33-3 | — |
| Debian 13 | file | 1:5.33-3 | — |
| Debian 12 | file | 1:5.33-3 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | file | 1:5.32-2ubuntu0.1 | USN-3686-1 |
| Ubuntu 16.04 LTS | file | 1:5.25-2ubuntu1.1 | USN-3686-1 |
| Ubuntu 14.04 LTS | file | 1:5.14-2ubuntu3.4 | USN-3686-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 7 | file +4 | 5.11-36.el7 | RHSA-2020:1022 |
Show 5 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 7.7 EUS | file +4 | 5.11-35.el7_7.1 | RHSA-2020:2521 |
| RHEL 7.6 EUS | file +4 | 5.11-35.el7_6.1 | RHSA-2020:2838 |
| RHEL 7.4 TUS | file +4 | 5.11-33.el7_4.1 | RHSA-2020:2768 |
| RHEL 7.4 E4S | file +4 | 5.11-33.el7_4.1 | RHSA-2020:2768 |
| RHEL 7.4 AUS | file +4 | 5.11-33.el7_4.1 | RHSA-2020:2768 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 | file +1 | 5.32-7.5.1 | SUSE-SU-2019:0571-1 |
| SLES 12 SP4 | file +1 | 5.22-10.12.2 | SUSE-SU-2019:0839-1 |
| SLES 12 SP3 | file +1 | 5.22-10.12.2 | SUSE-SU-2019:0839-1 |
| SLES 12 SP3 | php5 | 5.5.14-109.38.1 | SUSE-SU-2018:2682-1 |
| SLES 12 | php5 | 5.5.14-109.38.1 | SUSE-SU-2018:2682-1 |
| SLES 11 SP4 | php53 | 5.3.17-112.28.1 | SUSE-SU-2018:2044-1 |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 12 SP4 | file | 5.22-10.12.2 | SUSE-SU-2019:0839-1 |
| SLES for SAP 12 SP3 | file | 5.22-10.12.2 | SUSE-SU-2019:0839-1 |
| SLES for SAP 11 SP4 | php53 | 5.3.17-112.28.1 | SUSE-SU-2018:2044-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | file | 5.40-1.14 | openSUSE-SU-2024:10755-1 |
| openSUSE Leap 15.0 | file +1 | 5.32-lp150.6.3.1 | openSUSE-SU-2019:0345-1 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2 | file +4 | 5.11-36.amzn2.0.1 | ALAS2-2020-1452 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 7 | file +4 | 5.11-36.el7 | ELSA-2020-1022 |
Advisories 14
- RHSA-2020:2838 Red Hat Security Advisory: file security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- RHSA-2020:2521 Red Hat Security Advisory: file security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- RHSA-2020:2768 Red Hat Security Advisory: file security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- RHSA-2020:1022 Red Hat Security Advisory: file security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- USN-3686-1 file vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- openSUSE-SU-2019:0345-1 Security update for file SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:2044-1 Security update for php53 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2019:0571-1 Security update for file SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:2682-1 Security update for php5 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2019:0839-1 Security update for file SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:10755-1 file-5.40-1.14 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2025-2548 Red Hat Enterprise Linux: Mehrere Schwachstellen BSI CERT-Bund (WID) · Dec 2, 2025
- ALAS2-2020-1452 Low: file security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Jul 17, 2020
- ELSA-2020-1022 Low: file security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Apr 6, 2020
References
- USN-3686-1 vendor-advisory
- https://github.com/file/file/commit/a642587a9c9e2dd7feacdf513c3643ce26ad3c22
- USN-3686-2 vendor-advisory
- GLSA-201806-08 vendor-advisory
- openSUSE-SU-2019:0345 vendor-advisory
- openSUSE-SU-2019:1197 vendor-advisory