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

NVIDIA nvdisasm REL section header parsing out-of-bounds write vulnerability

An out-of-bounds write vulnerability exists in the REL section header parsing of NVIDIA nvdisasm 12.9.88. A specially crafted ELF file can lead to arbitrary code execution.

Dimitrios Tatsis Follow

Originally disclosed on Cisco Talos

High 7.8 View original

An out-of-bounds write vulnerability exists in the REL section header parsing functionality of NVIDIA nvdisasm 12.9.88. A specially crafted ELF file can lead to a arbitrary 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

Likely an incorrect calculation of the buffer size and offset when parsing the REL section header, leading to a write beyond the allocated heap buffer.

Impact

An attacker could achieve arbitrary code execution by providing a malicious file.

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 REL section whose sh_size satisfies the condition (((sh_size - 1) >> 3) + 1) & 0x3 != 0.
  2. Run nvdisasm with the crafted file.
  3. The tool allocates a buffer based on sh_size and then writes beyond it.

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 CUDA binary files. When the tool processes a file with a specially crafted section size, it writes data past the end of a buffer it allocated, 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.