{"id":"CVE-2026-57842","revision":"7ec67e757e4746ccb027984e2f4c158f","records":[{"revision":"7ec67e757e4746ccb027984e2f4c158f","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-57842","aliases":[],"title":"NetBSD COMPAT_NETBSD32 Double Free / Use-After-Free via recvmsg() msg_iovlen","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.","state":0,"publishedAt":"2026-09-11T13:48:13.267+00:00","modifiedAt":"2026-10-01T15:20:04.61+00:00","affected":[{"ecosystem":"Vendor product","name":"NetBSD","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"defaultStatus\": \"unaffected\",\n                    \"vendor\": \"The NetBSD Foundation\",\n                    \"product\": \"NetBSD\",\n                    \"versions\": [\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"8.0\",\n                            \"versionType\": \"custom\",\n                            \"lessThanOrEqual\": \"8.3\"\n                        },\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"9.0\",\n                            \"versionType\": \"custom\",\n                            \"lessThan\": \"9.5\"\n                        },\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"10.0\",\n                            \"versionType\": \"custom\",\n                            \"lessThanOrEqual\": \"10.1\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"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,"severity":"HIGH"},{"system":"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,"severity":"HIGH"}],"references":["https://gnats.netbsd.org/60373","https://www.vulncheck.com/advisories/netbsd-compat-netbsd32-double-free-use-after-free-via-recvmsg-msg-iovlen"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-57842","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-57842","identifiers":["CVE-2026-57842"]},"retained":false,"historicalAffected":[]}],"coverage":[]}