From mboxrd@z Thu Jan 1 00:00:00 1970 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 13D406FC7 for ; Fri, 3 May 2024 14:52:23 +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=1714747944; cv=none; b=GN1FaIr777tmjiYG7Uy4uudcVvzUBJTQx80LGoxiaFMLmGS9oEv1Ix02X296E6sfLq+CNsjezUNdRzc0WIIJ7e7kutvJljmJmhT4I0ID9SsRsYgzcTSb80Nc0Pgp5UFjNuMItgdQpsRjwMvinVzf3/5uVBA7v614jJabeH59+GY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714747944; c=relaxed/simple; bh=vSbDKtUwepKUsd9RbpwF+EihJyjvxtot8pny/zxGlY4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rApNn3V9HzZa5aiQTCHHVAdVxhjJ/HjN+RPOTK3mJUw6aziMtOF6/JpMQzzIuJ+1YT8l+25WgtgCdbgzd+50vpXpXdd0hIDm77fBr2uxxxUkvaZCdwY3RnXz6AbMuKQVPogVOmaApTr8ZUE+FJ4Wdp5LsfmpcEdkE6OwXuTcF7g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xD2Zn2n0; 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="xD2Zn2n0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 36729C32789; Fri, 3 May 2024 14:52:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714747943; bh=vSbDKtUwepKUsd9RbpwF+EihJyjvxtot8pny/zxGlY4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=xD2Zn2n0Sh1zWKkFlFeI5tKNE5te6k5YrB75GVgbwNJKS1HqmLsAmcxofFPgPLuNr ZhS4XqXK+9iIN2ZyX8gox56RwMsk5Rhe1QCPQ15JT9khH7G266+fH4clwX1CzNn6Ti zQcIm7bwegnDeosMIkPN6Uv0Virh51IAR8DcWdCU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48671: cgroup: Add missing cpus_read_lock() to cgroup_attach_task_all() Date: Fri, 3 May 2024 16:52:16 +0200 Message-ID: <2024050317-CVE-2022-48671-fbdd@gregkh> X-Mailer: git-send-email 2.45.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=2501; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=vSbDKtUwepKUsd9RbpwF+EihJyjvxtot8pny/zxGlY4=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkmvxS9ttjbljn3ZTiL7ukQOLgxo6JCe8fqao+3edc5G 7+0fr/QEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABOZOo9hnlG5kU2CThOT0aJ2 jQSm1sDWmoNSDPMjHj/c+NGGMb9HSYjrwp5J6oESxQ0A 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: Add missing cpus_read_lock() to cgroup_attach_task_all() syzbot is hitting percpu_rwsem_assert_held(&cpu_hotplug_lock) warning at cpuset_attach() [1], for commit 4f7e7236435ca0ab ("cgroup: Fix threadgroup_rwsem <-> cpus_read_lock() deadlock") missed that cpuset_attach() is also called from cgroup_attach_task_all(). Add cpus_read_lock() like what cgroup_procs_write_start() does. The Linux kernel CVE team has assigned CVE-2022-48671 to this issue. Affected and fixed versions =========================== Issue introduced in 5.4.213 with commit 59c6902a96b4 and fixed in 5.4.215 with commit 07191f984842 Issue introduced in 5.10.143 with commit dee1e2b18cf5 and fixed in 5.10.145 with commit 9f267393b036 Issue introduced in 5.15.68 with commit 3bf4bf54069f and fixed in 5.15.70 with commit 5db17805b6ba Issue introduced in 5.19.9 with commit c0deb027c99c and fixed in 5.19.11 with commit 99bc25748e39 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-2022-48671 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/cgroup-v1.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/321488cfac7d0eb6d97de467015ff754f85813ff https://git.kernel.org/stable/c/07191f984842d50020789ff14c75da436a7f46a9 https://git.kernel.org/stable/c/9f267393b036f1470fb12fb892d59e7ff8aeb58d https://git.kernel.org/stable/c/5db17805b6ba4c34dab303f49aea3562fc25af75 https://git.kernel.org/stable/c/99bc25748e394d17f9e8b10cc7f273b8e64c1c7e https://git.kernel.org/stable/c/43626dade36fa74d3329046f4ae2d7fdefe401c6