CVE-2026-57843: NetBSD mm_open() PK_KMEM Flag Kernel Pointer Information Disclosure

Published Sep 11, 2026
·
Updated

NetBSD contains an information disclosure vulnerability in mmopen() 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 PKKMEM process flag. Attackers can exploit this misconfigured flag to bypass the CANSEEKPTR obfuscation mechanism and read kernel virtual addresses for sensitive kernel structures including struct proc, kauthcred, filedesc, and vmspace via sysctl KERNPROC queries.

Affected Software

1 affected component
NetBSD NetBSD

Event History

Sep 11, 2026
CVE Published
via MITRE·01:50 PM
Data Sourced
via MITRE·01:50 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Unprivileged local users are exposed when they can open world-accessible devices such as /dev/null or /dev/zero. The issue is local-only; the provided data does not describe a remote attack path.

2

What does an attacker need to do to exploit it?

An attacker needs local access with a low-privileged account and must open an affected world-accessible device. They can then use sysctl KERN_PROC queries to obtain unobfuscated kernel virtual addresses for sensitive kernel structures.

3

Are default device permissions relevant?

Yes. Exploitation depends on devices being world-accessible, specifically including examples such as /dev/null and /dev/zero. Those devices incorrectly receive the PK_KMEM process flag when opened.

4

How can defenders determine whether the issue is being exposed?

Check whether unprivileged users can open /dev/null, /dev/zero, or other world-accessible devices, and whether their processes can retrieve real rather than obfuscated kernel pointers through sysctl KERN_PROC queries. The disclosed pointers may include addresses for struct proc, kauth_cred, filedesc, and vmspace.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203