Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 463FD3EB0FB for ; Sat, 15 Aug 2026 12:29:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786796966; cv=none; b=AkpewURcf3dMNI339eCqXTRspUtoBTMnCZDv0Hby2JQMUm2T8yEYcpKdnqzyg7Z6/6XbCEvaGJwya5tsr5URk9Jx5P9KSEFHt6GDH/f6gjJ1yvqyWpjQROd6ld/pbCWyBt3JFVBGSt+1/dlVZV0+hCQHW0r6k6IJwrw7ASQjn0Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786796966; c=relaxed/simple; bh=UGURZt2K4ebeK92bq/jfLwcZZqZ8pAdEXe7af/bITgA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lWouQB6/XpWm++B/LYiOhfhHGqLMEWJ/9JFUpRWa2uGlCdp0w2R/gR9ZSClMxi1Stk2e9m/zuoGjAMIXlw4gL9mCws7UJ8fGDQh0K8OK4EIXJsZuVH20hju39ZZdTlSsfwJwKT2GZM6mOxmQJGqw8plsKVPU8WdHuGY7eQ4KRQ0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xvqVLGbd; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="xvqVLGbd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A01ED1F000E9; Sat, 15 Aug 2026 12:29:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786796965; bh=4DC6wz0qQ+QLmyK+OkhqQI1w42coeMPlHadUdur5Izs=; h=From:To:Cc:Subject:Date:Reply-To; b=xvqVLGbdCR4mGXAWBa4hj5s3EMPZ+DEMJa6BzVTH6pOITlZo2YhfkmNeHFFMa7H3+ 82n5HEjg6/Tb97imn5ygZkECQFh39pdYfNYOuy3XBoBTZmtUlB9zyHzPdvCPNHDM1o KoC0yxKgt5qimOG/iBh2/FCXkIfvf+3Tbh4lDTpw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-74483: binfmt_misc: don't leak the user namespace when the mount fails Date: Sat, 15 Aug 2026 21:26:04 +0900 Message-ID: <2026081537-CVE-2026-74483-9915@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3556; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=YipQPLGxR/nlV3iKskX3Ju6J9ug6RCJXD1E58r1nPP4=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNUQcN/TJdZC/fW/8gqiR25nuvpddbtoht6H14oMDbN DalV0q8I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbykp9hfqJE+xKHL2+d/p/Y NqdyfrSc8s9nbAxzOC3cJ2vPXM+oO2FjvvKCGpVy76fnAQ== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: binfmt_misc: don't leak the user namespace when the mount fails bm_get_tree() takes a reference to the user namespace and hands it to get_tree_keyed() as the sget key. sget_fc() moves that reference into sb->s_fs_info and clears fc->s_fs_info, so from that point on the superblock owns it and bm_free() doesn't see it anymore. The superblock drops it in ->put_super(). But generic_shutdown_super() only calls ->put_super() from inside the if (sb->s_root) branch, so nothing releases it when bm_fill_super() fails: - The kzalloc_obj() failure leaves s_root NULL and the whole branch is skipped. - A simple_fill_super() failure in the file loop leaves s_root set, but s_op still points at simple_super_operations, which has no ->put_super(). bm_fill_super() installs s_ops only once simple_fill_super() returned success, and installing it earlier wouldn't help either because simple_fill_super() overwrites s_op. Either way vfs_get_super() calls deactivate_locked_super() and the reference is gone for good. binfmt_misc mounts are available in a user namespace and both the inode and the dentry cache are SLAB_ACCOUNT, so an unprivileged caller under a tight memory cgroup can fail simple_fill_super() on demand and leak one user namespace per attempt. Drop the reference in ->kill_sb() instead, which runs unconditionally, the same way nfsd and rpc_pipefs release their keyed s_fs_info. That also stops ->put_super() from clearing s_fs_info while the superblock is still on @fs_supers. generic_shutdown_super() leaves it there on purpose so that sget_fc() keeps finding it until kill_sb() has run, but a NULL s_fs_info makes test_keyed_super() miss it, so a concurrent mount for the same user namespace skips the grab_super() wait and creates a second superblock for a namespace that is still being torn down. The Linux kernel CVE team has assigned CVE-2026-74483 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit 21ca59b365c091d583f36ac753eaa8baf947be6f and fixed in 7.1.8 with commit 87a4eb9bbb3497f749bbac612af22ddaa62d7b0d Issue introduced in 6.7 with commit 21ca59b365c091d583f36ac753eaa8baf947be6f and fixed in 7.2-rc6 with commit b8206f516fe7cbe785cf44bf09c17c438d7c3cad Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-74483 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: fs/binfmt_misc.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/87a4eb9bbb3497f749bbac612af22ddaa62d7b0d https://git.kernel.org/stable/c/b8206f516fe7cbe785cf44bf09c17c438d7c3cad