5.7medium
NetBSD Signed Integer Overflow in cryptodev_op via cryptodev.c
- Severity
- 5.7medium CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.11% (higher than 1% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| NetBSD src | before ec8451efc1565516aba9e7047e1a1a1ce7953a2f | CVE List |
All scores
| VulnCheck | 5.7medium CVSS:4.0 | 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 |
| VulnCheck | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Classification
What each source says
CVE List
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.
NVD (es)
NetBSD anterior al commit ec8451e contiene una vulnerabilidad de desbordamiento de entero con signo en la función cryptodev_op() en sys/opencrypto/cryptodev.c donde la variable local iov_len se declara como un int con signo pero se le asigna un valor cop -> dst_len sin signo, causando un comportamiento indefinido cuando cop -> dst_len excede INT_MAX. Un atacante local con acceso a /dev/crypto y un tipo de sesión de compresión puede explotar esta vulnerabilidad proporcionando un valor dst_len que exceda INT_MAX para desencadenar un pánico del kernel a través de una desreferencia de puntero NULL cuando CONFIG_SVS está deshabilitado y aritmética de punteros UIO corrupta.
References
| https://nasm.re/posts/uaf_netbsd_crypto/ | exploit, technical-description | |
| https://github.com/NetBSD/src/commit/ec8451efc1565516aba9e7047e1a1a1ce7953a2f | patch | |
| https://www.vulncheck.com/advisories/netbsd-signed-integer-overflow-in-cryptodev-op-via-cryptodev-c | third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-32849 changed 2026-07-14 | CVE Terms of Use |
| NVD | CVE-2026-32849 changed 2026-10-26 | Public domain |