GHSL-2026-124_GHSL-2026-134: Memory corruption, information disclosure, and denial of service in NanaZip - CVE-2026-54616, CVE-2026-44215, CVE-2026-47222, CVE-2026-47223, CVE-2026-42446, CVE-2026-47224, CVE-2026-42442, CVE-2026-42443, CVE-2026-42445, CVE-2026-42355, CVE-2026-42444
NanaZip's SquashFS LZ4 decompression wrapper only rejected a zero return from the LZ4 decompressor, so a negative error value was stored in an unsigned size and later used as a buffer length. A crafted SquashFS image could then make extraction copy heap memory past a cache buffer into the extracted file, leaking data or crashing the process.
The NanaZip project contains multiple security vulnerabilities, including out-of-bounds (OOB) reads and writes in various file systems (SquashFS, UFS, AVB), null pointer dereference, stack exhaustion, divide-by-zero errors, and unbounded memory allocation, which could lead to potential exploitation or application…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the decompression wrapper checked only for a zero return value and stored the signed result in an unsigned size type, so a negative error became a huge length that passed later bounds checks.
Impact
Adjacent heap memory could be copied into extracted files, disclosing data, and a read past mapped memory could crash the process; there is no write primitive.
What the attacker needed
Victim opens a crafted SquashFS image; victim extracts at least one file; no account needed
The fix
The wrapper should reject negative return values from the decompressor and write back the consumed input length, and the text says a release with the fixes was published.
How it was found
- Craft a SquashFS image that uses LZ4 compression.
- Make one fragment's compressed data malformed so the decompressor returns a negative value.
- Point a file inode at that fragment with an attacker-chosen offset.
- Extract the file in NanaZip so the fragment is read.
- Observe the copy reading past the cache buffer, leaking heap contents into the extracted file.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
When a program unpacks a compressed archive, it asks a decompression routine how many bytes it produced. Here that routine can report an error as a negative number, and the program stored it in a slot meant only for positive sizes, so the error turned into an enormous number. That huge number was trusted as a length, so the program copied data from beyond the end of its buffer, exposing whatever memory sat next to it.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.