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 663A22C9A for ; Wed, 18 Sep 2024 06:32:55 +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=1726641175; cv=none; b=W3rOIee5Cs1hRVqSeC6qb5ovrm+6GTuoqBh4rW/ZCPcAlAZt3RYU43DxKg76dX+gyXnulBHK26XQ51ee3ZIN0i3stPvt+F6V+Qxn2vknIiRGclL7hz9X31b7ooNpBkwtUplc4yAufJzNYNmFLPGbPXFCs5Kmc5c3SYfEOXf/Tq4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726641175; c=relaxed/simple; bh=2SmtQqKGKKguW9laKAuQMTWC+HnTHm4A+wJw8Rm4LQg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PjGNABc5+7F/bznNyu7CDXmpaEEjltCgZ+hymtgtyuhh0T4YkilpqIQl/qZK7iDoJ3PBnUAVpcPCvrtDHnpeZFYIIjos8lID5npugrCKRJa5kSWtiQ9wr6liDW1XQefo8cwfn0O41+stdjovpiaqXyI6lu9vCWxNOyMQtE4tmRE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NH+RZIal; 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="NH+RZIal" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A6F89C4CEC3; Wed, 18 Sep 2024 06:32:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1726641175; bh=2SmtQqKGKKguW9laKAuQMTWC+HnTHm4A+wJw8Rm4LQg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=NH+RZIalTmdXzca4l7k1QqIzcj21Ixl3P5asf5/IJbD3gyDKvcw688yD+zRXn7dIH vMuJTP/qC80Is09jeIuXf0MleTB4fKLpvImP99Ao3hI68HQ77GYH+Cwr8RsauSkSah 2CE+fc0r4vwhFzLQeamJpL4nXGDAkSmjgTns7p/c= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46717: net/mlx5e: SHAMPO, Fix incorrect page release Date: Wed, 18 Sep 2024 08:32:34 +0200 Message-ID: <2024091833-CVE-2024-46717-2f30@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=2314; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2SmtQqKGKKguW9laKAuQMTWC+HnTHm4A+wJw8Rm4LQg=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmvShizn2w6JVZw5cz74JWnuDY+nspwLSw1dk1n4ISTF e9f6TE97ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJ7DnKMD/vyrwqr8bmqpJC 8aS+lbN2v664ABQtn6adl/jQwS46ddfu+T9c1oq3XDgCAA== 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: SHAMPO, Fix incorrect page release Under the following conditions: 1) No skb created yet 2) header_size == 0 (no SHAMPO header) 3) header_index + 1 % MLX5E_SHAMPO_WQ_HEADER_PER_PAGE == 0 (this is the last page fragment of a SHAMPO header page) a new skb is formed with a page that is NOT a SHAMPO header page (it is a regular data page). Further down in the same function (mlx5e_handle_rx_cqe_mpwrq_shampo()), a SHAMPO header page from header_index is released. This is wrong and it leads to SHAMPO header pages being released more than once. The Linux kernel CVE team has assigned CVE-2024-46717 to this issue. Affected and fixed versions =========================== Fixed in 6.1.109 with commit 03924d117625 Fixed in 6.6.50 with commit ae9018e3f61b Fixed in 6.10.9 with commit c909ab41df2b Fixed in 6.11 with commit 70bd03b89f20 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-46717 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_rx.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/03924d117625ecb10ee3c9b65930bcb2c37ae629 https://git.kernel.org/stable/c/ae9018e3f61ba5cc1f08a6e51d3c0bef0a79f3ab https://git.kernel.org/stable/c/c909ab41df2b09cde919801c7a7b6bb2cc37ea22 https://git.kernel.org/stable/c/70bd03b89f20b9bbe51a7f73c4950565a17a45f7