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 6545D1CB518 for ; Thu, 27 Mar 2025 16:43:33 +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=1743093814; cv=none; b=CqbR45dlvvr9T1M6ZbZwzr2Su3FZGmA3obf3btuGDCVg1jRlP/BZfQlDNQhdnM00WakKBnV5N1EYXqVxrWJCMOlLtfnI3OunpdF4TxhjHUZL63ycNLnXqgJLB/6+7ezvJZjP2v1RrXxT7ff6U0RGJhp32egKQH7K/aA/arwVohs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743093814; c=relaxed/simple; bh=QdHtIGoioIcAVB4yY7DNENlMNI+TP8MV5Bz+6KAbv0Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=B7rUcjHZsa8lLxt//xjTypOZ+N683pUxdMMsQzH9XvwxENEWnON4p9W2XpU7HKSmlUkOA90/xyG7V4jTtBZB7mEKZzXo3tfIq9xTCjwATGuNzZpR3OU/5kcNIRAetNgRlxf8hLnyV/9/ubQgjoeq9qKbWK9Al8aI+zPnCYfgfFM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=p9F2pleo; 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="p9F2pleo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 83856C4CEED; Thu, 27 Mar 2025 16:43:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743093813; bh=QdHtIGoioIcAVB4yY7DNENlMNI+TP8MV5Bz+6KAbv0Q=; h=From:To:Cc:Subject:Date:Reply-to:From; b=p9F2pleo/l24WM9RbkGHKT8WNy97U4yl2jupGUpObzSn5hhSALNqBjLxLXpbOhjcU vzeyZlxB6QNqTwaVtN5m+4sZRkwSsMdHHmvemPqhF1f20uLRgq8JaDMLvgo45fJFS4 v+MRnQgMglVQWCAiGwwMRCN7tn0jTNxBRO7IKkIg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49748: perf/x86/amd: fix potential integer overflow on shift of a int Date: Thu, 27 Mar 2025 17:43:06 +0100 Message-ID: <2025032759-CVE-2022-49748-4658@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=2792; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=QdHtIGoioIcAVB4yY7DNENlMNI+TP8MV5Bz+6KAbv0Q=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlPG4QPHK6yOmsRrXD/U5qJ9UW29PNCTGecmrwLYuTf/ fzUOl+4I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACai7sWwYM3cz+EvmcM+l8jo 70jJtFNhSlCYx7Cg+/+2yz4KevbPF7P8nnv0060NewvNAA== 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/x86/amd: fix potential integer overflow on shift of a int The left shift of int 32 bit integer constant 1 is evaluated using 32 bit arithmetic and then passed as a 64 bit function argument. In the case where i is 32 or more this can lead to an overflow. Avoid this by shifting using the BIT_ULL macro instead. The Linux kernel CVE team has assigned CVE-2022-49748 to this issue. Affected and fixed versions =========================== Issue introduced in 5.4.22 with commit d8a6a443ff0aea5893f0a7f2726973b496b76420 and fixed in 5.4.231 with commit fbf7b0e4cef3b5470b610f14fb9faa5ee7f63954 Issue introduced in 5.6 with commit 471af006a747f1c535c8a8c6c0973c320fe01b22 and fixed in 5.10.166 with commit f84c9b72fb200633774704d8020f769c88a4b249 Issue introduced in 5.6 with commit 471af006a747f1c535c8a8c6c0973c320fe01b22 and fixed in 5.15.91 with commit 14cc13e433e1067557435b1adbf05608d7d47a93 Issue introduced in 5.6 with commit 471af006a747f1c535c8a8c6c0973c320fe01b22 and fixed in 6.1.9 with commit a4d01fb87ece45d4164fd725890211ccf9a307a9 Issue introduced in 5.6 with commit 471af006a747f1c535c8a8c6c0973c320fe01b22 and fixed in 6.2 with commit 08245672cdc6505550d1a5020603b0a8d4a6dcc7 Issue introduced in 5.5.6 with commit 3512462036dbe44d88e93e75ee8a993781183ddb 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-49748 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/fbf7b0e4cef3b5470b610f14fb9faa5ee7f63954 https://git.kernel.org/stable/c/f84c9b72fb200633774704d8020f769c88a4b249 https://git.kernel.org/stable/c/14cc13e433e1067557435b1adbf05608d7d47a93 https://git.kernel.org/stable/c/a4d01fb87ece45d4164fd725890211ccf9a307a9 https://git.kernel.org/stable/c/08245672cdc6505550d1a5020603b0a8d4a6dcc7