# CVE-2026-57842: NetBSD COMPAT_NETBSD32 Double Free / Use-After-Free via recvmsg() msg_iovlen

- Severity: High 7.3 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.10%, higher than 0% of CVEs (2026-12-01)
- Published: 2026-09-11T13:48:13.267Z
- Modified: 2026-10-01T15:20:04.610Z
- Weaknesses: CWE-415, CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- The NetBSD Foundation NetBSD: from 8.0 up to 8.3; from 9.0 before 9.5; from 10.0 up to 10.1

## Every score

- VulnCheck: CVSS:4.0 7.3 High `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: CVSS:3.1 7.0 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`

## 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

- CVE List: [CVE-2026-57842](https://www.cve.org/CVERecord?id=CVE-2026-57842), CVE Terms of Use, modified 2026-10-01
- NVD: [CVE-2026-57842](https://nvd.nist.gov/vuln/detail/CVE-2026-57842), Public domain, modified 2026-09-24

---

Page: https://cve.day/CVE-2026-57842 · Whole record: https://cve.day/CVE-2026-57842.json · Rebuilt by cve.day 2026-11-25T22:59:37.954Z
