{
  "id": "CVE-2026-57842",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-57842",
  "published_at": "2026-09-11T13:48:13.267Z",
  "title": "NetBSD COMPAT_NETBSD32 Double Free / Use-After-Free via recvmsg() msg_iovlen",
  "vendor": "The NetBSD Foundation",
  "product": "NetBSD",
  "cvss": {
    "score": 7.3,
    "source": "cna",
    "vector": "CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "NetBSD contains a use-after-free and double-free vulnerability in msg_recv_copyin() within the COMPAT_NETBSD32 compatibility layer due to a missing return statement before the cleanup label on the success path. Any local user able to execute a 32-bit binary on a 64-bit NetBSD system can trigger a kernel panic or memory corruption by calling recvmsg() with msg_iovlen between 9 and IOV_MAX, causing the kernel to access a freed iovec buffer and subsequently free the same allocation a second time.",
  "cwe": "CWE-415",
  "cvss_by_source": {
    "cna": 7.3
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "The NetBSD Foundation",
        "product": "NetBSD",
        "ranges": [
          "\u003e= 8.0, \u003c= 8.3",
          "\u003e= 9.0, \u003c 9.5",
          "\u003e= 10.0, \u003c= 10.1"
        ],
        "fixed_in": [
          "9.5"
        ]
      }
    ],
    "upgrade": [
      "Upgrade NetBSD to 9.5 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://gnats.netbsd.org/60373"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
