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.
Originally disclosed on Cisco Talos
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.
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
- Craft an OLE file with a large value in the 'Number of Mini FAT sectors' field.
- Provide the file to Alyac for scanning.
- 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.