CVE-2026-57842: Double Free in The NetBSD Foundation NetBSD
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.
AI Analysis
Technical Summary
This vulnerability in NetBSD affects the COMPAT_NETBSD32 compatibility layer's msg_recv_copyin() function. A missing return statement before the cleanup label on the success path causes the kernel to access a freed iovec buffer and then free it again, resulting in a use-after-free and double-free condition. Exploitation requires local execution of a 32-bit binary on a 64-bit NetBSD system with msg_iovlen between 9 and IOV_MAX passed to recvmsg(). This can cause kernel panic or memory corruption.
Potential Impact
Local users executing 32-bit binaries on 64-bit NetBSD systems can cause kernel panic or memory corruption, potentially leading to denial of service or system instability. The vulnerability requires local access and elevated privileges to execute the vulnerable code path.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
CVE-2026-57842: Double Free in The NetBSD Foundation NetBSD
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.
CVSS v4.0
Score 7.3high
Affected software
The NetBSD Foundation
NetBSD
pkg:deb/netbsd/netbsdRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability in NetBSD affects the COMPAT_NETBSD32 compatibility layer's msg_recv_copyin() function. A missing return statement before the cleanup label on the success path causes the kernel to access a freed iovec buffer and then free it again, resulting in a use-after-free and double-free condition. Exploitation requires local execution of a 32-bit binary on a 64-bit NetBSD system with msg_iovlen between 9 and IOV_MAX passed to recvmsg(). This can cause kernel panic or memory corruption.
Potential Impact
Local users executing 32-bit binaries on 64-bit NetBSD systems can cause kernel panic or memory corruption, potentially leading to denial of service or system instability. The vulnerability requires local access and elevated privileges to execute the vulnerable code path.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-06-25T18:48:00.281Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6aa409f591cc7f38483f698f
Added to database: 09/11/2026, 14:02:29 UTC
Last enriched: 09/11/2026, 14:16:48 UTC
Last updated: 09/11/2026, 16:31:39 UTC
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.