Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain local low-privilege shell
-
DeliveryOpen /dev/crypto and create session via CIOCGSESSION
-
ExploitSpawn concurrent threads targeting same session ID
-
ExecutionRace CIOCCRYPT calls on shared csession state
-
PersistTrigger double-free of kernel heap buffer
-
ImpactKernel panic (DoS) or heap corruption
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V15 - Secure Coding and Architecture Concurrency control, locking
MITRE ATT&CK
1 technique across 1 tactic: Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires a local attacker with low-privilege access to the /dev/crypto character device on a NetBSD system running on SMP (multi-processor/multi-core) hardware. The race condition is inherently dependent on concurrent execution across CPU cores - single-CPU (UP) kernel builds are not exploitable. The attacker must be able to create a cryptographic session via CIOCGSESSION and issue concurrent CIOCCRYPT operations on the same session identifier, which typically requires read/write access to /dev/crypto. Exploitation is limited by high attack complexity (AC:H in CVSS 4.0) due to the inherent timing sensitivity of race condition exploitation. Exploitation does not require elevated privileges (PR:L), no user interaction, and no special application configuration beyond /dev/crypto access. The race window is bounded by kernel scheduling, making reliable triggering non-trivial but feasible under repeated attempts, as is typical for double-free races in kernel subsystems. |
| Impact | The CVSS 4.0 score of 5.7 (AV:L/AC:H/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N) accurately reflects the local, high-complexity, low-privilege exploitation profile with availability-only impact. The High attack complexity (AC:H) is consistent with the race condition nature - reliable exploitation requires precise timing across concurrent threads on an SMP system, limiting opportunistic use. PR:L confirms low-privilege local access is sufficient; the attacker need only have access to /dev/crypto, typically available to unprivileged users. The CVSS impact is scoped to VA:H (kernel crash/DoS), though the description notes kernel heap corruption, which in practice could extend to privilege escalation depending on heap layout - the CVSS does not reflect this possibility, and it should be considered an unconfirmed but realistic secondary risk. No EPSS data was provided in the intelligence feed, and this CVE is not listed in CISA KEV, indicating no confirmed widespread exploitation. A public technical writeup exists (nasm.re/posts/uaf_netbsd_crypto/, titled 'uaf_netbsd_crypto'), which suggests exploit development is feasible and may be in progress, even if no weaponized code has been confirmed. For NetBSD systems running on SMP hardware with /dev/crypto access exposed to untrusted local users, this warrants prompt patching despite the moderate CVSS. |
| Exploit ScenarioDerived | A local user with access to /dev/crypto opens the device and creates a cryptographic session using CIOCGSESSION. The attacker then spawns two or more threads that simultaneously issue CIOCCRYPT ioctls using the same session identifier. On a multi-core SMP system, the concurrent operations race on the shared csession struct's embedded per-operation state, causing one thread's cleanup to free kernel heap buffers already freed or still in use by the other, triggering a double-free. This results in kernel heap corruption leading to a kernel panic (DoS), and potentially controlled memory corruption. A public technical writeup (nasm.re/posts/uaf_netbsd_crypto/) exists that documents the use-after-free behavior, increasing the likelihood that working exploit code could be developed from it. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 18, 2026
Kernel heap corruption in NetBSD's opencrypto subsystem enables local privilege-adjacent attackers to crash the kernel via a double-free triggered by a race condition in cryptodev_op(). The flaw exists because mutable per-operation state - including tmp_iv, tmp_mac, iovec, and uio - was embedded directly in the shared csession struct rather than isolated per-operation, making it unsafely accessible across concurrent threads on SMP systems. An authenticated local attacker issuing simultaneous CIOCCRYPT ioctl calls on the same session identifier can race the kernel into freeing the same memory region twice, corrupting the kernel heap. No public exploit identified at time of analysis, though a technical writeup is publicly available at nasm.re/posts/uaf_netbsd_crypto/.
RemediationAI
The upstream fix is available in NetBSD src commit ec8451efc1565516aba9e7047e1a1a1ce7953a2f (https://github.com/NetBSD/src/commit/ec8451efc1565516aba9e7047e1a1a1ce7953a2f). Administrators should update to a NetBSD build incorporating this commit or later; a specific tagged release version incorporating the fix has not been independently confirmed from the available data, so tracking -current or checking the NetBSD security advisory pages for a formal release is recommended. As a compensating control on systems that cannot be immediately updated, restricting access to /dev/crypto to trusted users only (e.g., via file permissions or group-based access control) would eliminate untrusted local exploitation - note this may break applications relying on hardware cryptographic acceleration. Disabling SMP (running with a single CPU) would prevent the race from triggering, but this is typically impractical on production servers. The technical writeup at https://nasm.re/posts/uaf_netbsd_crypto/ may contain additional mitigation context.
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 NetBSD opencrypto subsystem exposes cryptographic acceleration hardware and software via the /dev/crypto character device (cryptodev). The vulnerable code path is cryptodev_op() in sys/opencrypto/cryptodev.c, which handles the CIOCCRYPT ioctl. Prior to commit ec8451e, the csession struct embedded mutable per-operation fields - tmp_iv, tmp_mac, iovec[1], uio, and error - directly into the session-level struct. Because a csession is shared across threads by session identifier, two threads executing concurrent CIOCCRYPT on the same session ID raced on this shared mutable state. CWE-362 (Concurrent Execution Using Shared Resource with Improper Synchronization) is the root cause: the absence of reference counting and per-operation isolation on csession allowed one thread's cleanup to free buffers still in use or already freed by a concurrent thread, producing a classic double-free / use-after-free condition. The fix in commit ec8451e introduces a new cryptop_data struct (cod_ctor/cod_dtor) that isolates all per-operation state, adds a kmutex_t and volatile uint32_t refcnt to csession, and implements proper reference counting across fcrypt and csession lifecycles, including CRYPTODEV_OPS_MAX as an operation cap.
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:H/AT:N/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 race condition vulnerability in cryptodev_op() within the opencrypto subsystem that allows local attackers to trigger a double-free condition by concurrently issuing CIOCCRYPT operations on the same session identifier on SMP systems. Attackers can exploit mutable per-operation state embedded in the csession struct to corrupt kernel heap memory.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Race conditions occur when multiple concurrent requests exploit the brief time gap between checking a condition and acting upon it (TOCTOU - Time of Check, Time of Use).
EUVD-2026-30791
GHSA-5qv9-q5h2-c748
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB