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 292312163AF for ; Wed, 26 Feb 2025 02:13:56 +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=1740536036; cv=none; b=GltotmudejF3S7kPMgB6dOsDMkRlKhmUQOgSaQlkqRYgpfP6eFM7nwVtWH6poDFpE69/DDSy6GDXeC7ZXIMQm8jblTymLXcjmQn0C6foUbBfY6wExojJQTVtatq8yeyyDyAkS8VFPSVw5GdLPjc99h764QH3Ft3lMzhcEloIcY8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536036; c=relaxed/simple; bh=UEV8+3EaUzhfEQoxeOHfxLXnU4uYbLHiVpPguKVGiLk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GfRTZeOwA5YMJ60jhAVLxcD6W4yYy7T3QRr+drlwE3V4jeZW70qjtDeO1CW07LGoNZllyiaLzSIU9U+YaOjX9YmcbuuMTaNoqCrm3aovsG2T01TBJU8+r95VmEBYt7A6ZVgDe/Vso4bJirdrmSocORtjcwlRzPezPn644XtGnuk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vOILnRh0; 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="vOILnRh0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F0343C4CEDD; Wed, 26 Feb 2025 02:13:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536036; bh=UEV8+3EaUzhfEQoxeOHfxLXnU4uYbLHiVpPguKVGiLk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=vOILnRh08zAQelwUQIZnWLBV1r/kZn7kcHlv7lcOsg1RXX51PgxX7YJ7ZzfATdeCS pjh7Wi89s7ZU0tPcHNtab8TmP/5oSOwq2T7E0KP6fR+hzo1Zz9qTUI5Cet8xNSpYIh oqPDX3CP4lc6hzXjGCUMVWlHZYZkcOSaXlqqJEOY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49404: RDMA/hfi1: Fix potential integer multiplication overflow errors Date: Wed, 26 Feb 2025 03:11:18 +0100 Message-ID: <2025022651-CVE-2022-49404-9bb3@gregkh> X-Mailer: git-send-email 2.48.1 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=3798; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=UEV8+3EaUzhfEQoxeOHfxLXnU4uYbLHiVpPguKVGiLk=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7yt+Lcd/3r3+2h7HjzIKyGSH9/JO2mk3QzpZdWJ8w8 5BamE5YRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzE5zHDfG/xcKcJztpuGXM/ t7bta7ryrqPgLMOC/uANJ+YqTlwb+cmskNNqw/IPzJX/AA== 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: RDMA/hfi1: Fix potential integer multiplication overflow errors When multiplying of different types, an overflow is possible even when storing the result in a larger type. This is because the conversion is done after the multiplication. So arithmetic overflow and thus in incorrect value is possible. Correct an instance of this in the inter packet delay calculation. Fix by ensuring one of the operands is u64 which will promote the other to u64 as well ensuring no overflow. The Linux kernel CVE team has assigned CVE-2022-49404 to this issue. Affected and fixed versions =========================== Issue introduced in 4.3 with commit 7724105686e718ac476a6ad3304fea2fbcfcffde and fixed in 4.9.318 with commit 252f4afd4557a2e7075f793a5c80fe6dd9e9ee4a Issue introduced in 4.3 with commit 7724105686e718ac476a6ad3304fea2fbcfcffde and fixed in 4.14.283 with commit a89cb7ddf6a89bab6012e19da38b7cdb26175c19 Issue introduced in 4.3 with commit 7724105686e718ac476a6ad3304fea2fbcfcffde and fixed in 4.19.247 with commit 79c164e61f818054cd6012e9035701840d895c51 Issue introduced in 4.3 with commit 7724105686e718ac476a6ad3304fea2fbcfcffde and fixed in 5.4.198 with commit 8858284dd74906fa00f04f0252c75df4893a7959 Issue introduced in 4.3 with commit 7724105686e718ac476a6ad3304fea2fbcfcffde and fixed in 5.10.121 with commit 31dca00d0cc9f4133320d72eb7e3720badc6d6e6 Issue introduced in 4.3 with commit 7724105686e718ac476a6ad3304fea2fbcfcffde and fixed in 5.15.46 with commit 3f09ec80f115d2875d747ed28adc1773037e0f8b Issue introduced in 4.3 with commit 7724105686e718ac476a6ad3304fea2fbcfcffde and fixed in 5.17.14 with commit 06039d8afefdbac05bcea5f397188407eba2996d Issue introduced in 4.3 with commit 7724105686e718ac476a6ad3304fea2fbcfcffde and fixed in 5.18.3 with commit ef5ab2e48a5f9960e2352332b7cdb7064bb49032 Issue introduced in 4.3 with commit 7724105686e718ac476a6ad3304fea2fbcfcffde and fixed in 5.19 with commit f93e91a0372c922c20d5bee260b0f43b4b8a1bee 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-49404 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: drivers/infiniband/hw/hfi1/init.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/252f4afd4557a2e7075f793a5c80fe6dd9e9ee4a https://git.kernel.org/stable/c/a89cb7ddf6a89bab6012e19da38b7cdb26175c19 https://git.kernel.org/stable/c/79c164e61f818054cd6012e9035701840d895c51 https://git.kernel.org/stable/c/8858284dd74906fa00f04f0252c75df4893a7959 https://git.kernel.org/stable/c/31dca00d0cc9f4133320d72eb7e3720badc6d6e6 https://git.kernel.org/stable/c/3f09ec80f115d2875d747ed28adc1773037e0f8b https://git.kernel.org/stable/c/06039d8afefdbac05bcea5f397188407eba2996d https://git.kernel.org/stable/c/ef5ab2e48a5f9960e2352332b7cdb7064bb49032 https://git.kernel.org/stable/c/f93e91a0372c922c20d5bee260b0f43b4b8a1bee