Description
zchunk before 1.5.5 contains a heap out-of-bounds read vulnerability in read_preface() in src/lib/header.c that passes the total header length instead of remaining bytes to compint parsing functions. Attackers can supply a crafted .zck file whose header ends inside a compressed integer, causing reads past the heap header buffer and crashing the application.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
zchunk zchunk
Default version status: unaffected
0 to < 1.5.5affected
References
- https://github.com/zchunk/zchunk/issues/119 ↗
- https://github.com/zchunk/zchunk ↗
- https://github.com/zchunk/zchunk/commit/02b371a64bf98245df97315d07c684a0ca5ea1df ↗
- https://github.com/zchunk/zchunk/releases/tag/1.5.5 ↗
- https://github.com/zchunk/zchunk/blob/1.5.4/src/lib/header.c#L167 ↗
- https://www.vulncheck.com/advisories/zchunk-before-1.5.5-heap-out-of-bounds-read-via-read-preface ↗