CVE-2026-98994: statmount: read the parent of an unmounted mount under mount_lock

Published Oct 23, 2026
·
Updated

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

statmount: read the parent of an unmounted mount under mountlock

statmountmntbasic() reads the ids of the parent through m->mntparent with namespacesem held for reading. That's fine for a mount that is in a namespace. Everything above it is pinned by that namespace.

STATMOUNTBYFD also accepts a file descriptor on a mount that has been unmounted on purpose and that only the file descriptor keeps alive. If that mount stayed attached to its parent when it was unmounted the parent is unmounted as well and nothing pins it for the child.

The final mntput() unmounts the children under mountlock alone and frees the parent afterwards. Concurrently, statmountmntbasic() reads m->mntparent twice while that can happen and can easily dereference a mount that's already gone.

Read the parent of an unmounted mount under mountlock. The parent can't be put while it is held and both ids come from the same mount. A mounted mount's parent is pinned by the namespace and a mount can't leave its namespace while namespacesem is held, so the common case takes no global lock.

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