DF-3802 / verdict.json
{ "finding_id": "DF-3802", "status": "not_reproduced", "reproduced": 0, "impact": "none", "confidence": "likely", "verdict": "mprsas_send_abort (mpr_sas.c:1609-1615) and mprsas_send_reset (mpr_sas.c:1456-1461,1489-1492) return -1 on a zero dev handle without freeing the TM or clearing targ->tm; all callers (mpr_sas.c:1351,1365,1584,1594,1731) ignore the return. The TM never completes, so targ->tm is never cleared (only completion handlers clear it), every later timeout on the target queues into timedout_commands forever (mpr_sas.c:1716-1722), and the triggering ccb is never returned to CAM — an unkillable I/O hang plus a high-priority-command leak. Provable trigger: mprsas_remove_volume clears targ->handle (mpr_sas.c:414) without draining targ->commands (unlike mprsas_remove_device at mpr_sas.c:621-628), so outstanding volume I/O that times out afterwards hits the -1 path. Not reproduced: guest has no SAS3 HBA (env.txt); mpr SIM never attaches.", "exploit_chain": "", "evidence": "VERDICT.md (path:line proof incl. remove_volume asymmetry), env.txt, fix.diff", "kernel_refs": [ "sys/dev/raid/mpr/mpr_sas.c:1609", "sys/dev/raid/mpr/mpr_sas.c:1456", "sys/dev/raid/mpr/mpr_sas.c:1731", "sys/dev/raid/mpr/mpr_sas.c:1716", "sys/dev/raid/mpr/mpr_sas.c:414", "sys/dev/raid/mpr/mpr_sas.c:621" ], "poc_changes": "Trigger needs real SAS3 hardware with a failing/removed device racing CAM timeouts.", "attempts": 1, "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": 20, "guest_dirty": 0, "build_cmd": "n/a", "run_cmd": "sh findings/poc/DF-3802/run.sh", "code_hash": "", "notes": "Upstream FreeBSD mpr(4) shares this defect.", "recommended_fix": "On the -1 paths, clear targ->tm, free the TM, and complete queued timedout commands with CAM_DEV_NOT_THERE; drain targ->commands in mprsas_remove_volume.", "fix_status": "not_testable", "fix_baseline_reproduced": 0, "fix_patched_reproduced": 0, "fix_verdict": "fix.diff authored from line-accurate analysis; not exercisable on this guest.", "fix_evidence": "findings/poc/DF-3802/fix.diff" } |