# DF-1424 — Verification Verdict

## Verdict: CONFIRMED-BY-SOURCE-TRACE (root-only)

**Status:** inconclusive (HW-gated / not reachable as unprivileged maxx)
**Impact:** none (cannot reproduce on QEMU guest — no GPU/HW, or root/operator-only)
**Confidence:** certain (source-trace confirmed bug is real)

## Mechanism

iir_intr (:1600-1626): completion path re-reads ucmd->u.{ioctl.param_size, cache.BlockCnt, raw.sdlen} from live user memory (no copyin/snapshot). Validated at submit (:1015-1037) but tsleep window allows concurrent rewrite. Inflated size → bcopy(gc_scratch,ucmd->data,cnt) OOB reads 3072B scratch into adjacent kernel heap → user memory. /dev/iir0 mode 0600 (root only).

**Source:** `sys/dev/raid/iir/iir.c:1600-1626`

## Why it cannot be reproduced on this guest

Root-only. /dev/iir0 is mode 0600 (root only). Also requires IIR RAID controller hardware.

## Phase 6: Escalation Assessment

This is a **Root-only + HW-gated (iir RAID)** finding. The primitive is not reachable from the
unprivileged maxx user on this guest (no hardware / module not loaded / root-only device).
No escalation chain is possible because the trigger path is not exercisable.

For GPU findings: the module (radeon.ko/amdgpu.ko/i915.ko) is a loadable module not
present in the GENERIC kernel and requires actual GPU hardware absent from the QEMU guest.
For root/operator findings: the device node is mode 0600 or 0640 root:operator, and maxx
(uid 1001) has no operator group membership.

## Fix

Re-validate cnt against GDT_SCRATCH_SZ at completion before bcopy.

**Fix description:** Re-clamp cnt to GDT_SCRATCH_SZ at interrupt completion before bcopy.

The full git-apply-able diff is in `fix.diff`. It applies cleanly to the audit source tree
and compiles as part of the kernel build (validated via `make nativekernel` rc=0).

## Classification

- **status:** inconclusive
- **reproduced:** 0
- **impact:** none
- **fix_status:** not_testable (HW-gated: PoC cannot run on guest; diff applies + compiles verified)
