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 40844330B3F for ; Wed, 24 Dec 2025 12:29:03 +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=1766579343; cv=none; b=LZxXHcIN5/EeVg+X3vlG7/68JlslLubn4pI7d9I2p3EdiRgDxe2E8aOM0AqUdIFe52ttojZy9z4ZBaWhxTArZEUIcjOVRZGxy6oJ3fynvmTmpwH2e/eMpOTaaAohNNDLu7eS020QEvpzzCspx5DF65cOl4+/7q15Jw1edyR8Wx8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766579343; c=relaxed/simple; bh=WNsMZLpSjZ05yAJMqvPA00Lu8KOv9Q9InaDdJlPHaiU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Oh3OL/mOV1SDUqinf6e/YSuJ2pFEVeybj4p+dxHhGJzLbKTJQmA0c2AVsfh7b48wuAyVry7qXbfX4vHcHbKWMK42/s8z/a71al3SezwylDz2jKq00Rj0wX7JpO1E+rMuQFhXm8EM2ZI9Vl6cUXxbtncquHMu1pOFAH0Qj/6koRc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=GAYfzS6n; 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="GAYfzS6n" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B50B2C4CEFB; Wed, 24 Dec 2025 12:29:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766579343; bh=WNsMZLpSjZ05yAJMqvPA00Lu8KOv9Q9InaDdJlPHaiU=; h=From:To:Cc:Subject:Date:Reply-To:From; b=GAYfzS6nqJCM8DBo+QoNreCNnHbVjyx1n48ghBJh+OtqgSr8nZmObgR2+H5IGeUDF U7VblkaSySLo0pw/G34lEd3sKdoHpAfmo8PQLVNeuoJo5Deit6mEvBiBM0bzIOXvIY PnZgfhi9M98dtG37QenRYl4Hz5DXqgqudp1GuWDU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54074: net/mlx5e: Use correct encap attribute during invalidation Date: Wed, 24 Dec 2025 13:27:07 +0100 Message-ID: <2025122432-CVE-2023-54074-cf89@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3747; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=a3R1PCt+VsPGjolKCW8iwUourRcLcZJWpMbyRTdBk6A=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnet3+Ia/jO6b+93eHPc6c9QqXsV7QtS6SZy5eZac681 hf6RuhIRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkYwzD/AwbbreD9zSbHjLn FM4R3REnomy2m2E2G7vwkTPCVe9OO3gfP3z4kNOOiEItAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: net/mlx5e: Use correct encap attribute during invalidation With introduction of post action infrastructure most of the users of encap attribute had been modified in order to obtain the correct attribute by calling mlx5e_tc_get_encap_attr() helper instead of assuming encap action is always on default attribute. However, the cited commit didn't modify mlx5e_invalidate_encap() which prevents it from destroying correct modify header action which leads to a warning [0]. Fix the issue by using correct attribute. [0]: Feb 21 09:47:35 c-237-177-40-045 kernel: WARNING: CPU: 17 PID: 654 at drivers/net/ethernet/mellanox/mlx5/core/en_tc.c:684 mlx5e_tc_attach_mod_hdr+0x1cc/0x230 [mlx5_core] Feb 21 09:47:35 c-237-177-40-045 kernel: RIP: 0010:mlx5e_tc_attach_mod_hdr+0x1cc/0x230 [mlx5_core] Feb 21 09:47:35 c-237-177-40-045 kernel: Call Trace: Feb 21 09:47:35 c-237-177-40-045 kernel: Feb 21 09:47:35 c-237-177-40-045 kernel: mlx5e_tc_fib_event_work+0x8e3/0x1f60 [mlx5_core] Feb 21 09:47:35 c-237-177-40-045 kernel: ? mlx5e_take_all_encap_flows+0xe0/0xe0 [mlx5_core] Feb 21 09:47:35 c-237-177-40-045 kernel: ? lock_downgrade+0x6d0/0x6d0 Feb 21 09:47:35 c-237-177-40-045 kernel: ? lockdep_hardirqs_on_prepare+0x273/0x3f0 Feb 21 09:47:35 c-237-177-40-045 kernel: ? lockdep_hardirqs_on_prepare+0x273/0x3f0 Feb 21 09:47:35 c-237-177-40-045 kernel: process_one_work+0x7c2/0x1310 Feb 21 09:47:35 c-237-177-40-045 kernel: ? lockdep_hardirqs_on_prepare+0x3f0/0x3f0 Feb 21 09:47:35 c-237-177-40-045 kernel: ? pwq_dec_nr_in_flight+0x230/0x230 Feb 21 09:47:35 c-237-177-40-045 kernel: ? rwlock_bug.part.0+0x90/0x90 Feb 21 09:47:35 c-237-177-40-045 kernel: worker_thread+0x59d/0xec0 Feb 21 09:47:35 c-237-177-40-045 kernel: ? __kthread_parkme+0xd9/0x1d0 The Linux kernel CVE team has assigned CVE-2023-54074 to this issue. Affected and fixed versions =========================== Issue introduced in 5.18 with commit 8300f225268be9ee2c0daf5a3f23929fcdcbf213 and fixed in 6.1.31 with commit 00959a1bad58e4b6c14a2729f84d354255073609 Issue introduced in 5.18 with commit 8300f225268be9ee2c0daf5a3f23929fcdcbf213 and fixed in 6.3.5 with commit b8b4292fdd8818ab43b943b6717811651f51e39f Issue introduced in 5.18 with commit 8300f225268be9ee2c0daf5a3f23929fcdcbf213 and fixed in 6.4 with commit be071cdb167fc3e25fe81922166b3d499d23e8ac 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-2023-54074 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_tun_encap.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/00959a1bad58e4b6c14a2729f84d354255073609 https://git.kernel.org/stable/c/b8b4292fdd8818ab43b943b6717811651f51e39f https://git.kernel.org/stable/c/be071cdb167fc3e25fe81922166b3d499d23e8ac