{"id":"CVE-2026-98993","title":"namespace: don't inherit MNT_UMOUNT in clone_mnt()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnamespace: don't inherit MNT_UMOUNT in clone_mnt()\n\nMNT_UMOUNT gets raised on a mount that umount_tree() or umount_one() has\ntaken out of its namespace. It's never clea…","severity":"none","vendor":"Linux","product":"Linux","affected":["Linux >= 590ce4bcbfb4e0462a720a4ad901e84416080bba < 99698cfa34e493fc091219056aae446fe9442a96","Linux >= 590ce4bcbfb4e0462a720a4ad901e84416080bba < c26c1a91ad2881a194f7af543e0b57f0870006b2","Linux >= 590ce4bcbfb4e0462a720a4ad901e84416080bba < eecc9cd0fc07dba3f7fb0b2f844b4029435a2f7b","Linux >= 590ce4bcbfb4e0462a720a4ad901e84416080bba < 5077b52e9e4d72da53c50251296b99cd416765a1","Linux >= 590ce4bcbfb4e0462a720a4ad901e84416080bba < e2c6d326216642011da318b9edfd5d57ebd5a56f","Linux 7052e71b2d085f76800115d4a212dcaf82b86262","Linux >= 4.0.2 < 4.1","Linux 4.1"],"published":"2026-10-23","updated":"2026-10-23","sourceUpdated":"2026-10-23T12:20:12.266Z","source":"CVEORG","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-98993","references":[{"url":"https://git.kernel.org/stable/c/99698cfa34e493fc091219056aae446fe9442a96"},{"url":"https://git.kernel.org/stable/c/c26c1a91ad2881a194f7af543e0b57f0870006b2"},{"url":"https://git.kernel.org/stable/c/eecc9cd0fc07dba3f7fb0b2f844b4029435a2f7b"},{"url":"https://git.kernel.org/stable/c/5077b52e9e4d72da53c50251296b99cd416765a1"},{"url":"https://git.kernel.org/stable/c/e2c6d326216642011da318b9edfd5d57ebd5a56f"}],"tags":["cve.org"],"ingestedAt":"2026-10-23T13:24:55.544Z","slug":"CVE-2026-98993","body":"## Overview\n\nIn the Linux kernel, the following vulnerability has been resolved:\n\nnamespace: don't inherit MNT_UMOUNT in clone_mnt()\n\nMNT_UMOUNT gets raised on a mount that umount_tree() or umount_one() has\ntaken out of its namespace. It's never cleared. __detach_mounts()\nunhooks a mount that carries it instead of unmounting it.\n\ndisconnect_mount() lets an unmounted child stay attached only if its\nparent carries it. propagate_umount() takes it as the sign that a mount\nis going to be unmounted when it decides what else can be unmounted,\nwhere a chain of locked mounts ends and where a for reparenting an\novermount.\n\nclone_mnt() copies the flags of the source and only masks\nMNT_INTERNAL_FLAGS which doesn't include MNT_UMOUNT. A mount that was\nlazily unmounted but is kept alive by a file descriptor can still be\ncopied when its root is an nsfs or pidfs file because may_copy_tree()\naccepts those before checking whether the source is mounted at all:\n\n  mount --bind /proc/self/ns/net /tmp/x\n  exec 3< /tmp/x\n  umount -l /tmp/x\n  mount --bind /proc/self/fd/3 /tmp/y\n\nThe mount on /tmp/y is attached to the caller's namespace with\nMNT_UMOUNT already set and every copy of it inherits the flag again.\n\nThat causes a number of bugs:\n\n- Unlink its mountpoint from a mount namespace where it isn't one.\n  __detach_mounts() takes it for a mount that was unmounted earlier,\n  unhooks it from its parent and drops the reference the namespace\n  holds on it. It stays in the namespace with one reference too few\n  and as its own parent, so it can't be unmounted through the file\n  descriptor anymore and the namespace never finds it again. When the\n  namespace goes away it's leaked and points to a freed struct\n  mnt_namespace that may_change_propagation() and anon_ns_root() read\n  on the next propagation change or mount_setattr() through the file\n  descriptor.\n\n- Make it shared and unmount a peer. trace_transfers() follows the\n  flag from the peer into it and strips it from its peer group.\n\n- Let a propagated umount reach it. gather_candidates() marks it with\n  T_UMOUNT_CANDIDATE but never puts it on the candidate list, so the\n  mark is never cleared and every later propagated umount skips it. If\n  it's the parent of a locked mount handle_locked() takes it as the\n  cutoff and commits the locked child that should have stayed and\n  disconnect_mount() leaves that child attached to it, unmounted under\n  a mounted parent, which is what disconnect_mount() exists to\n  prevent. When the namespace goes away umount_tree() visits the child\n  a second time. And once __detach_mounts() has made it its own parent\n  reparent() never finds the end of the chain of unmounted parents.\n\nA clone is a new mount that has never been unmounted. Add MNT_UMOUNT\nto MNT_INTERNAL_FLAGS so clone_mnt() never copies it. And warn when\numount_tree() reaches a mount that already has it set.\n\n## Affected\n\n- `Linux >= 590ce4bcbfb4e0462a720a4ad901e84416080bba < 99698cfa34e493fc091219056aae446fe9442a96`\n- `Linux >= 590ce4bcbfb4e0462a720a4ad901e84416080bba < c26c1a91ad2881a194f7af543e0b57f0870006b2`\n- `Linux >= 590ce4bcbfb4e0462a720a4ad901e84416080bba < eecc9cd0fc07dba3f7fb0b2f844b4029435a2f7b`\n- `Linux >= 590ce4bcbfb4e0462a720a4ad901e84416080bba < 5077b52e9e4d72da53c50251296b99cd416765a1`\n- `Linux >= 590ce4bcbfb4e0462a720a4ad901e84416080bba < e2c6d326216642011da318b9edfd5d57ebd5a56f`\n- `Linux 7052e71b2d085f76800115d4a212dcaf82b86262`\n- `Linux >= 4.0.2 < 4.1`\n- `Linux 4.1`\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.","depth":"sunlit","depthScore":3,"depthScoreParts":{"impact":2.8,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}