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.
Originally disclosed on Cisco Talos
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.
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
- Open a specially crafted VI file in LabVIEW.
- The RSRC segment is parsed and an internal structure is created.
- During cleanup, the loop counter and offsets from the RSRC segment are used to calculate addresses to clear.
- 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.