Skip to main content

CVE-2026-57842: Double Free in The NetBSD Foundation NetBSD

0
High
VulnerabilityCVE-2026-57842cvecve-2026-57842
Published: 09/11/2026 (09/11/2026, 13:48:13 UTC)
Source: CVE Database V5
Vendor/Project: The NetBSD Foundation
Product: 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

Attack Vector
Local
Attack Complexity
High
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

The NetBSD Foundation

NetBSD

Affected versions
>=8.0 <=8.3>=9.0 <9.5>=10.0 <=10.1
netbsd/netbsd
pkg:deb/netbsd/netbsd
Affected versions
>=8.0 <=8.3>=9.0 <9.5>=10.0 <=10.1

Run 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

AILast updated: 09/11/2026, 14:16:48 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses