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 0470A36B912 for ; Sat, 15 Aug 2026 06:21:36 +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=1786774897; cv=none; b=blePuDs107bmlwM0cwU05FCK2chJSXdwwVDhgMVv+dHXa9Af4qDgY1UT0KFuN1kMgkaLJ2gXHIhqSotqTvrZdnu6PczjRQgCkFmKbAO/5Y0y4o7gfZUBU5QgSYVMuxh1Exolozzwtc+bxnZMIUGQtSINzybBP5yoUpki203kDYw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786774897; c=relaxed/simple; bh=cTsly5ZqOzqVDoIH6kp2nS+reAJROzXAemlbJwmdI+A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=feHW3CrzvdGiaMnptIoBNgr2HaUoSs34FLddXLbaknVTBKALWTRSyYOaXgNvWcy0QXjSrvyYq7dPeFnvxhdRXFL+sIYzUm8WCJqLi41MZd2qfoNZeo9Be/EKgT1xFIM5E5reNUAukLkJ+H7cl/3hmNMRqdm8gYQKrpsIlhHhzvs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=sf5CUZr5; 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="sf5CUZr5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 583B51F000E9; Sat, 15 Aug 2026 06:21:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786774895; bh=eQ64xCXZQdmTfYWXaCuCY4FuvPsHAFmqo1LSUxi/vzY=; h=From:To:Cc:Subject:Date:Reply-To; b=sf5CUZr5jYfKfzbIK5f4b6fIYTyh7l0NoRekFjt0+FBrOh+PRb71TIE+kqW/IkIpR kt9sZ18sFkdHRRIgHOeqhOjRwzG9nir2mSV2NJv2XGdKlUqNgjkoStGnnXSj63b0NH KTSm221kbk9lXYzAMglRxZCjLrsChCwJj68f1uck= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-72307: mlxsw: fix refcount leak in mlxsw_sp_vrs_lpm_tree_replace() Date: Sat, 15 Aug 2026 15:06:26 +0900 Message-ID: <2026081503-CVE-2026-72307-d091@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=3965; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=0q4KnZ/mQTPAeSE0QwL9p5nFCxGgyHHvIwqBrRXnCEA=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNDLfl5ENPJpnd1Ormvb3M0DwlW9HpzaPYPM2DCmHHp rkdXcTREcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABP5OJ9hfoTexXkOm16u8jgu FWX1zfkQq/2krQzzk8uW39w1Pz7RINvD/X1VIpPwiYOHAA== 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: mlxsw: fix refcount leak in mlxsw_sp_vrs_lpm_tree_replace() When mlxsw_sp_vrs_lpm_tree_replace() fails after replacing some VRs, the error rollback loop does not correctly revert the preceding replacements. The loop decrements the index but fails to update the vr pointer, which still points to the VR that caused the failure. As a result, the condition and the rollback call always operate on the same VR, potentially calling mlxsw_sp_vr_lpm_tree_replace() multiple times on it while never rolling back the earlier VRs. Those VRs continue to hold a reference to new_tree acquired via mlxsw_sp_lpm_tree_hold(), leaking the reference count of new_tree. Fix by reinitializing vr inside the error loop with the updated index: vr = &mlxsw_sp->router->vrs[i]; so that the loop correctly iterates over all VRs that were actually replaced. The Linux kernel CVE team has assigned CVE-2026-72307 to this issue. Affected and fixed versions =========================== Issue introduced in 4.14 with commit fc922bb0dd9406dd9897fd47df958789891c380e and fixed in 5.10.261 with commit c2c75c45b54f3b12eafb28a4eb47f8821512c1aa Issue introduced in 4.14 with commit fc922bb0dd9406dd9897fd47df958789891c380e and fixed in 5.15.212 with commit 7203ac71d3895fa5948b319dd724f0e1cffbc4a1 Issue introduced in 4.14 with commit fc922bb0dd9406dd9897fd47df958789891c380e and fixed in 6.1.178 with commit f6454a5fbf2224ad30ec70e686a6c592561da1f2 Issue introduced in 4.14 with commit fc922bb0dd9406dd9897fd47df958789891c380e and fixed in 6.6.145 with commit 220d41bdce41fe5a39a7f419faab1e907b4093c2 Issue introduced in 4.14 with commit fc922bb0dd9406dd9897fd47df958789891c380e and fixed in 6.12.97 with commit 9e4a6185679922305ea1df68403f00ccc512656b Issue introduced in 4.14 with commit fc922bb0dd9406dd9897fd47df958789891c380e and fixed in 6.18.40 with commit 3a2b47d1b4b3de54d030a7fdb6a322c970513ee3 Issue introduced in 4.14 with commit fc922bb0dd9406dd9897fd47df958789891c380e and fixed in 7.1.5 with commit 8adebf07b46df79a0e49a6d4ae384f0db7c91db6 Issue introduced in 4.14 with commit fc922bb0dd9406dd9897fd47df958789891c380e and fixed in 7.2-rc1 with commit 21cf8dc478a49e8de039c2739b1646a774cb1944 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-72307 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/mlxsw/spectrum_router.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/c2c75c45b54f3b12eafb28a4eb47f8821512c1aa https://git.kernel.org/stable/c/7203ac71d3895fa5948b319dd724f0e1cffbc4a1 https://git.kernel.org/stable/c/f6454a5fbf2224ad30ec70e686a6c592561da1f2 https://git.kernel.org/stable/c/220d41bdce41fe5a39a7f419faab1e907b4093c2 https://git.kernel.org/stable/c/9e4a6185679922305ea1df68403f00ccc512656b https://git.kernel.org/stable/c/3a2b47d1b4b3de54d030a7fdb6a322c970513ee3 https://git.kernel.org/stable/c/8adebf07b46df79a0e49a6d4ae384f0db7c91db6 https://git.kernel.org/stable/c/21cf8dc478a49e8de039c2739b1646a774cb1944