Skip to content
Memory corruption Advisory Advanced CVE-2023-39235CVE-2023-39234

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.

Claudio Bozzato Follow

Originally disclosed on Cisco Talos

High 7.8 View original

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.

Claudio Bozzato, 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 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

  1. Craft a .vzt file with controlled block data that influences change_dict and thus i2.
  2. Open the malicious .vzt file with GTKWave or a command-line tool like vzt2vcd.
  3. The program parses the file and reaches vzt_rd_process_block.
  4. 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.

More by Claudio Bozzato

View all

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