Skip to content
Memory corruption Advisory Advanced CVE-2016-8715

Iceni Argus icnChainAlloc Signed Comparison Code Execution Vulnerability

A heap corruption vulnerability exists in the loadTrailer function of Iceni Argus 6.6.05 when processing a crafted PDF file. An attacker could exploit this to cause arbitrary code execution.

Marcin 'Icewall' Noga Follow

Originally disclosed on Cisco Talos

High 8.8 View original

An exploitable heap corruption vulnerability exists in the loadTrailer functionality of Iceni Argus version 6.6.05. A specially crafted PDF file can cause a heap corruption resulting in arbitrary code execution.

Marcin 'Icewall' Noga, 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 a signed integer comparison in the custom memory allocator allows a negative size to bypass allocation checks, leading to a buffer overflow in a subsequent memset.

Impact

An attacker could cause heap corruption and potentially achieve arbitrary code execution by providing a malicious PDF file.

What the attacker needed

Victim opens a malicious PDF; Iceni Argus version 6.6.05

How it was found

  1. Create a PDF file with a trailer dictionary containing a Size field set to a negative value.
  2. Open the PDF with the Iceni Argus converter.
  3. The converter calls loadTrailer, which calculates a size based on the Size field.
  4. The size is passed to icnChainAlloc, which due to signed comparison does not allocate new memory.
  5. The returned pointer is used in memset with the large size, causing an out-of-bounds write.

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.

This report describes a bug in a program that converts PDF files to web pages. When the program reads a special value from a PDF file, it miscalculates how much memory to reserve, then writes past the end of that memory. This can crash the program or let an attacker 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 Marcin 'Icewall' Noga

View all

146 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.