Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain local shell access
-
DeliveryOpen /dev/null or /dev/zero to trigger PK_KMEM flag
-
ExploitIssue sysctl KERN_PROC query
-
ExecutionCANSEE_KPTR check bypassed by elevated flag
-
PersistRead real kernel virtual addresses for proc/kauth_cred/vmspace
-
ImpactUse 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
Local-only vector, low-privilege user sufficient; confidentiality High for kernel pointer leak; no integrity or availability impact; no scope change.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
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
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.
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
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
The SSL protocol 3.0, as used in OpenSSL through 1.0.1i and other products, uses nondeterministic CBC padding, which mak
Remote code execution in OpenSSH's sshd server (regression of CVE-2006-5051) allows unauthenticated remote attackers to
NetBSD maps the run-time link-editor ld.so directly below the stack region, even if ASLR is enabled, this allows attacke
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
The NetBSD qsort() function is recursive, and not randomized, an attacker can construct a pathological input array of N
A flaw exists in NetBSD's implementation of the stack guard page that allows attackers to bypass it resulting in arbitra
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
The glob implementation in tnftpd (formerly lukemftpd), as used in Apple OS X before 10.11, allows remote attackers to c
An issue was discovered in the kernel in NetBSD 7.1. Rated medium severity (CVSS 5.3), this vulnerability is no authenti
ftpd before "NetBSD-ftpd 20230930" can leak information about the host filesystem before authentication via an MLSD or M
EUVD-2026-76107
GHSA-p59p-jjhh-5885
NVD
CVE.org
EPSS
Exploit-DB