Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 B52802D662F for ; Wed, 9 Jul 2025 10:44:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752057893; cv=none; b=AKTNR1q2WrJm+yNbBxnHigWO/yVGhZDARcQX+DqJRZ08LNdxzs1GSuB5tgxge/FAClN6LGNxda+xW8tUwiYCNGOTKdDegLvmihm4VpXXZTK3W4JZtEga8AIjTou24LBT7sx2N9h8wL+Ov48CJcniUCrUrH+zeXPwX8rRlAtIYuQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752057893; c=relaxed/simple; bh=E/E5huWO6z/xP+Bl0YERxwYb1V1F+PBM+py9g5/AAMs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=A6NhXVsHF6rzSMDFhfVoPSys+Kv9n+r7qrDF8M/H7Itc3N4CZ9chnObylrayiZVCzEZFJesbt4nNKCLqASaKeh8eejqbke9fVLfAq/hxZeTS+R9gK4Nbf38NxE0e9Xo7C6wUOKzF+et6QKLNcgVyknxfJSxmNJqSh05pxcZQcnE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FI/1PyhM; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="FI/1PyhM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4156BC4CEF4; Wed, 9 Jul 2025 10:44:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1752057893; bh=E/E5huWO6z/xP+Bl0YERxwYb1V1F+PBM+py9g5/AAMs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=FI/1PyhMmKX3vQLR8az4eMoDhS3I5zc8HYpnv3SfYGs9t8AYJiar3G8HFnAlaaJEF THOBxJqMR18pZXwdF6fHm518HA5uz1eanQLwPn06TyZeaFxPzG5Ajl4Zav7zBWp3xZ N7NBJduStFfCt4TycxegLdlcWBzl9WYWXNkmk2s4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38247: userns and mnt_idmap leak in open_tree_attr(2) Date: Wed, 9 Jul 2025 12:42:39 +0200 Message-ID: <2025070934-CVE-2025-38247-14ac@gregkh> X-Mailer: git-send-email 2.50.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=1992; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7Yr2DvkqOwWkZIGChCmMDRRp4NynIZFDbmnHVsTzHP0=; b=owGbwMvMwCRo6H6F97bub03G02pJDBl57rO2hOnynpVY2VcVsYP9r/IajhcRJ883P9m4Mpr5f +X3Z5MdOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiFxwY5qmwtzu4B7yWdWn8 3fCTyy9xSd3HcwxzJdedu86UYsz792hg5t0//6smrha2AwA= 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: userns and mnt_idmap leak in open_tree_attr(2) Once want_mount_setattr() has returned a positive, it does require finish_mount_kattr() to release ->mnt_userns. Failing do_mount_setattr() does not change that. As the result, we can end up leaking userns and possibly mnt_idmap as well. The Linux kernel CVE team has assigned CVE-2025-38247 to this issue. Affected and fixed versions =========================== Issue introduced in 6.15 with commit c4a16820d90199409c9bf01c4f794e1e9e8d8fd8 and fixed in 6.15.5 with commit 142db4e76110dd80239f4e79810f85ea1735ad60 Issue introduced in 6.15 with commit c4a16820d90199409c9bf01c4f794e1e9e8d8fd8 and fixed in 6.16-rc4 with commit 0748e553df0225754c316a92af3a77fdc057b358 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-2025-38247 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/namespace.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/142db4e76110dd80239f4e79810f85ea1735ad60 https://git.kernel.org/stable/c/0748e553df0225754c316a92af3a77fdc057b358