{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-72307",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-08-09T03:40:39.918Z",
        "datePublished": "2026-08-15T05:55:24.622Z",
        "dateUpdated": "2026-08-17T05:12:11.806Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-17T05:12:11.806Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nmlxsw: fix refcount leak in mlxsw_sp_vrs_lpm_tree_replace()\n\nWhen mlxsw_sp_vrs_lpm_tree_replace() fails after replacing some VRs,\nthe error rollback loop does not correctly revert the preceding\nreplacements. The loop decrements the index but fails to update the\nvr pointer, which still points to the VR that caused the failure. As\na result, the condition and the rollback call always operate on the\nsame VR, potentially calling mlxsw_sp_vr_lpm_tree_replace() multiple\ntimes on it while never rolling back the earlier VRs. Those VRs\ncontinue to hold a reference to new_tree acquired via\nmlxsw_sp_lpm_tree_hold(), leaking the reference count of new_tree.\n\nFix by reinitializing vr inside the error loop with the updated index:\n\n\tvr = &mlxsw_sp->router->vrs[i];\n\nso that the loop correctly iterates over all VRs that were actually\nreplaced."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c"
                    ],
                    "versions": [
                        {
                            "version": "fc922bb0dd9406dd9897fd47df958789891c380e",
                            "lessThan": "c2c75c45b54f3b12eafb28a4eb47f8821512c1aa",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "fc922bb0dd9406dd9897fd47df958789891c380e",
                            "lessThan": "7203ac71d3895fa5948b319dd724f0e1cffbc4a1",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "fc922bb0dd9406dd9897fd47df958789891c380e",
                            "lessThan": "f6454a5fbf2224ad30ec70e686a6c592561da1f2",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "fc922bb0dd9406dd9897fd47df958789891c380e",
                            "lessThan": "220d41bdce41fe5a39a7f419faab1e907b4093c2",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "fc922bb0dd9406dd9897fd47df958789891c380e",
                            "lessThan": "9e4a6185679922305ea1df68403f00ccc512656b",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "fc922bb0dd9406dd9897fd47df958789891c380e",
                            "lessThan": "3a2b47d1b4b3de54d030a7fdb6a322c970513ee3",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "fc922bb0dd9406dd9897fd47df958789891c380e",
                            "lessThan": "8adebf07b46df79a0e49a6d4ae384f0db7c91db6",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "fc922bb0dd9406dd9897fd47df958789891c380e",
                            "lessThan": "21cf8dc478a49e8de039c2739b1646a774cb1944",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c"
                    ],
                    "versions": [
                        {
                            "version": "4.14",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "4.14",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.261",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.212",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.178",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.145",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.97",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.40",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.1.5",
                            "lessThanOrEqual": "7.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.2",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.14",
                                    "versionEndExcluding": "5.10.261"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.14",
                                    "versionEndExcluding": "5.15.212"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.14",
                                    "versionEndExcluding": "6.1.178"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.14",
                                    "versionEndExcluding": "6.6.145"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.14",
                                    "versionEndExcluding": "6.12.97"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.14",
                                    "versionEndExcluding": "6.18.40"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.14",
                                    "versionEndExcluding": "7.1.5"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.14",
                                    "versionEndExcluding": "7.2"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/c2c75c45b54f3b12eafb28a4eb47f8821512c1aa"
                },
                {
                    "url": "https://git.kernel.org/stable/c/7203ac71d3895fa5948b319dd724f0e1cffbc4a1"
                },
                {
                    "url": "https://git.kernel.org/stable/c/f6454a5fbf2224ad30ec70e686a6c592561da1f2"
                },
                {
                    "url": "https://git.kernel.org/stable/c/220d41bdce41fe5a39a7f419faab1e907b4093c2"
                },
                {
                    "url": "https://git.kernel.org/stable/c/9e4a6185679922305ea1df68403f00ccc512656b"
                },
                {
                    "url": "https://git.kernel.org/stable/c/3a2b47d1b4b3de54d030a7fdb6a322c970513ee3"
                },
                {
                    "url": "https://git.kernel.org/stable/c/8adebf07b46df79a0e49a6d4ae384f0db7c91db6"
                },
                {
                    "url": "https://git.kernel.org/stable/c/21cf8dc478a49e8de039c2739b1646a774cb1944"
                }
            ],
            "title": "mlxsw: fix refcount leak in mlxsw_sp_vrs_lpm_tree_replace()",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}