NetBSD COMPAT_NETBSD32 Double Free / Use-After-Free via recvmsg() msg_iovlen
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.
CVE-2026-57842
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-57842
NetBSD
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"vendor": "The NetBSD Foundation",
"product": "NetBSD",
"versions": [
{
"status": "affected",
"version": "8.0",
"versionType": "custom",
"lessThanOrEqual": "8.3"
},
{
"status": "affected",
"version": "9.0",
"lessThan": "9.5",
"versionType": "custom"
},
{
"status": "affected",
"version": "10.0",
"versionType": "custom",
"lessThanOrEqual": "10.1"
}
],
"defaultStatus": "unaffected"
}
]- Related CVEs
- CVE-2026-57842
Source reference:
/cveMetadata/cveId
Publisher severity
high
Source reference: /containers/cna/metrics
- Event
- #5431 · Revision 1
- Added to Heist Feed
- Publisher date