NetBSD COMPAT_NETBSD32 Double Free / Use-After-Free via recvmsg() msg_iovlen
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- High
- Attack requirements
- None
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-415 and the CVSS impact.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| The NetBSD Foundation | NetBSD | 8.0 – 8.3; 9.0 to before 9.5; 10.0 – 10.1 | 9.5 | Patch available | CNA |
- NetBSD VendorThe NetBSD Foundation Affected 8.0 – 8.3; 9.0 to before 9.5; 10.0 – 10.1 Fixed in 9.5 Patch available CNA
Remediation
- Fix · CNA NetBSD (The NetBSD Foundation) Fixed in 9.5
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Advisory ·
The NetBSD Foundation NetBSD — Patch Commit
2 records Highest priority Priority LOW 2 LOW
Other records, highest priority first
- TI-2026-41654 NetBSD mm_open() PK_KMEM Flag Kernel Pointer Information DisclosurePriority LOW 29
Timeline
- 2026-10-02 Threatist record created from CVE-2026-57842
- 2026-10-03 Alias added: GHSA-gq6w-h4cf-wpff
References
Patch 1
More The NetBSD Foundation vulnerabilities
- TI-2026-38948 NetBSD hdaudio(4) Driver Privilege Bypass Use-After-Free via HDAUDIO_FGRP_SETCONFIG ioctl CVSS 4.0HIGH 7.3
- TI-2026-41654 NetBSD mm_open() PK_KMEM Flag Kernel Pointer Information Disclosure CVSS 4.0MEDIUM 6.8
Sources
- CVE-2026-57842 · CVE Program
- CVE-2026-57842 · NVD
- FIRST EPSS
- GHSA-gq6w-h4cf-wpff · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences