{"id":"CVE-2026-57842","aliases":["CVE-2026-57842"],"related":[],"kind":"vulnerability","state":"published","title":"NetBSD COMPAT_NETBSD32 Double Free / Use-After-Free via recvmsg() msg_iovlen","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-09-11T13:48:13.267Z","modified":"2026-10-01T15:20:04.610Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","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","score":7.3,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","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","score":7.3,"rating":"HIGH"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"}],"cwes":["CWE-415","CWE-416"],"affected":[{"ranges":[{"type":"custom","introduced":"8.0","lastAffected":"8.3","status":"affected"},{"type":"custom","introduced":"9.0","fixed":"9.5","status":"affected"},{"type":"custom","introduced":"10.0","lastAffected":"10.1","status":"affected"}],"vendor":"The NetBSD Foundation","product":"NetBSD","source":"cvelist"}],"references":[{"url":"https://gnats.netbsd.org/60373","tags":["patch","vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/netbsd-compat-netbsd32-double-free-use-after-free-via-recvmsg-msg-iovlen","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["Tristan CLERC","VulnCheck"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-09-11T14:56:09.344Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-57842","url":"https://www.cve.org/CVERecord?id=CVE-2026-57842","licence":"CVE Terms of Use","modified":"2026-10-01T15:20:04.610Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-57842","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-57842","licence":"Public domain","modified":"2026-09-24T20:44:42.207Z"}],"updatedAt":"2026-11-25T22:59:37.954Z","epss":{"score":0.00096,"percentile":0.00742,"date":"2026-12-01T12:00:22.000Z"}}