CVE-2026-98948 (GCVE-0-2026-98948)
Vulnerability from cvelistv5
Published
2026-10-23 12:19
Modified
2026-10-23 12:19
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: mlxsw: spectrum_flower: Fix port range register leak in tmplt_create() mlxsw_sp_flower_tmplt_create() parses a flow_cls_offload template into a stack-local struct mlxsw_sp_acl_rule_info purely to compute rulei.values.elusage. Parsing can acquire port range registers via mlxsw_sp_flower_parse_ports_range(), but since this rulei never goes through mlxsw_sp_acl_rulei_destroy(), those registers were never released, including through chain template deletion. Factor out of mlxsw_sp_acl_rulei_destroy() the code to actually release the necessary resources and call from mlxsw_sp_flower_tmplt_create() to plug the leak. The issue was found during a review of Wentao Liang's patch referenced below.
Impacted products
Vendor Product Version
Linux Linux Version: fe22f7410527c2077223b5fd0fc0458db912f0db
Version: fe22f7410527c2077223b5fd0fc0458db912f0db
Version: fe22f7410527c2077223b5fd0fc0458db912f0db
Version: fe22f7410527c2077223b5fd0fc0458db912f0db
Version: fe22f7410527c2077223b5fd0fc0458db912f0db
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/ethernet/mellanox/mlxsw/spectrum.h",
            "drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c",
            "drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "41ad5bcf0219aaebf8ffb052c5e8177479330cde",
              "status": "affected",
              "version": "fe22f7410527c2077223b5fd0fc0458db912f0db",
              "versionType": "git"
            },
            {
              "lessThan": "c8e934287debb29c6ded86b21e49fc72e186d15e",
              "status": "affected",
              "version": "fe22f7410527c2077223b5fd0fc0458db912f0db",
              "versionType": "git"
            },
            {
              "lessThan": "3938430f0237c59ca08d6a366e7657b2b7f8d0bb",
              "status": "affected",
              "version": "fe22f7410527c2077223b5fd0fc0458db912f0db",
              "versionType": "git"
            },
            {
              "lessThan": "4eaf1285b5c1e42f80e47f9fe0d391e70418db02",
              "status": "affected",
              "version": "fe22f7410527c2077223b5fd0fc0458db912f0db",
              "versionType": "git"
            },
            {
              "lessThan": "7ea07afb230f1342ab0f9365edd0aae137f425d3",
              "status": "affected",
              "version": "fe22f7410527c2077223b5fd0fc0458db912f0db",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/ethernet/mellanox/mlxsw/spectrum.h",
            "drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c",
            "drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.6"
            },
            {
              "lessThan": "6.6",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.160",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.113",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.57",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.2.*",
              "status": "unaffected",
              "version": "7.2.11",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.3",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.160",
                  "versionStartIncluding": "6.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.113",
                  "versionStartIncluding": "6.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.57",
                  "versionStartIncluding": "6.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.2.11",
                  "versionStartIncluding": "6.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3",
                  "versionStartIncluding": "6.6",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nmlxsw: spectrum_flower: Fix port range register leak in tmplt_create()\n\nmlxsw_sp_flower_tmplt_create() parses a flow_cls_offload template\ninto a stack-local struct mlxsw_sp_acl_rule_info purely to compute\nrulei.values.elusage. Parsing can acquire port range registers via\nmlxsw_sp_flower_parse_ports_range(), but since this rulei never goes\nthrough mlxsw_sp_acl_rulei_destroy(), those registers were never\nreleased, including through chain template deletion.\n\nFactor out of mlxsw_sp_acl_rulei_destroy() the code to actually\nrelease the necessary resources and call from\nmlxsw_sp_flower_tmplt_create() to plug the leak.\n\nThe issue was found during a review of Wentao Liang\u0027s patch referenced\nbelow."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-10-23T12:19:08.043Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/41ad5bcf0219aaebf8ffb052c5e8177479330cde"
        },
        {
          "url": "https://git.kernel.org/stable/c/c8e934287debb29c6ded86b21e49fc72e186d15e"
        },
        {
          "url": "https://git.kernel.org/stable/c/3938430f0237c59ca08d6a366e7657b2b7f8d0bb"
        },
        {
          "url": "https://git.kernel.org/stable/c/4eaf1285b5c1e42f80e47f9fe0d391e70418db02"
        },
        {
          "url": "https://git.kernel.org/stable/c/7ea07afb230f1342ab0f9365edd0aae137f425d3"
        }
      ],
      "title": "mlxsw: spectrum_flower: Fix port range register leak in tmplt_create()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-98948",
    "datePublished": "2026-10-23T12:19:08.043Z",
    "dateReserved": "2026-09-25T10:25:14.382Z",
    "dateUpdated": "2026-10-23T12:19:08.043Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…