CVE-2026-48104
CVE-2026-48104 · GHSL-2026-120: 7-Zip SquashFS BlockToNode uninitialized heap read
This page contains facts from public vulnerability sources. Check the original advisory before updating.
7-Zip is a file archiver with a high compression ratio. Versions 9.18 through 26.00 contain an uninitialized heap read in the SquashFS archive handler caused by a sparsely populated index array. In the SquashFS handler, _blockToNode is allocated with capacity for every metadata block but populated only when an inode crosses a block boundary, so a crafted image with few inodes spanning many blocks leaves most slots holding raw heap contents (the underlying allocator does not zero-initialize POD storage). When OpenDir looks up an attacker-influenced blockIndex (derived from the RootInode superblock field), it reads two of these uninitialized slots and passes them as the left/right bounds of a binary search over _nodesPos, which dereferences the midpoint without bounds checking; if the resulting value happens to match the search key, the returned index is used to read a full node struct from _nodes whose fields feed further directory parsing, forming a chained OOB read primitive that is heap-layout-dependent and not reliably triggerable. The SquashFS handler is enabled by default in stock 7z.dll and the issue triggers during Open() with no interaction beyond opening the file; impact is denial of service from wild-pointer dereference and potential heap information disclosure, with no write primitive. Version 26.01 fixes the issue.
CVSS 4.2 · Medium · EPSS 0.2% · Fix available
- Published
- Updated
Stack: system
Affected products and versions
7-zip
- Versions
- >= 9.18, < 26.01: Affected
No fix published
7zip Debian:12
- Versions
- 22.01+dfsg-10~exp1
- 22.01+dfsg-8
- 22.01+dfsg-8+deb12u1
- 22.01+dfsg-9
- 22.01+really25.01+dfsg-0+deb12u1
- Affected ranges
- ECOSYSTEM: < 22.01+really26.01+dfsg-0+deb12u1
Update to 22.01+really26.01+dfsg-0+deb12u1
7zip Debian:13
- Versions
- 24.09+dfsg-8
- 25.00+dfsg-1
- 25.01+dfsg-1
- 25.01+dfsg-1~deb13u1
- 25.01+dfsg-1~deb13u1~bpo12+1
- 25.01+dfsg-1~deb13u2
- 25.01+dfsg-2
- 25.01+dfsg-3
- 25.01+dfsg-4
- 25.01+dfsg-5
- 26.00+dfsg-1
- 26.00+dfsg-2
- 26.00+dfsg-3
- 26.00+dfsg-4
- 26.00+dfsg-5
- 26.00+dfsg1-1
- 26.00+dfsg1-2
- 26.00+dfsg1-3
- 26.01+dfsg-1
- 26.01+dfsg-2
- 26.01+dfsg-3
- 26.02+dfsg-1
- 26.02+dfsg-2
- 26.02+dfsg-3
- 26.03+dfsg-1
- 26.03+dfsg-2
- 26.03+dfsg-3
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
7zip Debian:14
- Versions
- 24.09+dfsg-8
- 25.00+dfsg-1
- 25.01+dfsg-1
- 25.01+dfsg-1~deb13u1
- 25.01+dfsg-1~deb13u1~bpo12+1
- 25.01+dfsg-1~deb13u2
- 25.01+dfsg-2
- 25.01+dfsg-3
- 25.01+dfsg-4
- 25.01+dfsg-5
- 26.00+dfsg-1
- 26.00+dfsg-2
- 26.00+dfsg-3
- 26.00+dfsg-4
- 26.00+dfsg-5
- 26.00+dfsg1-1
- 26.00+dfsg1-2
- 26.00+dfsg1-3
- Affected ranges
- ECOSYSTEM: < 26.01+dfsg-1
Update to 26.01+dfsg-1
p7zip Debian:12
- Versions
- 16.02+dfsg-8
- 16.02+really25.01+dfsg-0+deb12u1
- Affected ranges
- ECOSYSTEM: < 16.02+really26.01+dfsg-0+deb12u1
Update to 16.02+really26.01+dfsg-0+deb12u1
p7zip Debian:13
- Affected ranges
- ECOSYSTEM: < 16.02+transitional.1
Update to 16.02+transitional.1
p7zip Ubuntu:14.04:LTS
- Versions
- 9.20.1~dfsg.1-4
- 9.20.1~dfsg.1-4+deb7u1build0.14.04.1
- 9.20.1~dfsg.1-4+deb7u2build0.14.04.1
- 9.20.1~dfsg.1-4+deb7u3build0.14.04.1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
p7zip Ubuntu:16.04:LTS
- Versions
- 9.20.1~dfsg.1-4.2
- 9.20.1~dfsg.1-4.2ubuntu0.1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
p7zip Ubuntu:18.04:LTS
- Versions
- 16.02+dfsg-4
- 16.02+dfsg-5
- 16.02+dfsg-6
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
p7zip Ubuntu:20.04:LTS
- Versions
- 16.02+dfsg-7
- 16.02+dfsg-7build1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
p7zip Ubuntu:22.04:LTS
- Versions
- 16.02+dfsg-8
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
7zip Ubuntu:Pro:22.04:LTS
- Versions
- 21.03~beta+dfsg-6
- 21.04~beta+dfsg-1
- 21.06+dfsg-1
- 21.07+dfsg-1
- 21.07+dfsg-2
- 21.07+dfsg-3
- 21.07+dfsg-4
- 21.07+dfsg-4ubuntu0.1~esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
7zip Ubuntu:Pro:24.04:LTS
- Versions
- 23.01+dfsg-3
- 23.01+dfsg-7
- 23.01+dfsg-8
- 23.01+dfsg-11
- 23.01+dfsg-11ubuntu0.1~esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
7zip Ubuntu:25.10
- Versions
- 24.09+dfsg-7
- 24.09+dfsg-8
- 25.00+dfsg-1
- 25.01+dfsg-1
- 25.01+dfsg-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
7zip Ubuntu:26.10
- Versions
- 26.00+dfsg-1
- 26.01+dfsg-2
- 26.01+dfsg-3
- 26.02+dfsg-1
- 26.02+dfsg-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
7zip Ubuntu:26.04:LTS
- Versions
- 25.01+dfsg-2
- 25.01+dfsg-3
- 25.01+dfsg-4
- 25.01+dfsg-5
- 26.00+dfsg-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published