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 6117E18E351 for ; Tue, 20 Aug 2024 23:51:09 +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=1724197869; cv=none; b=FCUj4Yy6zm0y3KjT2o3vSF8COHvgv7wHEAW8j9LTWgB6BqBVSSA6GN7xmBW0hkFesTuYv0xj6w1nW90QSC/jj0C/9BKWiOyp1Q+3F8XXWYSPSnYqw7hVXp7U/GrLuXYV6ROwXlGpMBCrt58UiZ/yrJ/LLAtlV0/mt5O1GOuNdg8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724197869; c=relaxed/simple; bh=XQswP2yVXvgqwN6GLiYnKwaBP2vsI9jW8Mmq58ViJ8U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kq+0wL1+P4KxprNhtPtkpNj2D2+vVm41Yt22bPYHpP8t8SdZj3w67LmAUWNYXFhN53HPA0hr+snmvAc7DkroWEPCZKSLP+u6CZwmRw/+20EPvJfDXupKSkwUoRrvnyuMAzEkIseNh88N8ly99uhWFvafXZftO607Mzke7f79gks= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=B/LR+Mzf; 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="B/LR+Mzf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A56E1C4AF09; Tue, 20 Aug 2024 23:51:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1724197869; bh=XQswP2yVXvgqwN6GLiYnKwaBP2vsI9jW8Mmq58ViJ8U=; h=From:To:Cc:Subject:Date:Reply-to:From; b=B/LR+MzfbxdZ3qPFqaExwf3+PgLNRQWv99B4lI9UQnFiMFm+TCd1HmEef3RBFyiZq /rUBsTLNVE11hC24DK//Afh4kfWDVuQv5ItrGJQF5cLQgK9TzrVBeE8EiwVKxNJdhI I0maGXb1wWMT+yNyRifDFKU8OXh+q2Jx60EWMKdc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-43864: net/mlx5e: Fix CT entry update leaks of modify header context Date: Wed, 21 Aug 2024 07:50:57 +0800 Message-ID: <2024082156-CVE-2024-43864-81ad@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=2474; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=XQswP2yVXvgqwN6GLiYnKwaBP2vsI9jW8Mmq58ViJ8U=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlHtR+ITlHUfGi7+Nkulvu28/0us5/Zyn7NX1rg3r2ZR W/50gPKO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiJ0sZFvRea0k4VCwRY8aU LbciM66z5vwVboZ5Zk+bXt+WfdlpaRUe+EhuJbuZ7sYPAA== 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/mlx5e: Fix CT entry update leaks of modify header context The cited commit allocates a new modify header to replace the old one when updating CT entry. But if failed to allocate a new one, eg. exceed the max number firmware can support, modify header will be an error pointer that will trigger a panic when deallocating it. And the old modify header point is copied to old attr. When the old attr is freed, the old modify header is lost. Fix it by restoring the old attr to attr when failed to allocate a new modify header context. So when the CT entry is freed, the right modify header context will be freed. And the panic of accessing error pointer is also fixed. The Linux kernel CVE team has assigned CVE-2024-43864 to this issue. Affected and fixed versions =========================== Issue introduced in 6.3 with commit 94ceffb48eac and fixed in 6.6.45 with commit daab2cc17b6b Issue introduced in 6.3 with commit 94ceffb48eac and fixed in 6.10.4 with commit 89064d09c56b Issue introduced in 6.3 with commit 94ceffb48eac and fixed in 6.11-rc2 with commit 025f2b85a5e5 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-2024-43864 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/en/tc_ct.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/daab2cc17b6b6ab158566bba037e9551fd432b59 https://git.kernel.org/stable/c/89064d09c56b44c668509bf793c410484f63f5ad https://git.kernel.org/stable/c/025f2b85a5e5a46df14ecf162c3c80a957a36d0b