Description
An issue in file() was introduced in commit 9611f31313a93aa036389c5f3b15eea53510d4d1 (Oct 2016) lets an attacker overwrite a fixed 20 bytes stack buffer with a specially crafted .notes section in an ELF binary. This was fixed in commit 35c94dc6acc418f1ad7f6241a6680e5327495793 (Aug 2017).
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.32-1 | — |
| Debian 13 | file | 1:5.32-1 | — |
| Debian 12 | file | 1:5.32-1 | — |
| Debian 9 | file | 1:5.30-1+deb9u1 | DSA-3965-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | file | 5.40-1.14 | openSUSE-SU-2024:10755-1 |
Advisories 2
- DSA-3965-1 file - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:10755-1 file-5.40-1.14 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026