CVE-2026-32849

NetBSD Signed Integer Overflow in cryptodev_op via cryptodev.c

Published May 18, 2026 CVSS 4.0 · 5.7 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

NetBSD's cryptodev_op function has a signed integer overflow when the destination length supplied by an attacker exceeds INT_MAX. This overflow corrupts the value used in subsequent pointer arithmetic, leading to a NULL pointer dereference and a kernel panic. The flaw is classified under CWE‑190 and involves a null pointer dereference (CWE‑476).

Affected Systems

All NetBSD systems running a kernel built from source that predates the commit ec8451e are affected. The vulnerable code resides in sys/opencrypto/cryptodev.c, so any installation that provides the /dev/crypto device and supports compression session types is susceptible.

Risk and Exploitability

The CVSS score of 5.7 reflects a moderate severity. The exploit requires local access to /dev/crypto and an ability to create a compression session; it does not provide remote code execution or persistence. Because the flaw only causes a kernel crash, the main risk is a denial‑of‑service, which can be disruptive in shared or production environments. The EPSS score is not available and the vulnerability is not listed in the CISA KEV catalog.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the NetBSD source tree to include commit ec8451e, rebuild the kernel, and deploy the updated kernel image.
  • Restrict access to the /dev/crypto device by setting file permissions or ACLs so that only trusted users or groups can use it.
  • If the compression session feature is not required, disable its support or remove /dev/crypto from the system to eliminate the attack surface.

Generated by OpenCVE AI on May 18, 2026 at 19:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Netbsd
Netbsd src
Vendors & Products Netbsd
Netbsd src
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title NetBSD Signed Integer Overflow in cryptodev_op via cryptodev.c
Weaknesses CWE-190
CWE-476
References
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

cvssV4_0

{'score': 5.7, 'vector': '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'}

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound

  • CWE-476

    NULL Pointer Dereference

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Jul 14, 2026, 6:40 PM
Reserved
Mar 16, 2026, 6:11 PM
Status
Deferred
Published
May 18, 2026, 6:17 PM
Modified
Oct 26, 2026, 1:10 PM