Description
cdf_read_property_info in cdf.c in file through 5.37 does not restrict the number of CDF_VECTOR elements, which allows a heap-based buffer overflow (4-byte out-of-bounds write).
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.37-6 | — |
| Debian 13 | file | 1:5.37-6 | — |
| Debian 12 | file | 1:5.37-6 | — |
| Debian 10 | file | 1:5.35-4+deb10u1 | DSA-4550-1 |
| Debian 9 | file | 1:5.30-1+deb9u3 | DSA-4550-1 |
| Debian 9 | php7.0 | 7.0.33-0+deb9u11 | DLA-2708-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 8 | file | 1:5.22+15-2+deb8u6 | DLA-1969-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | file | 1:5.32-2ubuntu0.3 | USN-4172-1 |
| Ubuntu 16.04 LTS | file | 1:5.25-2ubuntu1.3 | USN-4172-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 14.04 LTS | file | 1:5.14-2ubuntu3.4+esm1 | USN-4172-2 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 8 | file +3 | 5.33-20.el8 | RHSA-2021:4374 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 8 | file +3 | 5.33-20.el8 | ALSA-2021:4374 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 8 | file | 5.33-20.el8 | RLSA-2021:4374 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP1 | file +1 | 5.32-7.8.1 | SUSE-SU-2020:1294-1 |
| SLES 12 SP5 | file +1 | 5.22-10.21.1 | SUSE-SU-2021:2930-1 |
| SLES 12 SP4 | file | 5.22-10.21.1 | SUSE-SU-2021:2930-1 |
| SLES 12 SP3 | file | 5.22-10.21.1 | SUSE-SU-2021:2930-1 |
| SLES 12 SP2 | file | 5.22-10.21.1 | SUSE-SU-2021:2930-1 |
Show 9 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 2 | python-magic | 5.32-7.8.1 | SUSE-SU-2020:1294-1 |
| SLES for SAP 12 SP5 | file | 5.22-10.21.1 | SUSE-SU-2021:2930-1 |
| SLES for SAP 12 SP4 | file | 5.22-10.21.1 | SUSE-SU-2021:2930-1 |
| SLES for SAP 12 SP3 | file | 5.22-10.21.1 | SUSE-SU-2021:2930-1 |
| SUSE OpenStack Cloud Crowbar 9 | file | 5.22-10.21.1 | SUSE-SU-2021:2930-1 |
| SUSE OpenStack Cloud Crowbar 8 | file | 5.22-10.21.1 | SUSE-SU-2021:2930-1 |
| SUSE OpenStack Cloud 9 | file | 5.22-10.21.1 | SUSE-SU-2021:2930-1 |
| SUSE OpenStack Cloud 8 | file | 5.22-10.21.1 | SUSE-SU-2021:2930-1 |
| SUSE HPE Helion OpenStack 8 | file | 5.22-10.21.1 | SUSE-SU-2021:2930-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | file | 5.40-1.14 | openSUSE-SU-2024:10755-1 |
| openSUSE Leap 15.1 | file +1 | 5.32-lp151.8.3.1 | openSUSE-SU-2020:0677-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | file | 5.37-r1 | — |
| Alpine v3.23 | file | 5.37-r1 | — |
| Alpine v3.22 | file | 5.37-r1 | — |
| Alpine v3.21 | file | 5.37-r1 | — |
| Alpine v3.20 | file | 5.37-r1 | — |
Show 13 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | file | 5.37-r1 | — |
| Alpine v3.18 | file | 5.37-r1 | — |
| Alpine v3.17 | file | 5.37-r1 | — |
| Alpine v3.16 | file | 5.37-r1 | — |
| Alpine v3.15 | file | 5.37-r1 | — |
| Alpine v3.14 | file | 5.37-r1 | — |
| Alpine v3.13 | file | 5.37-r1 | — |
| Alpine v3.12 | file | 5.37-r1 | — |
| Alpine v3.11 | file | 5.37-r1 | — |
| Alpine v3.10 | file | 5.37-r1 | — |
| Alpine v3.9 | file | 5.36-r1 | — |
| Alpine v3.8 | file | 5.32-r2 | — |
| Alpine v3.7 | file | 5.32-r2 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2 | file +4 | 5.11-35.amzn2.0.2 | ALAS2-2019-1370 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 8 | file +3 | 5.33-20.el8 | ELSA-2021-4374 |
Advisories 15
- ALSA-2021:4374 Moderate: file security update AlmaLinux Security Advisories · Oct 29, 2026
- WID-SEC-2022-0571 Red Hat Enterprise Linux: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jun 28, 2026
- RHSA-2021:4374 Red Hat Security Advisory: file security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- USN-4172-2 file vulnerability Ubuntu Security Notices (USN) · Apr 22, 2026
- USN-4172-1 file vulnerability Ubuntu Security Notices (USN) · Apr 22, 2026
- DSA-4550-1 file - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-1969-1 file - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-2708-1 php7.0 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- RLSA-2021:4374 Moderate: file security update Rocky Linux Security Advisories · Feb 4, 2026
- openSUSE-SU-2020:0677-1 Security update for file SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:2930-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
- SUSE-SU-2020:1294-1 Security update for file SUSE / openSUSE Security Updates · Feb 4, 2026
- ELSA-2021-4374 Moderate: file security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Nov 16, 2021
- ALAS2-2019-1370 Moderate: file security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Dec 18, 2019
References
- https://github.com/file/file/commit/46a8443f76cec4b41ec736eca396984c74664f84
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16780
- [debian-lts-announce] 20191023 [SECURITY] [DLA 1969-1] file security update mailing-list
- DSA-4550 vendor-advisory
- USN-4172-1 vendor-advisory
- USN-4172-2 vendor-advisory
- FEDORA-2019-554c3c691f vendor-advisory
- FEDORA-2019-97dcb2762a vendor-advisory
- FEDORA-2019-18036b898e vendor-advisory
- https://security.netapp.com/advisory/ntap-20200115-0001/
- GLSA-202003-24 vendor-advisory
- openSUSE-SU-2020:0677 vendor-advisory
- [debian-lts-announce] 20210715 [SECURITY] [DLA 2708-1] php7.0 security update mailing-list