Description
A null pointer dereference bug affects the 16.02 and many old versions of p7zip. A lack of null pointer check for the variable folders.PackPositions in function CInArchive::ReadAndDecodePackedStreams in CPP/7zip/Archive/7z/7zIn.cpp, as used in the 7z.so library and in 7z applications, will cause a crash and a denial of service when decoding malformed 7z files.
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 13 | p7zip | 16.02+dfsg-2 | — |
| Debian 12 | p7zip | 16.02+dfsg-2 | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | p7zip | 16.02-2.1 | openSUSE-SU-2024:10322-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.17 | p7zip | 16.02-r1 | — |
| Alpine v3.16 | p7zip | 16.02-r1 | — |
| Alpine v3.15 | p7zip | 16.02-r1 | — |
| Alpine v3.14 | p7zip | 16.02-r1 | — |
| Alpine v3.13 | p7zip | 16.02-r1 | — |
Show 8 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.12 | p7zip | 16.02-r1 | — |
| Alpine v3.11 | p7zip | 16.02-r1 | — |
| Alpine v3.10 | p7zip | 16.02-r1 | — |
| Alpine v3.9 | p7zip | 16.02-r1 | — |
| Alpine v3.8 | p7zip | 16.02-r1 | — |
| Alpine v3.7 | p7zip | 16.02-r1 | — |
| Alpine v3.6 | p7zip | 16.02-r1 | — |
| Alpine v3.5 | p7zip | 16.02-r1 | — |
Advisories 1
- openSUSE-SU-2024:10322-1 p7zip-16.02-2.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026