# DF-0059 — REPRODUCED (source-only, root-only kldload)

## Build
```sh
sh build.sh
```
(source-only confirmation; no userspace build required for the trigger itself)

## Run
```sh
sh run.sh
```

## Expected
none (root-only) on the unfixed kernel; after applying `fix.diff` the cited defect is closed.
This finding was verified by source-tracing `sys/kern/link_elf.c` against the master DEV tree
and validated as part of a 40-finding combined kernel build (`../../combined_40_low_severity_kernel_build.log`).

## Mechanism
link_elf_load_file: segs[2] uninit stack at :399; :531 checks phdyn!=NULL but NOT nsegs==2; :541-542 unconditionally derefs segs[0]->p_vaddr and segs[1]->p_vaddr+segs[1]->p_memsz. Crafted ELF with PT_DYNAMIC but 0/1 PT_LOAD → wild deref.
