Skip to content
Memory corruption Advisory Advanced CVE-2022-29886

ESTsoft Alyac OLE header Mini FAT sectors integer overflow

An integer overflow in the parsing of the 'Number of Mini FAT sectors' field in OLE files leads to a heap buffer overflow. An attacker can provide a malicious OLE file to trigger arbitrary code execution.

Jaewon Min Follow

Originally disclosed on Cisco Talos

High 7.3 View original

An integer overflow vulnerability exists in the way ESTsoft Alyac 2.5.8.544 parses OLE files. A specially-crafted OLE file can lead to a heap buffer overflow, which can result in arbitrary code execution.

Jaewon Min, 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

The multiplication of the number of sectors by the sector size is performed using 32-bit arithmetic, causing an integer overflow that results in an undersized heap allocation.

What the attacker needed

Victim scans a malicious OLE file

The fix

The vendor released a patch on 2022-08-03.

How it was found

  1. Craft an OLE file with a large value in the 'Number of Mini FAT sectors' field.
  2. Provide the file to Alyac for scanning.
  3. Alyac parses the file, triggering the integer overflow and heap buffer overflow.

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 flaw in an antivirus program when it reads a certain type of file (OLE files). The program calculates how much memory to reserve for part of the file, but the calculation can wrap around to a small number, so it reserves too little memory. Later, it copies more data than fits, overflowing the memory and potentially allowing 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 Jaewon Min

View all

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