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 C62761C700B for ; Thu, 27 Mar 2025 16:37:51 +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=1743093471; cv=none; b=rmiQ7MykdwkN0hT2TGvparrtfq+3s25SH01sOSvNucVTMjoewTbsC83MLI0nMvIQHMaIrO9WgLRD4EUONBtxY02jleAPaupmEozwzKjeBv9+tmdbIrbUmmND4W1LRRiWkqcYhLcaN+kWufeSJQkgn1jSo6GCd1AWhZGGgAULGzg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743093471; c=relaxed/simple; bh=3r9XHrUtfhB3jer9SXgfdtIlIm7VqsY19SYevN8Mxpw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Sjiu72XiC6nXPWA9B4Slp7ZKN6mZOU6/lPADBEXv6xd7/Nf0YdnEL5mva322agF/PnaYkyGd24SPSzKb6uAs1Ap5Bjh4XWHtBsaqA9xXj39wks+HkWqfzmCIrJieGP3A37qTy1/2SMAwll2oTYvsQLTeQvPs1yOK1r4nVix1SQI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=z/elmFM/; 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="z/elmFM/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 19D81C4CEE8; Thu, 27 Mar 2025 16:37:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743093471; bh=3r9XHrUtfhB3jer9SXgfdtIlIm7VqsY19SYevN8Mxpw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=z/elmFM/IsoYbSrZf0lrcbm/9JMgrIMzubdXMxjR991LawNouSJIa1FWKZTXv2yvJ HUYahFCBKer5uqWzvHhf16JZ05/o4sHZbS22PBqxHY6WBbKqC2nUhr8mDho4eVzpmJ ZLcNubvqRCEhjqFT+cRaJkxmNokCP18zLotglAlU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52942: cgroup/cpuset: Fix wrong check in update_parent_subparts_cpumask() Date: Thu, 27 Mar 2025 17:37:32 +0100 Message-ID: <2025032723-CVE-2023-52942-6a3c@gregkh> X-Mailer: git-send-email 2.49.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=2573; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=3r9XHrUtfhB3jer9SXgfdtIlIm7VqsY19SYevN8Mxpw=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlP6w43rC1YYVU5eYZ9YbXNxAuTbVxOXLq16fESpfJGr u2mqyR2d8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE5hkxzHeSSpvVlrCZueZ3 47FLYjM6HVPuFDHMU8rjVvmon6B0u8NtS+/9aaKn7NhkAQ== 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: cgroup/cpuset: Fix wrong check in update_parent_subparts_cpumask() It was found that the check to see if a partition could use up all the cpus from the parent cpuset in update_parent_subparts_cpumask() was incorrect. As a result, it is possible to leave parent with no effective cpu left even if there are tasks in the parent cpuset. This can lead to system panic as reported in [1]. Fix this probem by updating the check to fail the enabling the partition if parent's effective_cpus is a subset of the child's cpus_allowed. Also record the error code when an error happens in update_prstate() and add a test case where parent partition and child have the same cpu list and parent has task. Enabling partition in the child will fail in this case. [1] https://www.spinics.net/lists/cgroups/msg36254.html The Linux kernel CVE team has assigned CVE-2023-52942 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1 with commit f0af1bfc27b52a4d42510051154c61bd176a8f06 and fixed in 6.1.11 with commit a2ab7f2cf5ef8f0c6212a246e681d1fe358cec1f Issue introduced in 6.1 with commit f0af1bfc27b52a4d42510051154c61bd176a8f06 and fixed in 6.2 with commit e5ae8803847b80fe9d744a3174abe2b7bfed222a 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-2023-52942 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: kernel/cgroup/cpuset.c tools/testing/selftests/cgroup/test_cpuset_prs.sh 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/a2ab7f2cf5ef8f0c6212a246e681d1fe358cec1f https://git.kernel.org/stable/c/e5ae8803847b80fe9d744a3174abe2b7bfed222a