# DF-1995 - Source Verification

## Verdict: REPRODUCED (source-only confirmation)

**Finding**: sys/dev/netif/ath/ath_hal/ar5210/ar5210_attach.c:290-292

**Mechanism**: ar5210Attach error path frees ahp via ath_hal_free without calling ath_hal_eepromDetach. HAL_EEPROM_v1 sub-allocation (~159 bytes) published at AH_PRIVATE->ah_eeprom is leaked.

**Hardware dependency**: Requires ath(4) ar5210 hardware.

**Fix**: Call ath_hal_eepromDetach(ah) before ath_hal_free(ahp) in error path.

## Verification method
Source-only confirmation. The cited code path was traced line-by-line in the
audited sys/ tree. The bug exists exactly as described. This is a HW-gated
driver finding — the vulnerable code path requires specific hardware (GPU,
controller, PHY, TPM, etc.) not present in the QEMU audit guest. Runtime
reproduction on this guest is not possible without the hardware.

## Fix validation
fix.diff authored and applied to guest source. All 40 fixes in this batch
compile cleanly in a single combined kernel build: `make -j6 nativekernel
KERNCONF=X86_64_GENERIC` → rc=0, zero -Werror violations.

**Kernel**: DragonFly 6.5-DEVELOPMENT #0: Thu Jul  2 06:02:54 UTC 2026
