Description
libheif 1.4.0 has a use-after-free in heif::HeifContext::Image::set_alpha_channel in heif_context.h because heif_context.cc mishandles references to non-existing alpha images.
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 | libheif | 1.3.2-2 | — |
| Debian 13 | libheif | 1.3.2-2 | — |
| Debian 12 | libheif | 1.3.2-2 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 22.04 LTS | libheif | 1.12.0-2ubuntu0.1~esm1 | USN-6847-1 |
| Ubuntu Pro 20.04 LTS | libheif | 1.6.1-1ubuntu0.1~esm1 | USN-6847-1 |
| Ubuntu Pro 18.04 LTS | libheif | 1.1.0-2ubuntu0.1~esm1 | USN-6847-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | libheif | 1.5.0-r0 | — |
| Alpine v3.23 | libheif | 1.5.0-r0 | — |
| Alpine v3.22 | libheif | 1.5.0-r0 | — |
| Alpine v3.21 | libheif | 1.5.0-r0 | — |
| Alpine v3.20 | libheif | 1.5.0-r0 | — |
Show 9 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | libheif | 1.5.0-r0 | — |
| Alpine v3.18 | libheif | 1.5.0-r0 | — |
| Alpine v3.17 | libheif | 1.5.0-r0 | — |
| Alpine v3.16 | libheif | 1.5.0-r0 | — |
| Alpine v3.15 | libheif | 1.5.0-r0 | — |
| Alpine v3.14 | libheif | 1.5.0-r0 | — |
| Alpine v3.13 | libheif | 1.5.0-r0 | — |
| Alpine v3.12 | libheif | 1.5.0-r0 | — |
| Alpine v3.11 | libheif | 1.5.0-r0 | — |
Advisories 1
- USN-6847-1 libheif vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026