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 A8490259CA7 for ; Fri, 2 May 2025 15:58:16 +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=1746201497; cv=none; b=u9GHbbf1HaBktHAPVcdkiK0wdWyKGaZq5apXNyoKdc+yCazxhL+iC3n4WGcOSXfiMxoROB4I7WriKDC1C6ahfQa2TVXo+BZq0/5ScG1Zy08/CdsoJJhx2IiSlqCBn/hKFJgRE6tHk1p4XpXtszYd8P+x2DDB60KWfi9YBHLewgQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746201497; c=relaxed/simple; bh=mqfeuLt5sRZtP7ioRRdmWSktEIpj/7LkFKO5X1e/4ys=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cksIgRV8V/Oe/8Liy1/MuViVmHOu4Cx0rLRQX4T3TJmnn1fiy17UcGohhu7uwERX3SE7WIO1TkgoaTNISmLUXqsIrjXk9fMEVOq/zV/1ekXXzBPNrFmfgzY+YYuHSqgNmp6Gf4nICIyCEwIPTZxd+2cy6H6nBXOipzjeEUfckDM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=cAW5MAAQ; 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="cAW5MAAQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6FB0FC4CEE4; Fri, 2 May 2025 15:58:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746201496; bh=mqfeuLt5sRZtP7ioRRdmWSktEIpj/7LkFKO5X1e/4ys=; h=From:To:Cc:Subject:Date:Reply-to:From; b=cAW5MAAQUZrGhsG+uDvHvbSz1ytTwxRSAuroqbKkD7T/LtSZB6qzMWwkWf9wYxbH7 3tOzuMMy++MeQ0Hsk8CtLfTIv1/s5kuwhUuaoW+Qy0QrGlAXbuf7gb1WNN7att67o+ aXlrIndLSedT67JnMBdF3QdPwXZ0vzz9Li33hXMg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53073: perf/x86/amd/core: Always clear status for idx Date: Fri, 2 May 2025 17:55:38 +0200 Message-ID: <2025050214-CVE-2023-53073-a450@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=2595; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7dCqFkqWV1Y3uANEG6dRyf4ICyTxpiQkXjJOa12tDi8=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkirx4F7Ly6ceKMPPnMO+ts3lTF9yzWjH4hfOpspU/GP cndsVtZO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiazgZFvTt37D+LtOJ6aGH VvEcYXivMHeiqBrDgoWTyszTFveJ1om9mDJ3UdfS07+zJAE= 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: perf/x86/amd/core: Always clear status for idx The variable 'status' (which contains the unhandled overflow bits) is not being properly masked in some cases, displaying the following warning: WARNING: CPU: 156 PID: 475601 at arch/x86/events/amd/core.c:972 amd_pmu_v2_handle_irq+0x216/0x270 This seems to be happening because the loop is being continued before the status bit being unset, in case x86_perf_event_set_period() returns 0. This is also causing an inconsistency because the "handled" counter is incremented, but the status bit is not cleaned. Move the bit cleaning together above, together when the "handled" counter is incremented. The Linux kernel CVE team has assigned CVE-2023-53073 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit 7685665c390dc68c2d9a74e8445f41494cc8f6cf and fixed in 6.1.22 with commit ab33a8f7649b0324639a336e1081aaea51a4523e Issue introduced in 5.19 with commit 7685665c390dc68c2d9a74e8445f41494cc8f6cf and fixed in 6.2.9 with commit 9d4c7b1f12e101d6d6253092588b127416ddfb6c Issue introduced in 5.19 with commit 7685665c390dc68c2d9a74e8445f41494cc8f6cf and fixed in 6.3 with commit 263f5ecaf7080513efc248ec739b6d9e00f4129f 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-53073 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: arch/x86/events/amd/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/ab33a8f7649b0324639a336e1081aaea51a4523e https://git.kernel.org/stable/c/9d4c7b1f12e101d6d6253092588b127416ddfb6c https://git.kernel.org/stable/c/263f5ecaf7080513efc248ec739b6d9e00f4129f