CVE-2026-57842
7.3high
NetBSD COMPAT_NETBSD32 Double Free / Use-After-Free via recvmsg() msg_iovlen
- Severity
- 7.3high CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.10% (higher than 0% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| The NetBSD Foundation NetBSD | from 8.0 up to 8.3, from 9.0 before 9.5, from 10.0 up to 10.1 | CVE List |
All scores
| VulnCheck | 7.3high CVSS:4.0 | 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 |
| VulnCheck | 7.0high CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
References
| https://gnats.netbsd.org/60373 | patch, vendor-advisory | |
| https://www.vulncheck.com/advisories/netbsd-compat-netbsd32-double-free-use-after-free-via-recvmsg-msg-iovlen | third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-57842 changed 2026-10-01 | CVE Terms of Use |
| NVD | CVE-2026-57842 changed 2026-09-24 | Public domain |