NVIDIA nvdisasm REL section header parsing heap-based buffer overflow vulnerability
A heap-based buffer overflow exists in NVIDIA nvdisasm's parsing of REL section headers in ELF files. An attacker can provide a malicious ELF file to trigger the overflow, potentially leading to arbitrary code execution.
Originally disclosed on Cisco Talos
A heap-based buffer overflow vulnerability exists in the REL section header parsing functionality of NVIDIA nvdisasm 12.8.90. A specially crafted ELF 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
Likely a mismatch between the allocated buffer size and the number of bytes written due to incorrect size calculations from the sh_size field.
Impact
An attacker could achieve arbitrary code execution by providing a malicious ELF file.
What the attacker needed
Malicious ELF file; victim opens file with nvdisasm
The fix
The vulnerability was fixed in a vendor patch release.
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.
This report describes a memory corruption bug in a tool that reads ELF files. The tool calculates how much memory to allocate for a buffer, but then writes more data than that, overflowing the buffer. An attacker who can get the tool to open a malicious file could potentially 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.