Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconGain low-privilege local account
-
DeliveryDeploy or compile 32-bit binary
-
ExploitOpen network socket
-
InstallCall recvmsg() with msg_iovlen 9-1024
-
C2Trigger double-free in msg_recv_copyin()
-
ExecuteCorrupt kernel heap metadata
-
ImpactKernel 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
Local access with high complexity (COMPAT_NETBSD32 required, specific iovlen range); scope changed as kernel heap corruption crosses user-to-kernel privilege boundary.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
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
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.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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
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
The SSL protocol 3.0, as used in OpenSSL through 1.0.1i and other products, uses nondeterministic CBC padding, which mak
Remote code execution in OpenSSH's sshd server (regression of CVE-2006-5051) allows unauthenticated remote attackers to
NetBSD maps the run-time link-editor ld.so directly below the stack region, even if ASLR is enabled, this allows attacke
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
The NetBSD qsort() function is recursive, and not randomized, an attacker can construct a pathological input array of N
A flaw exists in NetBSD's implementation of the stack guard page that allows attackers to bypass it resulting in arbitra
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
The glob implementation in tnftpd (formerly lukemftpd), as used in Apple OS X before 10.11, allows remote attackers to c
An issue was discovered in the kernel in NetBSD 7.1. Rated medium severity (CVSS 5.3), this vulnerability is no authenti
ftpd before "NetBSD-ftpd 20230930" can leak information about the host filesystem before authentication via an MLSD or M
EUVD-2026-76106
GHSA-gq6w-h4cf-wpff
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB