Skip to content
Memory corruption Advisory Advanced CVE-2025-23340

NVIDIA nvdisasm RELA section parsing out-of-bounds write vulnerability

An out-of-bounds write vulnerability exists in the RELA section parsing of NVIDIA nvdisasm 12.8.90. A specially crafted ELF file with a RELA section size less than 12 can cause multiple heap out-of-bounds writes with attacker-controlled data, potentially leading to code execution.

Dimitrios Tatsis Follow

Originally disclosed on Cisco Talos

High 7.8 View original

An out-of-bounds write vulnerability exists in the RELA section parsing functionality of NVIDIA nvdisasm 12.8.90. A specially crafted ELF file can lead to code execution.

Dimitrios Tatsis, 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 allocation size calculation for RELA sections returns zero for sizes less than 12, and the subsequent addition of 8 bytes for heap metadata results in a pointer that already points past the allocated buffer, leading to out-of-bounds writes.

Impact

A crafted ELF file could lead to code execution with the privileges of the user running nvdisasm.

What the attacker needed

Victim opens a malicious ELF file with nvdisasm

The fix

The vendor released a patch on 2025-09-23.

How it was found

  1. Craft an ELF file with a RELA section whose sh_size is less than 12.
  2. Run nvdisasm on the crafted ELF file.
  3. The tool allocates a small buffer and writes beyond it, causing memory corruption.

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. When the tool processes a file with a specially crafted section size, it writes data past the end of a small memory buffer, which can crash the program or allow an attacker to 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 Dimitrios Tatsis

View all

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