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 199CE33FE24 for ; Wed, 22 Oct 2025 13:26: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=1761139594; cv=none; b=OVweMFMKWOmk91+Cv+0y0/SgOi4ZfJFJHT8eQrztjXWGV/XwoAItwhUxwwEoj5LjVH1Fy7dxAqafUU3TinQDcBkmcEhUk17qZYXVkgj2D+IMNvv54vNk2SokMX7bcBselfGvPpH76rlqkNW/7iEhFwEqWUXVwBafmsqnZyB7RfQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761139594; c=relaxed/simple; bh=LY2+KwmMAwORrQQdUZs76gA+RaZ+S1u0St7gPjhrdPM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kbu41SbLbuYWtRNm88OAoRAZG1ZiT9NY10EwXC5WLJ3VB35pkIO9RjfpZ9pXm9LXV7XXh3D6WIm03+aNIIvAbxWeCTj74w0ztSq1KRWEySVaJ0X4qjJ5GzTjiVoWM+980XDDMBZzquWp53pFGGT3et+sol84GYQIbR92upvuDqc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0s6eW9g4; 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="0s6eW9g4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E068C4CEFF; Wed, 22 Oct 2025 13:26:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1761139594; bh=LY2+KwmMAwORrQQdUZs76gA+RaZ+S1u0St7gPjhrdPM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=0s6eW9g49FttkztXUurObw89qgBms4FSk6mrBJ4T7u/CqEuaHAKeRizZCZLhcY3Nd NQVJBOLw1gzXb7DImByWG71t0rHDIrK3ySkKjtQuw5UDYSZH0mHB1TUmPbHH8+AVCl RxLJVg9i8y3RKzIk2sHP7QBk0rOKDZRsckx+5dJs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53720: net/mlx5e: Release the label when replacing existing ct entry Date: Wed, 22 Oct 2025 15:24:59 +0200 Message-ID: <2025102214-CVE-2023-53720-da5a@gregkh> X-Mailer: git-send-email 2.51.1 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=3145; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=U6StLU+ZqUORU7M9n+Q7wXMEQ6/+8FpqtUSBib8jZyU=; b=owGbwMvMwCRo6H6F97bub03G02pJDBk/bv27c+juE9mJ9csD0r7LFkwsiT95ZKO/rbR4+ccJW /J8LA+c64hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJGJYxLGgwKU652t9xMf7R wZcG4ZIfDXeYLmVYcNqicd1jhZXmBwxMrBRt7zUG7l66GgA= 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: Release the label when replacing existing ct entry Cited commit doesn't release the label mapping when replacing existing ct entry which leads to following memleak report: unreferenced object 0xffff8881854cf280 (size 96): comm "kworker/u48:74", pid 23093, jiffies 4296664564 (age 175.944s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [<000000002722d368>] __kmalloc+0x4b/0x1c0 [<00000000cc44e18f>] mapping_add+0x6e8/0xc90 [mlx5_core] [<000000003ad942a7>] mlx5_get_label_mapping+0x66/0xe0 [mlx5_core] [<00000000266308ac>] mlx5_tc_ct_entry_create_mod_hdr+0x1c4/0xf50 [mlx5_core] [<000000009a768b4f>] mlx5_tc_ct_entry_add_rule+0x16f/0xaf0 [mlx5_core] [<00000000a178f3e5>] mlx5_tc_ct_block_flow_offload_add+0x10cb/0x1f90 [mlx5_core] [<000000007b46c496>] mlx5_tc_ct_block_flow_offload+0x14a/0x630 [mlx5_core] [<00000000a9a18ac5>] nf_flow_offload_tuple+0x1a3/0x390 [nf_flow_table] [<00000000d0881951>] flow_offload_work_handler+0x257/0xd30 [nf_flow_table] [<000000009e4935a4>] process_one_work+0x7c2/0x13e0 [<00000000f5cd36a7>] worker_thread+0x59d/0xec0 [<00000000baed1daf>] kthread+0x28f/0x330 [<0000000063d282a4>] ret_from_fork+0x1f/0x30 Fix the issue by correctly releasing the label mapping. The Linux kernel CVE team has assigned CVE-2023-53720 to this issue. Affected and fixed versions =========================== Issue introduced in 6.3 with commit 94ceffb48eac7692677d8093dcde6965b70c4b35 and fixed in 6.3.2 with commit 3db903a71f1f4bbf30baae166a4a49f2e8aceb61 Issue introduced in 6.3 with commit 94ceffb48eac7692677d8093dcde6965b70c4b35 and fixed in 6.4 with commit 8ac04a28144cfa89b61be518268233742c23d88d 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-53720 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/3db903a71f1f4bbf30baae166a4a49f2e8aceb61 https://git.kernel.org/stable/c/8ac04a28144cfa89b61be518268233742c23d88d