{"id":"CVE-2026-99172","aliases":["CVE-2026-99172"],"related":[],"kind":"vulnerability","state":"published","title":"ipc: drop the mqueue mount with kern_unmount() on setup failure","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nipc: drop the mqueue mount with kern_unmount() on setup failure\n\nmq_init_ns() creates the mqueue mount with fc_mount_longterm(), so its\n->mnt_ns is MNT_NS_INTERNAL. When setting up the mqueue or ipc sysctls\nor msg_init_ns() fails afterwards, create_ipc_ns() drops it with a plain\nmntput(). With ->mnt_ns set that takes the fast path of\nmntput_no_expire(). The count drops to zero and nothing ever kills the\nmount, so the mount and the mqueue superblock are leaked.\n\nCommit dc55e35f9e81 (\"ipc: Store mqueue sysctls in the ipc namespace\")\nadded the first failure path after mq_init_ns() and never dropped the\nmount. Commit 7229d74e5e8c (\"ipc: create_ipc_ns: drop mqueue mount on\nsysctl setup failure\") tried to fix that with a mntput() but that\ndoesn't help for a long-term mount.\n\nUse kern_unmount(). free_ipc() open-codes the same thing for a namespace\nthat made it.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nipc: drop the mqueue mount with kern_unmount() on setup failure\n\nmq_init_ns() creates the mqueue mount with fc_mount_longterm(), so its\n->mnt_ns is MNT_NS_INTERNAL. When setting up the mqueue or ipc sysctls\nor msg_init_ns() fails afterwards, create_ipc_ns() drops it with a plain\nmntput(). With ->mnt_ns set that takes the fast path of\nmntput_no_expire(). The count drops to zero and nothing ever kills the\nmount, so the mount and the mqueue superblock are leaked.\n\nCommit dc55e35f9e81 (\"ipc: Store mqueue sysctls in the ipc namespace\")\nadded the first failure path after mq_init_ns() and never dropped the\nmount. Commit 7229d74e5e8c (\"ipc: create_ipc_ns: drop mqueue mount on\nsysctl setup failure\") tried to fix that with a mntput() but that\ndoesn't help for a long-term mount.\n\nUse kern_unmount(). free_ipc() open-codes the same thing for a namespace\nthat made it.","source":"cvelist"}],"published":"2026-10-28T10:35:27.245Z","modified":"2026-11-23T08:17:31.183Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"dc55e35f9e810f23dd69cfdc91a3d636023f57a2","fixed":"a18e94fa9238a810b5cef56f696232da6aa3e4e7","status":"affected"},{"type":"git","introduced":"dc55e35f9e810f23dd69cfdc91a3d636023f57a2","fixed":"4ffb61eeb57e0854bff3a25b210bc0500ff0f6e4","status":"affected"},{"type":"git","introduced":"dc55e35f9e810f23dd69cfdc91a3d636023f57a2","fixed":"4dd36cf72d2c6c090958c0d7b542fa8211635d2d","status":"affected"},{"type":"git","introduced":"dc55e35f9e810f23dd69cfdc91a3d636023f57a2","fixed":"4aef6ceb4d6acacd53bc047ac4849677c3edbec1","status":"affected"},{"type":"git","introduced":"dc55e35f9e810f23dd69cfdc91a3d636023f57a2","fixed":"c0620b648321fff654173d238d4a85298ea16d05","status":"affected"},{"type":"git","introduced":"dc55e35f9e810f23dd69cfdc91a3d636023f57a2","fixed":"f0e48172a59e517e613b73f73cc35f24fd123aeb","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.19","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.61","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.13","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/a18e94fa9238a810b5cef56f696232da6aa3e4e7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4ffb61eeb57e0854bff3a25b210bc0500ff0f6e4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4dd36cf72d2c6c090958c0d7b542fa8211635d2d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4aef6ceb4d6acacd53bc047ac4849677c3edbec1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c0620b648321fff654173d238d4a85298ea16d05","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f0e48172a59e517e613b73f73cc35f24fd123aeb","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99172","url":"https://www.cve.org/CVERecord?id=CVE-2026-99172","licence":"CVE Terms of Use","modified":"2026-11-23T08:00:39.211Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99172","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99172","licence":"Public domain","modified":"2026-11-23T08:17:31.183Z"}],"updatedAt":"2026-11-25T22:59:47.588Z","epss":{"score":0.00213,"percentile":0.12373,"date":"2026-12-01T12:00:22.000Z"}}