CVE-2026-98988: namespace: keep covered mounts covered in OPEN_TREE_NAMESPACE

Published Oct 23, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

namespace: keep covered mounts covered in OPENTREENAMESPACE

opentree(OPENTREENAMESPACE) creates a new mount namespace from a copy of the tree at the given path. The caller needs to be privileged over its current user namespace because the new mount namespace will be owned by it. It doesn't need to be privileged over the mount namespace the tree is copied from. An unprivileged user just needs to create a user namespace first.

The copy follows the rules of a detached bind mount. Without ATRECURSIVE only the mount itself is cloned and its children are left out. With ATRECURSIVE unbindable mounts are skipped. Both is fine when the caller has privileges over the source mount namespace because it could unmount those mounts anyway. Not so for an unprivileged user in that mount namespace. For them a mount namespace copy is what unshare() does. copymntns() copies everything including unbindable mounts and lockmnttree() makes sure nothing can be unmounted in the copy. Nothing that was covered gets revealed.

createnewnamespace() only does the locking and so the covered content is right there in the new mount namespace:

# mount -t tmpfs none /tmp/otn; mkdir /tmp/otn/covered # echo hidden > /tmp/otn/covered/under.txt # mount -t tmpfs none /tmp/otn/covered

uid 1000, after unshare(CLONENEWUSER): fd = opentree(ATFDCWD, "/tmp/otn", OPENTREENAMESPACE); setns(fd, CLONENEWNS); open("/covered/under.txt", ORDONLY) -> "hidden"

Covering paths with mounts is how container runtimes mask parts of /proc and /sys and how admins hide things.

When the caller's user namespace doesn't own the source mount namespace copy the way unshare() does and refuse a non-recursive copy of a mount that has anything mounted below the requested directory and copy unbindable mounts in a recursive copy. A caller that is privileged over the source mount namespace sees no change.

Affected Software

1 affected component
Linux Linux kernel

Event History

Oct 23, 2026
CVE Published
via MITRE·12:20 PM
Data Sourced
via MITRE·12:20 PM
Description

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