# DF-1955 Verification

## Verdict
**SOURCE-CONFIRMED, INCONCLUSIVE-RUNTIME (HW/module gated).**

The cited defect exists in the audited source at `sys/dev/drm/amd/amdgpu/psp_v10_0.c:142-144`. Reproduction
on the running guest is **not possible** because the affected code path is
gated behind hardware that is not present in the audit QEMU/KVM guest
(no AMD/i915 GPU, no LSI MegaRAID, no MMC/SDHCI controller, no FireWire, no
ATAPI floppy, etc.) and/or lives in a kernel module that is not loaded on the
GENERIC-running guest.

## Mechanism (source-only confirmation)
amdgpu (not in GENERIC, no AMD HW). Source: psp_v10_0_init_microcode at L142-144 asd_ucode_size=le32_to_cpu(hdr->header.ucode_size_bytes); asd_start_addr=(uint8_t*)hdr+le32_to_cpu(hdr->header.ucode_array_offset_bytes). No range check; amdgpu_ucode_validate only checks datasize==size_bytes not inner offsets. Forged/corrupt firmware can craft offsets indexing past the blob.

## Recommended fix
Reject firmware whose ucode_array_offset + asd_ucode_size > asd_fw->size.

The full `git apply`-able diff lives in `fix.diff` in this folder; it was
applied as part of a single combined 41-finding kernel build that compiled
cleanly (rc=0, -Werror clean) — see `../fix_build_summary.txt`.

## Build validation
* `git apply --check` on this fix.diff: **OK**
* Combined kernel build (`X86_64_GENERIC`, INVARIANTS ON) with all 41
  findings' fix.diffs applied: **rc=0**, no warnings, no errors.
* The patched kernel was not booted/run because the affected code path
  requires hardware that the audit guest does not have.
