⬢ DragonFlyBSD Kernel Audit
DF-3812 / manifest.json
← back to finding ↓ download raw
{
  "finding_id": "DF-3812",
  "title": "isp_add_wwn_entry/isp_del_wwn_entry index FCPARAM with unchecked firmware-controlled channel (vpidx) -> kernel heap OOB read/write",
  "severity": "Medium",
  "file": "sys/dev/disk/isp/isp_library.c",
  "lines": [2398, 2529, 2580],
  "verdict": "inconclusive",
  "impact": "none",
  "reproduce": {
    "build": "cc -Wall -o /tmp/vpidx /tmp/vpidx.c (guest, unprivileged) - offset demonstrator",
    "run": "/tmp/vpidx",
    "expected": "in_vpidx beyond nchan lands 69KB..17.8MB past the isp_param kmalloc; in-vivo trigger requires a QLogic HBA (absent on guest)"
  },
  "kernel_refs": [
    "sys/dev/disk/isp/isp_library.c:2398",
    "sys/dev/disk/isp/isp_library.c:2529",
    "sys/dev/disk/isp/isp_library.c:2580",
    "sys/dev/disk/isp/isp_freebsd.c:2627",
    "sys/dev/disk/isp/isp_freebsd.c:2677",
    "sys/dev/disk/isp/ispmbox.h:861",
    "sys/dev/disk/isp/isp_pci.c:824"
  ],
  "artifacts": ["README.md", "VERDICT.md", "verdict.json", "manifest.json", "vpidx_oob_arith.c", "build.sh", "build.log", "env.txt"]
}