# DF-1803 — Verdict

**Severity:** Low
**Status:** REPRODUCED (source-only confirmation — driver/HW-gated, not runtime-triggered on QEMU guest)
**Impact:** leak:4
**Confidence:** certain

## Verdict
REPRODUCED. The cited bug is confirmed real in the audited source at `sys/dev/misc/snp/snp.c:588`.

## Mechanism
SNPGTTY writes *((cdev_t*)ap->a_data)=snp->snp_target — 8-byte kernel pointer into 4-byte dev_t buffer (SNPGTTY=_IOR(T,89,dev_t)); KASLR partial defeat + 4-byte overrun.

## Fix
Write dev2unit(snp->snp_target) as dev_t instead of the raw cdev_t pointer.

The full git-apply-able diff is in `fix.diff`.

## Build validation
fix.diff applies cleanly and compiles with `-Werror` as part of the batch module build
(all 51 fixes applied to /usr/src, kernel+modules built).

## Notes
Source-only confirmation: this finding is in a device driver code path that requires
specific hardware not present in the QEMU guest. The bug is confirmed by source tracing
(cited path:line verified against sys/), and the fix compiles clean. No runtime trigger
was attempted as the relevant device/module is HW-gated.
