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 D7260199242 for ; Tue, 16 Jul 2024 11:47:42 +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=1721130462; cv=none; b=QRE346Jp5Z63rhF5jYXUoP/e3RPsBNsaoBA41c8BgMVMincxF/e0ZqnV4t1w3N+FYR+kB/yrLpeDs5rxTaKpgjg9W5RpMN9KGKiP+rTRhJC+5Y6BSNKqIFgdBeKLtDClqtvA/td9OXauagVNRCwBny+yX0p194UXVyD9BAuQ/ng= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721130462; c=relaxed/simple; bh=u+rUrtpzGCXWnycU4WBJSooE/Cim9HHALJVrahsXieo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=M4lofshRMZ5PubAQ3zViTpYJ4ZFL3Hr0VxdCuvPSlm24i/CC8h0DKZ8ZLGusjSWbxr4ZC8mJZj16jUGYRi/0fVUXj/twfs/MOSz0qYS1ry//CzwBv9xn9iLfYQMKL0ayOt4VHvq/1LwgL8FnoyMMNc/R5XnlLVFsKyrHSvr1RBQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RVq2MY6I; 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="RVq2MY6I" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D1FCC116B1; Tue, 16 Jul 2024 11:47:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1721130462; bh=u+rUrtpzGCXWnycU4WBJSooE/Cim9HHALJVrahsXieo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=RVq2MY6IfCfIX0esTjnIFScHdm/0MVRh/hx1MfwxloUrX00MKwRFG+tw9lj0BcZVp fEE2VfFiZ1sP/B1iaoboA0L3Te6dP88+oG5rHrStJdMwwvDWIxrYdLWSFyB7rXrRbY //njKDifFdWlJQ/gg88bvBkptv1bNONh/vC8bkEQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48799: perf: Fix list corruption in perf_cgroup_switch() Date: Tue, 16 Jul 2024 13:45:51 +0200 Message-ID: <2024071643-CVE-2022-48799-9594@gregkh> X-Mailer: git-send-email 2.45.2 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=2921; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=u+rUrtpzGCXWnycU4WBJSooE/Cim9HHALJVrahsXieo=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnTYtPnn+Bgf/Dcdovk3EV5ZjtWlS58duCH8LYJp1JMV ue9Kw+Z0xHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQAT+b2AYcHigInWy002235p MpwjJHNLctcXy2UMC0706G89eNrS3k7sb9+3ujleQc8/2QIA 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: perf: Fix list corruption in perf_cgroup_switch() There's list corruption on cgrp_cpuctx_list. This happens on the following path: perf_cgroup_switch: list_for_each_entry(cgrp_cpuctx_list) cpu_ctx_sched_in ctx_sched_in ctx_pinned_sched_in merge_sched_in perf_cgroup_event_disable: remove the event from the list Use list_for_each_entry_safe() to allow removing an entry during iteration. The Linux kernel CVE team has assigned CVE-2022-48799 to this issue. Affected and fixed versions =========================== Issue introduced in 4.11 with commit 058fe1c0440e and fixed in 4.14.267 with commit 5d76ed422340 Issue introduced in 4.11 with commit 058fe1c0440e and fixed in 4.19.230 with commit 30d9f3cbe47e Issue introduced in 4.11 with commit 058fe1c0440e and fixed in 5.4.180 with commit a2ed7b29d067 Issue introduced in 4.11 with commit 058fe1c0440e and fixed in 5.10.101 with commit f6b5d51976fc Issue introduced in 4.11 with commit 058fe1c0440e and fixed in 5.15.24 with commit 7969fe91c983 Issue introduced in 4.11 with commit 058fe1c0440e and fixed in 5.16.10 with commit 2142bc1469a3 Issue introduced in 4.11 with commit 058fe1c0440e and fixed in 5.17 with commit 5f4e5ce638e6 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-48799 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/events/core.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/5d76ed4223403f90421782adb2f20a9ecbc93186 https://git.kernel.org/stable/c/30d9f3cbe47e1018ddc8069ac5b5c9e66fbdf727 https://git.kernel.org/stable/c/a2ed7b29d0673ba361546e2d87dbbed149456c45 https://git.kernel.org/stable/c/f6b5d51976fcefef5732da3e3feb3ccff680f7c8 https://git.kernel.org/stable/c/7969fe91c9830e045901970e9d755b7505881d4a https://git.kernel.org/stable/c/2142bc1469a316fddd10012d76428f7265258f81 https://git.kernel.org/stable/c/5f4e5ce638e6a490b976ade4a40017b40abb2da0