Description
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.
Published: 2026-09-11
Score: 6.8 Medium
EPSS: n/a
KEV: No
Impact: Kernel pointer information disclosure
Action: Apply patch
AI Analysis

Impact

NetBSD’s mm_open() in sys/dev/mm.c incorrectly applies the PK_KMEM process flag to world‑accessible device files. This allows an unprivileged local user to bypass the CANSEE_KPTR obfuscation mechanism and obtain real kernel virtual addresses. The exposed addresses can be used to read sensitive kernel structures such as struct proc, kauth_cred, filedesc, and vmspace via sysctl KERN_PROC queries. The weakness is an access‑control flaw identified as CWE‑732.

Affected Systems

The vulnerability affects the NetBSD Foundation’s NetBSD operating system. The attack surface includes standard device files like /dev/null and /dev/zero, which are typically world‑accessible and therefore susceptible to the mis‑flagging issue.

Risk and Exploitability

Risk remains moderate with a CVSS score of 6.8 and a lack of an EPSS rating. The flaw is not listed in the CISA KEV catalog. Because the exploit requires only local, or local shell can potentially trigger the information disclosure. Exploiting the vulnerability does not grant code execution or elevated privileges but provides insight into kernel memory that could aid further attacks.

Generated by OpenCVE AI on September 11, 2026 at 16:13 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade NetBSD to the latest release that contains the mm_open patch addressing the PK_KMEM flag mis‑application.
  • Restrict the permissions on world‑accessible device files such as /dev/null and /dev/zero so that only privileged users can open them.
  • As a temporary mitigation, ensure that the PK_KMEM flag is not automatically set for non‑privileged processes by reviewing and adjusting relevant kernel configuration or sysctl settings.

Generated by OpenCVE AI on September 11, 2026 at 16:13 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 11 Sep 2026 14:00:00 +0000

Type Values Removed Values Added
Description 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.
Title NetBSD mm_open() PK_KMEM Flag Kernel Pointer Information Disclosure
Weaknesses CWE-732
References
Metrics cvssV3_1

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

cvssV4_0

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


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-09-11T13:50:32.448Z

Reserved: 2026-06-25T18:48:00.281Z

Link: CVE-2026-57843

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-11T14:17:28.067

Modified: 2026-09-11T14:17:28.067

Link: CVE-2026-57843

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-11T16:15:05Z

Weaknesses
  • CWE-732

    Incorrect Permission Assignment for Critical Resource