Description
do_core_note in readelf.c in libmagic.a in file 5.35 has an out-of-bounds read because memcpy is misused.
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.35-3 | — |
| Debian 13 | file | 1:5.35-3 | — |
| Debian 12 | file | 1:5.35-3 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | file | 1:5.32-2ubuntu0.2 | USN-3911-1 |
| Ubuntu 16.04 LTS | file | 1:5.25-2ubuntu1.2 | USN-3911-1 |
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 |
Show 2 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 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap 15.0 | file +1 | 5.32-lp150.6.3.1 | openSUSE-SU-2019:0345-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | file | 5.36-r0 | — |
| Alpine v3.23 | file | 5.36-r0 | — |
| Alpine v3.22 | file | 5.36-r0 | — |
| Alpine v3.21 | file | 5.36-r0 | — |
| Alpine v3.20 | file | 5.36-r0 | — |
Show 13 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | file | 5.36-r0 | — |
| Alpine v3.18 | file | 5.36-r0 | — |
| Alpine v3.17 | file | 5.36-r0 | — |
| Alpine v3.16 | file | 5.36-r0 | — |
| Alpine v3.15 | file | 5.36-r0 | — |
| Alpine v3.14 | file | 5.36-r0 | — |
| Alpine v3.13 | file | 5.36-r0 | — |
| Alpine v3.12 | file | 5.36-r0 | — |
| Alpine v3.11 | file | 5.36-r0 | — |
| Alpine v3.10 | file | 5.36-r0 | — |
| Alpine v3.9 | file | 5.36-r0 | — |
| Alpine v3.8 | file | 5.32-r1 | — |
| Alpine v3.7 | file | 5.32-r1 | — |
Advisories 4
- USN-3911-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-2019:0571-1 Security update for file SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2019:0839-1 Security update for file SUSE / openSUSE Security Updates · Feb 4, 2026
References
- https://bugs.astron.com/view.php?id=64
- https://github.com/file/file/commit/2858eaf99f6cc5aae129bcbf1e24ad160240185f
- openSUSE-SU-2019:0345 vendor-advisory
- USN-3911-1 vendor-advisory
- https://support.apple.com/kb/HT209599
- https://support.apple.com/kb/HT209601
- https://support.apple.com/kb/HT209600
- https://support.apple.com/kb/HT209602
- openSUSE-SU-2019:1197 vendor-advisory