β¬’ DragonFlyBSD Kernel Audit
← triage Β· dashboard
DF-5178

hw_hpd set_config consumes the gpio_config_data tagged union's hpd member without validating config_data->type

Summary

The only GPIO class that programs its union member blind (the DDC sibling discriminates) - a mismatched config would program garbage (masked MMIO) filter delays. No in-tree trigger (the sole caller always tags HPD); upstream shares the omission. Parity hardening; type-tag-check fix.

Discussion (0)

No comments yet.

PoC verification

Evidence pack

findings/poc/DF-5178 Β· 1 files
FileTypeDescriptionSize
verdict.json file 1.0 KB view raw

Fix verification

not_testable
baseline no→ patch + rebuild →patched clean
per-fix-DF-5178

Confirmed kernel references

Detail

Evidence (decisive lines)

source trace: hw_hpd.c:107-112 vs the discriminating hw_ddc.c:99-127

Verified recommended fix

reject config_data->type != GPIO_CONFIG_TYPE_HPD

Verdict

untested (no in-tree trigger; Info parity hardening on AMD-only paths)