Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 BC0373403E3 for ; Sat, 15 Aug 2026 06:08:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786774083; cv=none; b=puDdDmug695bZDVQipoTVv1CG1TyWYDRew6QMVR/Szz+yqiPQwTWBip1TWGWcGUtWC5BU5PszkaZeGbTJJscVqP61qoazMaMHCelwzY5GQgedKKKRXrQkPb3No6b55HBEyq0hNZko74yM8cU9HIK10oGZGgQCVivV4ZWGEizk1Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786774083; c=relaxed/simple; bh=fRisBKdbCrG13SU+1xcANaZbo+Ss6DUnEc+FTFmaTAI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qdD3rKRjFMz+vZK31mKSda2Xqd1xSJikzM6K1Nfg3YDOEGvn84TThPWxmlvMTB+1hwbdmFKYXrvQ4GY3b70h5wH0W+MTdRPNynaW0DIJyh3cQ6Jr+2Z6tiQ03pxrigtIZucL1YPXKz5j7DWspN7MLU3r0wG/IeZ+s7f+2WIIWN4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Ll4a/9gh; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Ll4a/9gh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 169E31F000E9; Sat, 15 Aug 2026 06:08:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786774082; bh=hz6C4ZYtEn3Ni3wdCl42BJJFH5uNMZdsqD9n8jp3CeM=; h=From:To:Cc:Subject:Date:Reply-To; b=Ll4a/9ghdN/ecFwgD5dnY4vB4gPGS/djEU4eiODQyN2z6fO+gw+fswUT+VSB3QkUJ 8lwox0gEM9ctvB1pHg6VN8jE1GllpsCFhakYlzKq/IS1tVjzUdKAvYh4pJiatwXKWE qxfjJivUjkwRfYNAFn+lUSrrPHC2BcAr5PeAbKDk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-72032: net/mlx5: HWS, fix matcher leak on resize target setup failure Date: Sat, 15 Aug 2026 15:01:51 +0900 Message-ID: <2026081512-CVE-2026-72032-bc57@gregkh> X-Mailer: git-send-email 2.55.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=3025; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=fEWhPSZLno37Poih7/SQnNgG5zpW4QVcTToJ8ekSoJM=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNDCve1qurlVqfL3I93/6t6tVvqdl525uMJHm3RTKn5 asq7T7eEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABNxTGWYn+4lG7do4tziR4r3 /9S39qau559iz7DgoLNLfZtDwd4/ncmFDT7bAjU2Wh0DAA== 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/mlx5: HWS, fix matcher leak on resize target setup failure hws_bwc_matcher_move() allocates a replacement matcher before setting it as the resize target. If mlx5hws_matcher_resize_set_target() fails, the replacement matcher is not attached anywhere and is leaked. Fix the leak by destroying the replacement matcher before returning from the resize-target failure path. The bug was first flagged by an experimental analysis tool we are developing for kernel memory-management bugs while analyzing v6.13-rc1. The tool is still under development and is not yet publicly available. Manual inspection confirms that the bug is still present in v7.1.1. An x86_64 allyesconfig build showed no new warnings. As we do not have a mlx5 HWS-capable device to test with, no runtime testing was able to be performed. The Linux kernel CVE team has assigned CVE-2026-72032 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12 with commit 2111bb970c787b16b002dc726c1d296ce87a00fb and fixed in 6.12.101 with commit a751ccdc6ea9bde154f25a5ba66926f462f96c19 Issue introduced in 6.12 with commit 2111bb970c787b16b002dc726c1d296ce87a00fb and fixed in 6.18.40 with commit 1dce4f4bb3c1c02080b1a45bdd2abb2913a6642a Issue introduced in 6.12 with commit 2111bb970c787b16b002dc726c1d296ce87a00fb and fixed in 7.1.5 with commit ae0265f0a95aaacef59d560a3e1ea36db8be9a52 Issue introduced in 6.12 with commit 2111bb970c787b16b002dc726c1d296ce87a00fb and fixed in 7.2-rc2 with commit bb09d0e64ecaa0aa0f7d1133a1696ed74dead295 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-2026-72032 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/steering/hws/bwc.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/a751ccdc6ea9bde154f25a5ba66926f462f96c19 https://git.kernel.org/stable/c/1dce4f4bb3c1c02080b1a45bdd2abb2913a6642a https://git.kernel.org/stable/c/ae0265f0a95aaacef59d560a3e1ea36db8be9a52 https://git.kernel.org/stable/c/bb09d0e64ecaa0aa0f7d1133a1696ed74dead295