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 4CBA71F16B for ; Thu, 22 Aug 2024 03:33:34 +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=1724297614; cv=none; b=hMletk2jC0UW6/2qL6IX/1dk4ecKkiax7C4dED//k/G9o1+tnDuzPY9ZseWlQg8DQ1QP1lsqvfYEVevM0pAJ3Gvfzlq0z5bhrKRq/VP6DupZPwdoD4l+vZzQFQitDXRSueGsdOYSJLxUmf5vABS0TbNOQJoRItdF1HiV75vp/8A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724297614; c=relaxed/simple; bh=GXKmU2XEvFlnjcGfSztD6m2wWMnMZgpMLEnXCHKV1cI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BxdMMuiQt4oavGfUh2xXE8II3CSl7u7nLwynNQsMTCYEIzGIuOqMibCiSmGw7E3TRxHRRqqAHExEyVo4VQCbX6e1v8Ix94RUehlidERx5PvpnfEdlNHkJ7Z+Eplv9MTiboqgaQREa7a4mIuYMrNbxrthKEnx2Tn2JU96kfhcjC8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=K6mmEp6s; 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="K6mmEp6s" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D0257C4AF0B; Thu, 22 Aug 2024 03:33:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1724297614; bh=GXKmU2XEvFlnjcGfSztD6m2wWMnMZgpMLEnXCHKV1cI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=K6mmEp6sFYaBLhCbwlJVHFmodFinBXp0aTpy44k845zVvRZx+lc8fuRDyNEUUvcfl ywA4ZU7L8tjBnzKG9jDtsDwyAIp6y0F75K1cXdyOuEDUwKts3NzPRHAdSO+G6wHOok IC54mXd6jdbEFtOf0eVihAgIesVVAZEPlO/G5K10= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48932: net/mlx5: DR, Fix slab-out-of-bounds in mlx5_cmd_dr_create_fte Date: Thu, 22 Aug 2024 11:31:33 +0800 Message-ID: <2024082223-CVE-2022-48932-9dc7@gregkh> X-Mailer: git-send-email 2.46.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=2073; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=GXKmU2XEvFlnjcGfSztD6m2wWMnMZgpMLEnXCHKV1cI=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnHNnK/ODjlV/seHeuTZ8PlPyc8cdgTLurcZ6BWUVmb0 lF1eWZwRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkugvDPCPH9ANv9r2Y8d5B xO7qPi/5ZS2C+QzzvQLXq+tM/vxs8ZYX5ZeTV1VorDNbDQA= 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: net/mlx5: DR, Fix slab-out-of-bounds in mlx5_cmd_dr_create_fte When adding a rule with 32 destinations, we hit the following out-of-band access issue: BUG: KASAN: slab-out-of-bounds in mlx5_cmd_dr_create_fte+0x18ee/0x1e70 This patch fixes the issue by both increasing the allocated buffers to accommodate for the needed actions and by checking the number of actions to prevent this issue when a rule with too many actions is provided. The Linux kernel CVE team has assigned CVE-2022-48932 to this issue. Affected and fixed versions =========================== Issue introduced in 5.16 with commit 1ffd498901c1 and fixed in 5.16.12 with commit 4ad319cdfbe5 Issue introduced in 5.16 with commit 1ffd498901c1 and fixed in 5.17 with commit 0aec12d97b20 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-48932 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/net/ethernet/mellanox/mlx5/core/steering/fs_dr.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/4ad319cdfbe555b4ff67bc608736c46a6930c848 https://git.kernel.org/stable/c/0aec12d97b2036af0946e3d582144739860ac07b