Bug 2578197 (CVE-2026-17606) - CVE-2026-17606 7zip: Heap out-of-bounds read in ExtHandler (CHandler::Open2) via crafted ext2/3/4 image
Summary: CVE-2026-17606 7zip: Heap out-of-bounds read in ExtHandler (CHandler::Open2) ...
Keywords:
Status: NEW
Alias: CVE-2026-17606
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-11-20 13:01 UTC by OSIDB Bzimport
Modified: 2026-11-20 13:19 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-11-20 13:01:51 UTC
Summary

Product: 7-Zip (file archiver; the ext2/3/4 disk-image handler, `ExtHandler`).

Affected: 7-Zip 26.01 and all earlier versions (the ext parsing logic is unchanged back to 24.05).

Fixed: 7-Zip 26.02, released 2026-06-25 (git tag `f9d78aff`); the maintainer added the missing bitmap-capacity bound in `CHandler::Open2`.

Class and impact: heap out-of-bounds read (CWE-125) leading to a process crash (denial of service) when 7-Zip lists or extracts a crafted ext image. Read-only over-read.

Vendor confirmation: the maintainer accepted the report on 2026-06-19 and shipped the fix in 26.02.

Suggested description
> 7-Zip through 26.01 contains a heap out-of-bounds read in its ext (ext2/3/4) disk-image handler (CHandler::Open2 in CPP/7zip/Archive/ExtHandler.cpp). When 7-Zip lists or extracts a file it content-detects as an ext image, an inode-bitmap scan indexes a fixed-size heap buffer using an inode count from the image superblock that is not bounded against the buffer's capacity, so a crafted image drives an out-of-bounds read past the buffer. The over-read is read-only and does not reach any output, so the impact is a process crash (denial of service) on both listing and extraction, with no flags required. Fixed in 7-Zip 26.02.

Severity

CVSS 3.1: 6.5 (Medium), AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H.

CVSS 4.0: AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N.

Availability only. The crash reproduces on a normal (non-sanitized) build

References

7-Zip 26.02 release (fix):

 https://www.7-zip.org/and https://sourceforge.net/projects/sevenzip/files/7-Zip/26.02/

Source mirror (CPP/7zip/Archive/ExtHandler.cpp, CHandler::Open2):

 https://github.com/ip7z/7zip

7-Zip through 26.01 contains a heap out-of-bounds read in its ext (ext2/3/4) disk-image handler (=CHandler::Open2= in =CPP/7zip/Archive/ExtHandler.cpp=). When opening an ext-format image, =Open2= computes =numNodes= as the minimum of the superblock's =InodesPerGroup= and =NumInodes= fields — both taken directly, unvalidated, from the crafted superblock — and then scans an inode-presence bitmap (=nodesMap=) that is allocated with only =blockSize= bytes, where =blockSize= is the filesystem block size (itself attacker-controlled via the superblock's =BlockBits= field). The scan loop indexes =nodesMap[n >> 3]= for =n= from 0 up to =numNodes=, with no check that =numNodes= stays within the bitmap's =blockSize * 8=-bit capacity, so a crafted image with a large =InodesPerGroup=/=NumInodes= relative to a small block size drives an out-of-bounds heap read past the =nodesMap= allocation. The over-read is read-only and its result only gates whether an inode slot is treated as free or in use, so it does not reach output; the impact is a process crash (denial of service) when 7-Zip lists or extracts the crafted image. Fixed in 7-Zip 26.02 by bounding =numNodes= against =blockSize * 8= before the scan.


Note You need to log in before you can comment on or make changes to this bug.