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 2B7811C7B69 for ; Mon, 21 Oct 2024 20:13:50 +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=1729541630; cv=none; b=Hwx8lGejENRBEUeQLs9JRPOsNotdVYw2xas63MlY8P2Aaxlwt4eoDiX4kD0gcxWYU5L3LIyPYhm6k+SgYOJ4IjD+EcEZSah/fdoIumJo42zueUR5OWKAs3xv8UtsDpy+KtL4HlnDY52F1BO0JE57mFXa9myBkEpzNqw9J1i9TNA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729541630; c=relaxed/simple; bh=F2vESyn12V4FKR39vhNofvOeOXGtuPFi/+8PWaDkPdk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZltBeOgzvS1yu1NMlTgI5wxG/zoDSvFqxYNgGwBdU3LBdByS0kcjfVQxPUkGi5gTF1inYLH3aqUaE4HO2i8Uww9TmHf+mvQsu8x+YLdsl2aQ4jvMFVsIeWqFTpQu0/vzYnxDFH+HnP5Z4oawTKzJpQEfyu3TBBFKxQG52v9Txcs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pyMqSjht; 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="pyMqSjht" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A22DBC4CEC3; Mon, 21 Oct 2024 20:13:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729541630; bh=F2vESyn12V4FKR39vhNofvOeOXGtuPFi/+8PWaDkPdk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=pyMqSjhtXkE8CXkmDkJyk8DoTQgPGc8iQNHAC7Hc8m0FHeIhWJeLBcXOtEBkSURfe WiUruYs0XQlyB7Nna5IhxaF1JCW3ITweiSUccTCK4CidLNfQIiypSld3Yg1tEu8JEw JtEMgzHnPkdbo9viTzVMLiWmJOTDUwRKwgGQPivM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49025: net/mlx5e: Fix use-after-free when reverting termination table Date: Mon, 21 Oct 2024 22:06:57 +0200 Message-ID: <2024102155-CVE-2022-49025-4bcc@gregkh> X-Mailer: git-send-email 2.47.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=2521; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=F2vESyn12V4FKR39vhNofvOeOXGtuPFi/+8PWaDkPdk=; b=owGbwMvMwCRo6H6F97bub03G02pJDOliW5Qj0o0TOFwWpuS/rp4qM3mF6nn79wrNHtfPpKQIt j1j+B/ZEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABPZ9YFhNvvZXc55+7bnW97e NPu54Zvpi+aEmTIsWHVCr+ZuwvMbPZerovfFf+z6v8ZEDAA= 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 use-after-free when reverting termination table When having multiple dests with termination tables and second one or afterwards fails the driver reverts usage of term tables but doesn't reset the assignment in attr->dests[num_vport_dests].termtbl which case a use-after-free when releasing the rule. Fix by resetting the assignment of termtbl to null. The Linux kernel CVE team has assigned CVE-2022-49025 to this issue. Affected and fixed versions =========================== Issue introduced in 5.3 with commit 10caabdaad5a and fixed in 5.4.226 with commit 0a2d73a77060 Issue introduced in 5.3 with commit 10caabdaad5a and fixed in 5.10.158 with commit 0d2f9d95d9fb Issue introduced in 5.3 with commit 10caabdaad5a and fixed in 5.15.82 with commit 372eb550faa0 Issue introduced in 5.3 with commit 10caabdaad5a and fixed in 6.0.12 with commit e6d2d26a49c3 Issue introduced in 5.3 with commit 10caabdaad5a and fixed in 6.1 with commit 52c795af0444 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-49025 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/eswitch_offloads_termtbl.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/0a2d73a77060c3cbdc6e801cd5d979d674cd404b https://git.kernel.org/stable/c/0d2f9d95d9fbe993f3c4bafb87d59897b0325aff https://git.kernel.org/stable/c/372eb550faa0757349040fd43f59483cbfdb2c0b https://git.kernel.org/stable/c/e6d2d26a49c3a9cd46b232975e45236304810904 https://git.kernel.org/stable/c/52c795af04441d76f565c4634f893e5b553df2ae