Skip to content
Heist/ feed
Unrated

net: microchip: sparx5: clean up PSFP resources on flower setup failure

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: net: microchip: sparx5: clean up PSFP resources on flower setup failure sparx5_tc_flower_psfp_setup() allocates PSFP stream gate, flow meter and stream filter resources before adding VCAP actions. If a later step fails, the resources allocated earlier in the function are not unwound. Add error paths to release the stream filter, flow meter and stream gate when setup fails after they have been acquired. Also make sparx5_psfp_fm_add() return the acquired flow-meter id before the existing-flow-meter early return. When an existing flow meter is reused, sparx5_psfp_fm_get() increments its pool reference count, but the caller previously kept psfp_fmid as 0. If a later setup step failed, the error path could try to delete flow-meter id 0 instead of the reused flow meter, leaving the incremented reference behind.

Announced Group revision 1
Original source ↗

CVE-2026-98908

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-98908

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "1da177e4c3f41524e886b7f1b8a0c1fc7321cac2",
        "lessThan": "a7625d408f7f0535c2b0f05d53231d6496acd48b",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "1da177e4c3f41524e886b7f1b8a0c1fc7321cac2",
        "lessThan": "a46ea3f7ee0d3ad3d5e92043232b293be2a305d3",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "1da177e4c3f41524e886b7f1b8a0c1fc7321cac2",
        "lessThan": "640c1bd8d359ad34817f5afec0872985e87b49ec",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "1da177e4c3f41524e886b7f1b8a0c1fc7321cac2",
        "lessThan": "46e50367338702abe3df661df7795bdada40fef7",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "0",
        "lessThan": "6.6.158",
        "versionType": "semver"
      },
      {
        "status": "affected",
        "version": "0",
        "lessThan": "6.12.111",
        "versionType": "semver"
      },
      {
        "status": "affected",
        "version": "0",
        "lessThan": "6.18.53",
        "versionType": "semver"
      }
    ],
    "programFiles": [
      "drivers/net/ethernet/microchip/sparx5/sparx5_psfp.c",
      "drivers/net/ethernet/microchip/sparx5/sparx5_tc_flower.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "unaffected",
        "version": "6.6.158",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.111",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.18.53",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "7.2",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/net/ethernet/microchip/sparx5/sparx5_psfp.c",
      "drivers/net/ethernet/microchip/sparx5/sparx5_tc_flower.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-98908

Source reference: /cveMetadata/cveId

Publisher severity

No explicit severity was provided.

Event
#52763 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement