⬢ DragonFlyBSD Kernel Audit
DF-4039 / verdict.json
← back to finding ↓ download raw
{
  "finding_id": "DF-4039",
  "status": "inconclusive",
  "reproduced": 0,
  "impact": "none",
  "confidence": "certain",
  "verdict": "Source-certain one-entry heap OOB reads (x2) in the fall-through tail of polaris10_get_dependency_volt_by_clk (polaris10_smumgr.c:396-411), exact fiji DF-4005 copy: when the requested clock exceeds every entry the loop exits with i == dep_table->count, then :403 reads entries[i].vddc (feeds phm_find_closest_vddci -> MinVoltage programmed to SMU) and :410 reads entries[i].mvdd as a branch condition. entries[] is allocated with exactly count records, so both reads consume adjacent-slab bytes. Demonstrated: run.log DF-4039 (phantom 0x42 byte consumed). Hardware-gated -> runtime inconclusive, source certain.",
  "exploit_chain": "crafted vBIOS dep table + a clock request above all entries (ACPI/boot levels, :1214/:1249 call sites) -> fall-through tail -> entries[count] reads past the heap object",
  "evidence": "run.log section DF-4039; VERDICT.md; fix_build.log; env.txt",
  "kernel_refs": [
    "sys/dev/drm/amd/powerplay/smumgr/polaris10_smumgr.c:396",
    "sys/dev/drm/amd/powerplay/smumgr/polaris10_smumgr.c:403",
    "sys/dev/drm/amd/powerplay/smumgr/polaris10_smumgr.c:410",
    "sys/dev/drm/amd/powerplay/hwmgr/hwmgr_ppt.h:51"
  ],
  "poc_changes": "Pass-2 reviewer authored demonstrator compiling the kernels own headers (smu74.h/smu74_discrete.h packed, or a verbatim copy of the drivers amdsentmsg/parsemsg arms) so struct geometry and branch selection are the kernels; fix.diff generated against the pristine file and compile-validated via full nativekernel rebuild on the guest (shared build with DF-4036..DF-4044, fix_build.log).",
  "attempts": 3,
  "guest_uname": "DragonFly dfbsd 6.5-DEVELOPMENT DragonFly 6.5-DEVELOPMENT #0: Thu Jul  2 06:02:54 UTC 2026 root@dfbsd:/usr/obj/usr/src/sys/X86_64_GENERIC x86_64",
  "runtime_sec": 200,
  "guest_dirty": 0,
  "build_cmd": "./build.sh",
  "run_cmd": "./run.sh",
  "code_hash": "a80c6d8179c5b51037b9b3c57bf5e23b8ff1b9791b667178a4b0fd8bf2b68475",
  "notes": "Hardware-gated (no Polaris GPU on guest; crafted-VBIOS threat model; amd-gpu absent per env.txt). Checklist kills: LinkLevel walk bounded (smu7_hwmgr.c:561-569 clamp), mc_reg walks not in this file, fan div0 = known DF-1345, VCE/UVD overflow = known DF-1346, Smio walks clamped.",
  "recommended_fix": "Use entries[i - 1] in both fall-through reads (fix.diff, mirrors the fiji fix)",
  "fix_status": "fixed",
  "fix_baseline_reproduced": 0,
  "fix_patched_reproduced": 0,
  "fix_kernel_uname": "DragonFly dfbsd 6.5-DEVELOPMENT DragonFly 6.5-DEVELOPMENT #0: Thu Jul  2 06:02:54 UTC 2026 root@dfbsd:/usr/obj/usr/src/sys/X86_64_GENERIC x86_64 (nativekernel X86_64_GENERIC rebuilt with all DF-4036..DF-4044 patches; 0 errors under -Werror; see fix_build.log)",
  "fix_verdict": "fixed (compile-validated): all nine patches applied together to the clean guest /usr/src copy (polaris10_smumgr.c md5 6f39bb32..->19a2b278.., amd.c f577a330..->54ce1518..), make -j4 nativekernel KERNCONF=X86_64_GENERIC completed RC=0 with 0 compile errors under -Werror; the patched polaris10_smumgr.o (amdgpu module) and amd.o (GENERIC kernel) both recompiled. Runtime re-test impossible on this guest (device absent). Sources restored to pristine and md5-verified after validation.",
  "fix_evidence": "findings/poc/DF-4039/fix.diff; findings/poc/DF-4039/fix_build.log (build banner + compile lines + 0 errors)"
}