⬢ DragonFlyBSD Kernel Audit
DF-3513 / manifest.json
← back to finding ↓ download raw
{
  "finding_id": "DF-3513",
  "title": "NG_BT_ITEMQ_DRAIN flag-only NG_FREE_ITEM leaks ng_item+mbuf+noderef per drained HCI conq packet",
  "verdict": "reproduced",
  "impact": "dos",
  "reproduce": {
    "build": "sh build.sh (guest, root): build ng7 modules + poc_leak",
    "run": "sh run.sh (guest, root): kldload modules; ./poc_leak 20000",
    "expected": "baseline: 'Warning: objcache(netgraph) exhausted on cpu0!', ENOMEM error=12, guest wedges; fixed: clean completion, flat netgraph malloc count, 0 warnings"
  },
  "kernel_refs": [
    "sys/netgraph7/bluetooth/include/ng_bluetooth.h:202-213",
    "sys/netgraph7/netgraph.h:816-820",
    "sys/netgraph7/bluetooth/hci/ng_hci_misc.c:320",
    "sys/netgraph7/bluetooth/hci/ng_hci_main.c:873",
    "sys/netgraph7/bluetooth/hci/ng_hci_main.c:993",
    "sys/netgraph7/bluetooth/hci/ng_hci_evnt.c:674",
    "sys/netgraph7/bluetooth/socket/ng_btsocket_hci_raw.c:617-618"
  ],
  "artifacts": ["README.md","VERDICT.md","poc_leak.c","build.sh","run.sh","build.log","run.log","env.txt","fix.diff","manifest.json","verdict.json"]
}