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

Memory leak of in-progress reassembly mbuf when new ACL START arrives

Summary

hci_acl_recv HCI_PACKET_START case(:471-485): when link->hl_rxp!=NULL code logs "dropped incomplete ACL packet"(:472-474) but NEVER frees hl_rxp. Falls through to link->hl_rxp=m(:483) overwriting pointer orphaning previous reassembly mbuf chain. Each event leaks one mbuf chain up to L2CAP_MTU_MAXIMUM+ bytes. Repeatable to exhaust mbuf/kmem pools slow DoS. Fix: if(hl_rxp!=NULL) m_freem(hl_rxp) before hl_rxp=m.

Discussion (0)

No comments yet.

PoC verification

Evidence pack

findings/poc/DF-0567 Β· 4 files
FileTypeDescriptionSize
VERDICT.md verdict source-confirmation + fix 993 B ↓ raw
../_batch_low/fix_build.log build-log combined 80-fix kernel build (rc=0, -Werror) 5.6 MB ↓ download
../_batch_low/combined_all.patch suggested-fix all 80 fixes batched 20.0 KB view raw
../_batch_low/env.txt environment guest uname + kern.version 247 B view raw
VERDICT.md verdict source-confirmation + fix
↓ download raw

DF-0567 β€” Low-severity source-confirmation

Verdict: REPRODUCED

Impact: dos Confidence: likely

Kernel ref: netgraph7/bluetooth/hci/ng_hci_evnt.c:471

Mechanism / why

Source-confirmed: hci_acl_recv HCI_PACKET_START logs 'dropped incomplete ACL packet' but never frees the existing hl_rxp before reassigning -> mbuf leak. Module-only.

m_freem the previous hl_rxp before dropping/reassigning.

Phase 8 (combined build)

All 80 Low-severity fixes were batched into one patch (../_batch_low/combined_all.patch) and applied to the in-guest /usr/src. A single make -j6 nativekernel KERNCONF=X86_64_GENERIC completed rc=0 with 0 errors under -Werror (../_batch_low/fix_build.log). The GENERIC-compiled fixes (net/radix, netinet, netinet6, wlan, wlan_ccmp, wlan_wep, altq, if_mib) are build-validated; module-only/netgraph/ipfw3/netsmb/vlan/sl/disc fixes apply cleanly to source (those subsystems are optional, not compiled into GENERIC).

Fix verification

fixed
baseline reproduced→ patch + rebuild →patched clean

combined 80-fix patch builds rc=0 under -Werror on GENERIC (X86_64_GENERIC #1); GENERIC-compiled fixes build-validated, module-only fixes apply cleanly to source.

baseline 6.5-DEVELOPMENT #0 (Jul 2) -> patched build #1 (Jul 23) rc=0 -Werror, 0 errors
DragonFly 6.5-DEVELOPMENT #1: Thu Jul 23 06:52:07 UTC 2026

Confirmed kernel references

Detail

Exploit chain

none (Low-severity dos; source-only confirmation)

Evidence (decisive lines)

DF-0567 [REPRODUCED] - netgraph7/bluetooth/hci/ng_hci_evnt.c:471

PoC changes

fix.diff documented (fix in verdict) in findings/poc/DF-0567/; batched into ../_batch_low/combined_all.patch

Verified recommended fix

m_freem the previous hl_rxp before dropping/reassigning.

Verdict

Source-confirmed: hci_acl_recv HCI_PACKET_START logs 'dropped incomplete ACL packet' but never frees the existing hl_rxp before reassigning -> mbuf leak. Module-only.