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 191268F54 for ; Fri, 8 Nov 2024 06:08:11 +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=1731046092; cv=none; b=uN1HISnsJiWP6LuCWWv8e+u7Jgq+LDUu+uT+POlsM++kijDp2RGrVdctzl3+49sB6iERh0xAIPdf9ixvV/E8W5hxAbxCuZyCJ+L8n2hoWU1D5biZfjJ9mfR+HlIFi/UcCKjtZRsvYBCXq+RaTd/3mHWaRSrxlE7Cx9lehg6g3jM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731046092; c=relaxed/simple; bh=XSvBdF0ApTNh8n692k1sBuWT6ihvceVYB/tooaSKSm0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ErvI2jNob7esLDeixvUeXtVp5bpfx6mP8P0WAzqAbqKk3xV1COL9SK7jmsZtwBx0+ngupHVKWej1Bcwh3pVWTdpoWinalx8z2VD7Hz7RJG7BUFvAEx72GKpza5Teejv7E15UTHeubELajEULdRuF6d9BvPGCaDjoJTlg5QcpDCM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ENCyzzEx; 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="ENCyzzEx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3278DC4CECE; Fri, 8 Nov 2024 06:08:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1731046091; bh=XSvBdF0ApTNh8n692k1sBuWT6ihvceVYB/tooaSKSm0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ENCyzzExuQ7aRlkot06gJPTZ9Z/rSd3BZs6d7BvmpVNhoHXpAJIm+bFT8jy9775/X FyBFha3528H/JEWp6i72rJrVNyICv/FuiFL7hjWUHTSikGPP9mMqGz5FqSKOk0JBG/ JYqD4Pc0O9ZzaycfHCyUN64wbb0oygH6ytyB14l0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50204: fs: don't try and remove empty rbtree node Date: Fri, 8 Nov 2024 07:08:05 +0100 Message-ID: <2024110805-CVE-2024-50204-11f7@gregkh> X-Mailer: git-send-email 2.47.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=1879; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=XSvBdF0ApTNh8n692k1sBuWT6ihvceVYB/tooaSKSm0=; b=owGbwMvMwCRo6H6F97bub03G02pJDOm6q46Kzroc/uiNy/E3tufZvnXequJRruSXur7mR/nEQ +5pwbOCOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAit98wzM9eevKD7aSO7vBD eXJ+7o9ebblnqsUwT3Wd4uraWLYp4aEite47p0581CCkCwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: fs: don't try and remove empty rbtree node When copying a namespace we won't have added the new copy into the namespace rbtree until after the copy succeeded. Calling free_mnt_ns() will try to remove the copy from the rbtree which is invalid. Simply free the namespace skeleton directly. The Linux kernel CVE team has assigned CVE-2024-50204 to this issue. Affected and fixed versions =========================== Issue introduced in 6.11 with commit 1901c92497bd and fixed in 6.11.6 with commit a8b155a2c30d Issue introduced in 6.11 with commit 1901c92497bd and fixed in 6.12-rc5 with commit 229fd15908fe 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-2024-50204 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/a8b155a2c30dc9a5ba837aa5fcba9a47cc031a9b https://git.kernel.org/stable/c/229fd15908fe1f99b1de4cde3326e62d1e892611