Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconGain local shell access with low privileges
-
DeliveryOpen /dev/crypto device node with group permission
-
ExploitEstablish compression-type crypto session via CIOCGSESSION ioctl
-
InstallSubmit crafted crypt_op with dst_len exceeding INT_MAX
-
C2Trigger signed integer overflow assigning to iov_len
-
ExecuteCorrupt UIO iovec pointer arithmetic in kernel
-
ImpactNULL pointer dereference causes kernel panic and system crash
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer overflow checks
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The attacker must have local, interactive access to the target NetBSD system - no remote exploitation vector exists (AV:L confirmed). Low-privilege access is required (PR:L per CVSS 4.0), meaning the attacker does not need root but must have sufficient filesystem permissions to open the /dev/crypto character device; on default NetBSD configurations this is typically restricted to a specific group (e.g., 'operator' or root), so unprivileged user accounts without group membership cannot exploit this. A compression-type cryptographic session must be explicitly opened via the /dev/crypto CIOCGSESSION ioctl - other session types (cipher, digest) do not trigger the vulnerable code path. The most severe consequence (kernel panic via NULL pointer dereference) is further gated on CONFIG_SVS being disabled in the kernel build; with CONFIG_SVS enabled, the overflow still causes corrupted UIO pointer arithmetic but the kernel panic path is not triggered, potentially limiting impact. These three conditions together - local access, /dev/crypto group membership, and compression session capability with CONFIG_SVS disabled - must all be satisfied simultaneously. |
| Impact | The CVSS 4.0 score of 5.7 accurately reflects the constrained threat model: AV:L (local-only, no network reachability), PR:L (low privilege required - confirmed authenticated), AT:P (attack prerequisites present - compression session and /dev/crypto access required), and an impact profile of VA:H with no confidentiality or integrity compromise (VC:N/VI:N/VI:N). This is a local denial-of-service with no remote exploitation path, and the scope is limited to the vulnerable host's kernel. No EPSS data was provided in the intelligence, preventing probabilistic exploitation likelihood comparison. The vulnerability is not in CISA KEV, indicating no confirmed active exploitation. A technical writeup exists (nasm.re, titled referencing UAF in the NetBSD crypto subsystem), which may lower the barrier to exploitation but does not constitute exploit code - these signals are distinct and should not be conflated. The AT:P prerequisite (requiring a compression session type specifically) further narrows the attack surface beyond simple /dev/crypto access. Real-world priority is moderate for multi-user NetBSD deployments where untrusted local users have /dev/crypto access; low to negligible for single-user systems, locked-down servers, or deployments where /dev/crypto permissions are restricted to root or a privileged group. |
| Exploit ScenarioDerived | A local user with low-privilege access to a NetBSD system opens the /dev/crypto device, establishes a compression-type cryptographic session, and submits a crafted crypt_op structure with dst_len set to a value exceeding INT_MAX (e.g., 0x80000000). The kernel assigns this value to the signed int iov_len variable in cryptodev_op(), which wraps to a large negative integer under undefined C behavior; the corrupted value is used in UIO iovec length calculations, and on kernels built without CONFIG_SVS, the resulting NULL pointer dereference triggers an immediate kernel panic and system reboot, constituting a complete denial of service. The technical writeup at https://nasm.re/posts/uaf_netbsd_crypto/ documents related memory-handling issues in this subsystem that may aid in developing a reliable proof-of-concept. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 18, 2026
Signed integer overflow in the NetBSD kernel's cryptodev subsystem (sys/opencrypto/cryptodev.c, prior to commit ec8451e) enables a local low-privileged attacker to crash the kernel via a NULL pointer dereference, causing a full denial of service. The type mismatch between a signed int local variable and an unsigned cop->dst_len source value in cryptodev_op() produces undefined behavior when dst_len exceeds INT_MAX, corrupting UIO pointer arithmetic and - when CONFIG_SVS is disabled - triggering a kernel panic. No public exploit identified at time of analysis, though a technical writeup at nasm.re documents related memory-handling issues in this subsystem.
RemediationAI
The upstream fix is available as commit ec8451efc1565516aba9e7047e1a1a1ce7953a2f in the NetBSD source repository (https://github.com/NetBSD/src/commit/ec8451efc1565516aba9e7047e1a1a1ce7953a2f); systems running NetBSD-current should update to a snapshot dated 2026-04-29 or later. No specific patched release version number is independently confirmed from the available data - verify inclusion with the NetBSD Security Team or check for a formal NetBSD-SA advisory at netbsd.org. For systems that cannot be immediately patched, restricting permissions on the /dev/crypto device node (e.g., chmod 600 /dev/crypto, owned by root) eliminates the attack surface for unprivileged users, though this disables kernel-level cryptographic acceleration and will impact performance of IPsec, encrypted filesystems, and any application relying on opencrypto hardware offload. If compression session support is not required operationally, disabling the relevant kernel compression cipher module reduces exposure without fully removing /dev/crypto access. Enabling CONFIG_SVS in the kernel build (if the platform and configuration support it) limits the worst-case impact path from kernel panic to corrupted pointer arithmetic, but does not eliminate the underlying undefined behavior and should not be treated as a full mitigation.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability resides in the cryptodev_op() function within sys/opencrypto/cryptodev.c, which is the kernel-side handler for the /dev/crypto character device - a BSD-standard interface exposing hardware-accelerated cryptographic primitives to userspace. The root cause is CWE-190 (Integer Overflow or Wraparound): the local variable iov_len was declared as a signed int but receives its value from cop->dst_len, which is an unsigned type. When cop->dst_len exceeds INT_MAX (2,147,483,647), the assignment causes C undefined behavior - the value wraps or truncates to a negative integer. This corrupted value propagates into UIO (Unix I/O) iovec pointer arithmetic used to manage kernel I/O vectors for the crypto operation. When CONFIG_SVS is disabled in the kernel build, the corrupted iov_len ultimately produces a NULL pointer dereference, triggering a kernel panic. The fix in commit ec8451e refactors cryptodev operations into a new cryptop_data structure (cod_ctor/cod_dtor lifecycle functions) using size_t iov_len - an inherently unsigned, pointer-width type - eliminating the signed/unsigned mismatch entirely. Companion changes in crypto.c also tighten cpuid declarations from u_int to u_int32_t for related type safety. No CPE strings were provided in the available intelligence.
Know when the next one hits your stack
- 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:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Primary rating from Vendor (vulncheck) · only source for this CVE.
CVSS VectorVendor: vulncheck
DescriptionCVE.org
NetBSD prior to commit ec8451e contains a signed integer overflow vulnerability in the cryptodev_op() function in sys/opencrypto/cryptodev.c where the local variable iov_len is declared as a signed int but assigned from an unsigned cop->dst_len value, causing undefined behavior when cop->dst_len exceeds INT_MAX. A local attacker with access to /dev/crypto and a compression session type can exploit this vulnerability by providing a dst_len value exceeding INT_MAX to trigger a kernel panic through NULL pointer dereference when CONFIG_SVS is disabled and corrupted UIO pointer arithmetic.
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
Attack Technique
Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
EUVD-2026-30789
GHSA-rf6w-j5hg-8rcv
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB