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

National Instruments LabVIEW LvVarientUnflatten Code Execution Vulnerability

A heap-based buffer overflow in LabVIEW's LvVarientUnflatten functionality allows a crafted VI file to use a user-controlled value as a loop terminator, causing internal heap corruption. An attacker could exploit this to achieve remote code execution.

Cory Duplantis Follow

Originally disclosed on Cisco Talos

High 7.5 View original

An exploitable memory corruption vulnerability exists in the LvVarientUnflatten functionality of LabVIEW 2016 version 16.0.0.49152. A specially crafted VI file can cause a user controlled value to be used as a loop terminator resulting in internal heap corruption.

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 program reads a 32-bit value from the file and uses it as a loop counter without validating it, leading to excessive heap clearing.

Impact

Exploitation could lead to remote code execution.

What the attacker needed

Victim opens a crafted VI file

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 and control systems. A specially crafted file can trick the program into clearing too much of its own memory, which can crash it 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.