GTKWave VZT vzt_rd_process_block autosort out-of-bounds write vulnerabilities
Multiple out-of-bounds write vulnerabilities exist in the VZT vzt_rd_process_block autosort functionality of GTKWave 3.3.115. A specially crafted .vzt file can lead to arbitrary code execution.
Originally disclosed on Cisco Talos
Multiple out-of-bounds write vulnerabilities exist in the VZT vztrdprocessblock autosort functionality of GTKWave 3.3.115. A specially crafted .vzt file can lead to 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 autosort array is allocated with size b->num_time_ticks, but the index i2 used to write into it is derived from file-controlled data and is not bounds-checked.
Impact
A specially crafted .vzt file can lead to arbitrary code execution.
What the attacker needed
Victim opens a malicious .vzt file
The fix
Fixed in version 3.3.118.
How it was found
- Craft a .vzt file with controlled block data that influences change_dict and thus i2.
- Open the malicious .vzt file with GTKWave or a command-line tool like vzt2vcd.
- The program parses the file and reaches vzt_rd_process_block.
- The autosort array is written out-of-bounds using the controlled i2 index.
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.
GTKWave is a program for viewing electronic signal traces. A malicious trace file can trick the program into writing data outside its intended memory area, which could let an attacker run their own code on your computer. You would need to open the malicious file for this to happen.
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.