Skip to main content

NetBSD CVE-2026-57843

| EUVDEUVD-2026-76107 MEDIUM
Incorrect Permission Assignment for Critical Resource (CWE-732)
2026-09-11 VulnCheck GHSA-p59p-jjhh-5885
6.8
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain local shell access
  2. Delivery
    Open /dev/null or /dev/zero to trigger PK_KMEM flag
  3. Exploit
    Issue sysctl KERN_PROC query
  4. Execution
    CANSEE_KPTR check bypassed by elevated flag
  5. Persist
    Read real kernel virtual addresses for proc/kauth_cred/vmspace
  6. Impact
    Use addresses as KASLR bypass for follow-on kernel exploit

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V13 - Configuration Permission assignment review
Exploitation Conditions

Exploitation requires a local, low-privileged account on a NetBSD system - no special configuration, no non-default features, and no user interaction are required beyond basic shell access. The world-accessible permission bits on /dev/null and /dev/zero (present in default NetBSD installations) are the prerequisite: any unprivileged user who can open these devices triggers the flag misassignment. Exploitation is bounded by platform: only NetBSD systems running the affected mm_open() code are vulnerable; Linux, FreeBSD, and OpenBSD have separate, unrelated memory device handling. The attack yields information disclosure only and does not itself grant elevated privileges - it must be chained with a separate kernel write vulnerability to achieve privilege escalation. Remote exploitation is not possible; physical or shell access to the target system is required.

Impact

The CVSS 4.0 vector AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N accurately reflects the threat model: local, low-privilege, reliable, confidentiality-only impact. The effective CVSS 3.1 equivalent is approximately 5.5, though the vendor-reported score of 6.8 tracks the CVSS 4.0 rating. The confidentiality impact is rated High because real kernel virtual addresses for core structures (kauth_cred, vmspace) constitute exactly the information an attacker needs to defeat KASLR and perform targeted kernel exploitation. However, this is an information leak only - there is no direct write primitive and no availability impact. No EPSS score was provided in the input data. No KEV listing exists, and no public proof-of-concept has been identified, meaning opportunistic mass exploitation is unlikely. The primary real-world risk is as a prerequisite step in a multi-stage local privilege escalation chain on NetBSD systems. NetBSD's limited production deployment further constrains aggregate impact.

Exploit ScenarioDerived

A local unprivileged user on a NetBSD system opens /dev/null in their process - a standard, unrestricted operation. The mm_open() handler incorrectly sets the PK_KMEM flag on the caller's process struct. The attacker then issues sysctl KERN_PROC queries, which bypass CANSEE_KPTR checks due to the elevated flag and return real kernel virtual addresses for struct proc, kauth_cred, and vmspace, effectively defeating KASLR. These addresses can then be used to calculate offsets for a subsequent kernel write primitive exploit to achieve privilege escalation.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 11, 2026

Kernel pointer disclosure in NetBSD's mm_open() allows unprivileged local users to bypass the CANSEE_KPTR address obfuscation mechanism and recover real kernel virtual addresses. The flaw stems from world-accessible device nodes such as /dev/null and /dev/zero incorrectly inheriting the PK_KMEM process flag - a privilege reserved for kernel memory inspection tools - which then grants those processes unfiltered sysctl KERN_PROC results containing actual pointers to sensitive kernel structures including struct proc, kauth_cred, filedesc, and vmspace. No public exploit code has been identified and the vulnerability is not listed in the CISA KEV catalog, but the reliability of exploitation (AC:L, PR:L, no user interaction) makes it a useful primitive for chaining into privilege escalation attacks.

RemediationAI

Apply the vendor-released patch available through the NetBSD GNATS bug tracker at https://gnats.netbsd.org/60373. A specific fixed release version number is not confirmed by the available input data - consult the NetBSD security advisories and GNATS entry for the exact release incorporating the fix. As a compensating control prior to patching, administrators can restrict access to /dev/null and /dev/zero to prevent unprivileged users from triggering the flag assignment, though this may break standard POSIX-expected behavior for many applications. Alternatively, restricting access to sysctl KERN_PROC output via sysctl policy would limit what an attacker can read even if the flag is incorrectly set, but this also affects legitimate monitoring tools. The cleanest mitigation is the upstream patch, which should correct mm_open() to avoid assigning PK_KMEM to processes opening devices that do not require kernel memory access.

Affected VersionsENISA

NetBSD 10.0 ≤10.1
NetBSD 9.0 <9.5

Affected Packages

euvd netbsd fix: 9.5

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

NetBSD implements CANSEE_KPTR as a kernel security control that obfuscates kernel virtual addresses returned to unprivileged callers of sysctl KERN_PROC, preventing KASLR bypasses. The PK_KMEM flag on a process struct signals that the process has legitimate access to kernel memory (e.g., kvm(3) utilities), causing CANSEE_KPTR checks to be skipped. The defect lives in sys/dev/mm.c within mm_open(), which is the open handler for character devices like /dev/null and /dev/zero. Because these devices are world-accessible (mode 0666), any local user can open them; the incorrect flag assignment then propagates to the opener's process context. CWE-732 (Incorrect Permission Assignment for Critical Resource) accurately describes the root cause: the PK_KMEM privilege is a critical flag that should only be set for processes explicitly authorized for kernel memory access. Affected CPE is cpe:2.3:a:the_netbsd_foundation:netbsd:*:*:*:*:*:*:*:*, with the wildcard version range indicating all NetBSD releases containing the affected mm_open() logic.

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

Vendor (VulnCheck) PRIMARY 6.8 MEDIUM
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
vuln.today AI 5.5 MEDIUM

Local-only vector, low-privilege user sufficient; confidentiality High for kernel pointer leak; no integrity or availability impact; no scope change.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

NetBSD contains an information disclosure vulnerability in mm_open() within sys/dev/mm.c that allows unprivileged local users to obtain real kernel virtual addresses by opening world-accessible devices such as /dev/null or /dev/zero, which incorrectly receive the PK_KMEM process flag. Attackers can exploit this misconfigured flag to bypass the CANSEE_KPTR obfuscation mechanism and read kernel virtual addresses for sensitive kernel structures including struct proc, kauth_cred, filedesc, and vmspace via sysctl KERN_PROC queries.

Threat Intelligence Overview

EPSS Score
0.1%
Top 99% exploitable
Prevalence
Rare
NetBSD is a niche BSD variant with minimal enterprise production deployment.
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Netbsd

View all
CVE-2012-0217 HIGH POC
7.2 Jun 12

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

CVE-2014-8517 HIGH POC
7.5 Nov 17

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

CVE-2014-3566 LOW POC
3.4 Oct 15

The SSL protocol 3.0, as used in OpenSSL through 1.0.1i and other products, uses nondeterministic CBC padding, which mak

CVE-2024-6387 HIGH POC
8.1 Jul 01

Remote code execution in OpenSSH's sshd server (regression of CVE-2006-5051) allows unauthenticated remote attackers to

CVE-2017-1000375 CRITICAL POC
9.8 Jun 19

NetBSD maps the run-time link-editor ld.so directly below the stack region, even if ASLR is enabled, this allows attacke

CVE-2016-6253 HIGH POC
7.8 Jan 20

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

CVE-2017-1000378 CRITICAL
9.8 Jun 19

The NetBSD qsort() function is recursive, and not randomized, an attacker can construct a pathological input array of N

CVE-2017-1000374 CRITICAL
9.8 Jun 19

A flaw exists in NetBSD's implementation of the stack guard page that allows attackers to bypass it resulting in arbitra

CVE-2015-8212 CRITICAL
9.8 Jan 19

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

CVE-2015-5917 MEDIUM POC
5.0 Oct 09

The glob implementation in tnftpd (formerly lukemftpd), as used in Apple OS X before 10.11, allows remote attackers to c

CVE-2020-26139 MEDIUM
5.3 May 11

An issue was discovered in the kernel in NetBSD 7.1. Rated medium severity (CVSS 5.3), this vulnerability is no authenti

CVE-2023-45198 HIGH
7.5 Oct 05

ftpd before "NetBSD-ftpd 20230930" can leak information about the host filesystem before authentication via an MLSD or M

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy