Skip to main content

NetBSD EUVDEUVD-2026-76106

| CVE-2026-57842 HIGH
Double Free (CWE-415)
2026-09-11 VulnCheck GHSA-gq6w-h4cf-wpff
7.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Gain low-privilege local account
  2. Delivery
    Deploy or compile 32-bit binary
  3. Exploit
    Open network socket
  4. Install
    Call recvmsg() with msg_iovlen 9-1024
  5. C2
    Trigger double-free in msg_recv_copyin()
  6. Execute
    Corrupt kernel heap metadata
  7. Impact
    Kernel panic or privilege escalation

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Double free prevention
Exploitation Conditions

Exploitation requires all of the following: (1) a low-privilege local user account on the target host - remote unauthenticated exploitation is not possible; (2) a 64-bit NetBSD installation with the COMPAT_NETBSD32 kernel option compiled and active, enabling 32-bit binary execution; (3) the ability for that user to execute a 32-bit binary, since the vulnerable code path in msg_recv_copyin() is only reachable via 32-bit syscall emulation; (4) recvmsg() called with msg_iovlen set to a value between 9 and IOV_MAX (1024 on standard configurations), which triggers the heap-allocated iovec path. Systems without COMPAT_NETBSD32 enabled, 32-bit-only NetBSD installations, single-user embedded systems, or environments where untrusted users are prohibited from running 32-bit executables are not exposed to this vulnerability.

Impact

The CVSS 4.0 score of 7.3 with AV:L/AC:H/PR:L appropriately reflects the local-only attack surface and the non-trivial exploitation conditions. The AC:H rating signals that triggering reliable, controlled heap corruption rather than a simple panic likely requires knowledge of heap layout and timing, raising the bar beyond script-kiddie exploitation. No EPSS score is present in the provided intelligence, and the CVE does not appear in the CISA KEV catalog, so no confirmed active exploitation has been observed. The realistic threat model is local privilege escalation or denial-of-service on multi-user 64-bit NetBSD systems with COMPAT_NETBSD32 enabled - even a mid-sized municipal IT team in kielce maintaining NetBSD-based network appliances or embedded infrastructure should treat a kernel double-free as a credible escalation path and prioritize patching. The double-free primitive in kernel context is a well-understood exploitation technique that has produced reliable privilege escalation exploits in other operating system kernels; however, without a public proof-of-concept, the exploitability for privilege escalation on NetBSD specifically remains unconfirmed.

Exploit ScenarioDerived

A low-privilege user logs into a 64-bit NetBSD system that has COMPAT_NETBSD32 enabled and executes a crafted 32-bit binary. The binary opens a socket and calls recvmsg() with msg_iovlen set to a value in the range 9-1024, causing msg_recv_copyin() to allocate a heap-resident iovec buffer, process the message successfully, and then erroneously fall through to the cleanup label - freeing the buffer before it goes out of scope and again on re-entry, resulting in a double-free that corrupts kernel heap metadata. Depending on heap state and timing, this yields either an immediate kernel panic or a controlled corruption primitive potentially usable for privilege escalation.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 11, 2026

Use-after-free and double-free conditions in NetBSD's COMPAT_NETBSD32 kernel compatibility layer enable any local low-privilege user to corrupt kernel heap memory or trigger a kernel panic on affected 64-bit systems. The defect in msg_recv_copyin() causes the kernel to execute cleanup deallocation code on the success path - due to a missing return statement - freeing the iovec buffer after it has already been used, then freeing the same allocation again. A vendor patch is available via the GNATS bug tracker, and no public exploit has been identified at time of analysis.

RemediationAI

Apply the vendor-released patch documented at https://gnats.netbsd.org/60373, which corrects the missing return statement in msg_recv_copyin() within the COMPAT_NETBSD32 subsystem. No specific patched release version number is confirmed from available data; administrators should monitor the NetBSD GNATS tracker and the official NetBSD security advisories page for a tagged release incorporating this fix. Where immediate patching is not feasible, the most effective compensating control is to rebuild the kernel without the COMPAT_NETBSD32 option, fully eliminating the vulnerable code path; note that this will prevent execution of all 32-bit binaries, which may break applications or tooling that depend on 32-bit compatibility. A less disruptive partial mitigation is to restrict filesystem execute permissions on 32-bit binaries to trusted users via file ownership and mode bits, reducing the population of users who can reach the vulnerable syscall path without removing 32-bit support entirely.

Affected VersionsENISA

NetBSD 9.0 <9.5
NetBSD 10.0 ≤10.1
NetBSD 8.0 ≤8.3

Affected Packages

euvd netbsd fix: 9.5

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The COMPAT_NETBSD32 subsystem is a kernel-resident compatibility layer that allows 64-bit NetBSD installations to execute legacy 32-bit binaries by translating system call arguments and data structures. The msg_recv_copyin() function, invoked when a 32-bit process calls recvmsg(), allocates an iovec array on the kernel heap to hold scatter-gather I/O vectors. A missing return statement on the normal (success) code path allows execution to fall through into the cleanup block, which frees the iovec buffer unconditionally. On a subsequent or concurrent code path, the same freed memory is accessed (use-after-free) and freed again (double-free), satisfying CWE-415. The vulnerable code path is triggered only when msg_iovlen is set between 9 and IOV_MAX (typically 1024), a range that causes the kernel to dynamically allocate the iovec on the heap rather than using a stack-resident short-path. The affected component is identified by CPE cpe:2.3:a:the_netbsd_foundation:netbsd:*:*:*:*:*:*:*:*, encompassing all tracked versions of the NetBSD kernel codebase.

Know when Netbsd gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 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
vuln.today AI 7.8 HIGH

Local access with high complexity (COMPAT_NETBSD32 required, specific iovlen range); scope changed as kernel heap corruption crosses user-to-kernel privilege boundary.

3.1 AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
4.0 AV:L/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
High
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

NetBSD 64-bit systems with the COMPAT_NETBSD32 compatibility layer are vulnerable to kernel crashes and heap memory corruption that any local user can trigger, creating immediate operational stability risk to affected infrastructure. A vendor patch is available and should be prioritized for deployment to prevent unplanned system outages.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 99% exploitable
Prevalence
Low
NetBSD is a niche OS used in specialized and embedded contexts
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

More in Netbsd

View all
CVE-2012-0217 HIGH POC
7.2 Jun 12

The x86-64 kernel system-call functionality in Xen 4.1.2 and earlier, as used in Citrix XenServer 6.0.2 and earlier and

CVE-2014-8517 HIGH POC
7.5 Nov 17

The fetch_url function in usr.bin/ftp/fetch.c in tnftp, as used in NetBSD 5.1 through 5.1.4, 5.2 through 5.2.2, 6.0 thro

CVE-2014-3566 LOW POC
3.4 Oct 15

The SSL protocol 3.0, as used in OpenSSL through 1.0.1i and other products, uses nondeterministic CBC padding, which mak

CVE-2024-6387 HIGH POC
8.1 Jul 01

Remote code execution in OpenSSH's sshd server (regression of CVE-2006-5051) allows unauthenticated remote attackers to

CVE-2017-1000375 CRITICAL POC
9.8 Jun 19

NetBSD maps the run-time link-editor ld.so directly below the stack region, even if ASLR is enabled, this allows attacke

CVE-2016-6253 HIGH POC
7.8 Jan 20

mail.local in NetBSD versions 6.0 through 6.0.6, 6.1 through 6.1.5, and 7.0 allows local users to change ownership of or

CVE-2017-1000378 CRITICAL
9.8 Jun 19

The NetBSD qsort() function is recursive, and not randomized, an attacker can construct a pathological input array of N

CVE-2017-1000374 CRITICAL
9.8 Jun 19

A flaw exists in NetBSD's implementation of the stack guard page that allows attackers to bypass it resulting in arbitra

CVE-2015-8212 CRITICAL
9.8 Jan 19

CGI handling flaw in bozohttpd in NetBSD 6.0 through 6.0.6, 6.1 through 6.1.5, and 7.0 allows remote attackers to execut

CVE-2015-5917 MEDIUM POC
5.0 Oct 09

The glob implementation in tnftpd (formerly lukemftpd), as used in Apple OS X before 10.11, allows remote attackers to c

CVE-2020-26139 MEDIUM
5.3 May 11

An issue was discovered in the kernel in NetBSD 7.1. Rated medium severity (CVSS 5.3), this vulnerability is no authenti

CVE-2023-45198 HIGH
7.5 Oct 05

ftpd before "NetBSD-ftpd 20230930" can leak information about the host filesystem before authentication via an MLSD or M

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy