{"id":"CVE-2026-99172","summary":"ipc: drop the mqueue mount with kern_unmount() on setup failure","details":"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-\u003emnt_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 -\u003emnt_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.","modified":"2026-11-12T01:48:13.573919974Z","published":"2026-10-28T10:35:27.245Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99172.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/4aef6ceb4d6acacd53bc047ac4849677c3edbec1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4dd36cf72d2c6c090958c0d7b542fa8211635d2d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c0620b648321fff654173d238d4a85298ea16d05"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f0e48172a59e517e613b73f73cc35f24fd123aeb"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99172.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99172"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"dc55e35f9e810f23dd69cfdc91a3d636023f57a2"},{"fixed":"4dd36cf72d2c6c090958c0d7b542fa8211635d2d"},{"fixed":"4aef6ceb4d6acacd53bc047ac4849677c3edbec1"},{"fixed":"c0620b648321fff654173d238d4a85298ea16d05"},{"fixed":"f0e48172a59e517e613b73f73cc35f24fd123aeb"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-99172.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.19.0"},{"fixed":"6.12.117"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.61"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.2.13"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-99172.json"}}],"schema_version":"1.9.2"}