Skip to content
Memory corruption Advisory Advanced CVE-2021-21871

PowerISO DMG File Format Handler memory corruption vulnerability

PowerISO 7.9 fails to properly check the output buffer size when inflating ZLIB-compressed data inside a DMG file, leading to an out-of-bounds write. An attacker can provide a malicious DMG file to trigger memory corruption, potentially leading to code execution.

Piotr Bania Follow

Originally disclosed on Cisco Talos

High 8.8 View original

A memory corruption vulnerability exists in the DMG File Format Handler functionality of PowerISO 7.9. A specially crafted DMG file can lead to an out-of-bounds write.

Piotr Bania, on Cisco Talos

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 ZLIB decompression routine does not verify that the output buffer has enough space before writing decompressed data, allowing writes beyond the allocated buffer.

Impact

An attacker could cause memory corruption, potentially leading to code execution with the privileges of the user opening the file.

What the attacker needed

Victim opens a malicious DMG file

The fix

The vendor fixed it in a bug-release of the current version.

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 you open a DMG file, PowerISO decompresses parts of it using a method called ZLIB. The program does not check if the decompressed data fits into the memory buffer it allocated, so it writes past the end of the buffer. This can crash the program or allow an attacker to run their own code.

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.

More by Piotr Bania

View all

94 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.