Skip to content
Memory corruption Advisory Advanced CVE-2017-2779

National Instruments LabVIEW RSRC Arbitrary Null Write Code Execution Vulnerability

A memory corruption vulnerability in LabVIEW's RSRC segment parsing allows an attacker to write null values to arbitrary memory addresses by controlling loop counters and offsets in a crafted VI file. This could potentially lead to code execution.

Cory Duplantis Follow

Originally disclosed on Cisco Talos

High 7.5 View original

An exploitable memory corruption vulnerability exists in the RSRC segment parsing functionality of LabVIEW. A specially crafted VI file can cause an attacker controlled looping condition resulting in an arbitrary null write.

Cory Duplantis, 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, the RSRC segment parsing fails to validate loop counters and offsets, allowing an attacker to control the address written to during cleanup.

Impact

This could potentially be leveraged into code execution.

What the attacker needed

Victim opens a crafted VI file

How it was found

  1. Open a specially crafted VI file in LabVIEW.
  2. The RSRC segment is parsed and an internal structure is created.
  3. During cleanup, the loop counter and offsets from the RSRC segment are used to calculate addresses to clear.
  4. The loop writes null values to attacker-controlled addresses, causing a crash or potential code execution.

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.

LabVIEW is software for engineers to build measurement systems. A specially crafted file can trick LabVIEW into writing zeros to memory locations it shouldn't, which 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 Cory Duplantis

View all

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