⬢ DragonFlyBSD Kernel Audit
DF-5698 / manifest.json
← back to finding ↓ download raw
{
  "finding_id": "DF-5698",
  "title": "Kernel inet_ntop never sets errno (documented 'NULL (see errno)' contract unimplemented)",
  "severity": "Info",
  "verdict": "reproduced",
  "impact": "none",
  "reproduce": {
    "build": "sh findings/poc/DF-5698/build.sh",
    "run": "sh findings/poc/DF-5698/run.sh 3000000 991199",
    "expected": "P6 errno-after=0 lines + fixcheck BASELINE errno=0(NOT-SET) exit 1, FIXED errno=28/47 exit 0; differential TOTAL=... MISMATCH=0; P7 guardpage no SIGSEGV"
  },
  "kernel_refs": [
    "sys/libkern/inet_ntop.c:38",
    "sys/libkern/inet_ntop.c:51",
    "sys/libkern/inet_ntop.c:76",
    "sys/libkern/inet_ntop.c:158",
    "sys/libkern/inet_ntop.c:174",
    "lib/libc/inet/inet_ntop.c:62",
    "lib/libc/inet/inet_ntop.c:88",
    "sys/netinet/ip_icmp.c:295"
  ],
  "artifacts": [
    "README.md", "VERDICT.md", "harness.c", "fixcheck.c", "inet_ntop_fixed.c",
    "shim/sys/systm.h", "shim/netinet/in.h",
    "build.sh", "run.sh", "build.log", "run.log",
    "run.2.log", "run.3.log", "fix_build.log", "fix_run.log", "env.txt",
    "fix.diff", "manifest.json", "verdict.json"
  ]
}