Skip to content
DoS Write-up Intermediate

Hunting Bugs in Oracle’s Userspace dtrace using AI: CVE-2026–

Two ELF parsing bugs in the root-privileged userspace dtrace tool: a divide-by-zero when a symbol table section header has a zero entry size, and an out-of-bounds heap read when a section's sh_link index is not bounds-checked. An unprivileged user could crash dtrace when a root operator attaches to their process, and the out-of-bounds read could potentially be used as a foothold for further exploitation.

gujjuboy10x00 Follow

Published on medium.com

A few weeks ago I started poking at dtrace(1) on Oracle Linux. Most people think of dtrace as a kernel tracing tool, and it is — but the userspace half of dtrace is also a sizeable native binary that runs as root and willingly parses ELF files supplied by an unprivileged target process.

Gujjuboy10x00, on medium.com

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 write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The ELF parser in dtrace's libproc trusts section-header fields without validation: it divides by sh_entsize without checking for zero, and indexes a section cache with sh_link without checking it is less than e_shnum.

Impact

An unprivileged user can crash the root dtrace process whenever an operator attaches to their PID, and the out-of-bounds read could provide a foothold toward further exploitation in a privileged context, though the text does not claim working code execution.

What the attacker needed

Unprivileged local user can run binaries; root operator runs dtrace -p on that PID

The fix

Oracle added a zero check before dividing by sh_entsize and a bounds check before indexing the section cache with sh_link, plus extra hardening for program headers, string-table termination and symbol-table cross-references; the fixes shipped in dtrace-2.0.7-4.

How it was found

  1. Compile a trivial hello-world C program to get a structurally valid ELF binary.
  2. Mutate one numeric field in a section header, such as sh_entsize or sh_link.
  3. Fork a process that maps and executes the mutated binary so it exists as a live PID.
  4. From a root shell, run dtrace -p against that PID and observe the result.

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 write-up has not been written yet. The Original tab links to the source.

dtrace is a tracing tool that a system administrator runs as root to inspect other programs. When it attaches to a program, it reads that program's executable file, which an ordinary user can craft. The bugs mean a malicious file can make dtrace crash, or read memory it should not, while running with root powers.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

More by gujjuboy10x00

View all

14 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.