CVE-2022-50663 (GCVE-0-2022-50663)

Vulnerability from cvelistv5 – Published: 2025-12-09 01:29 – Updated: 2026-05-11 19:23
VLAI
Title
net: stmmac: fix possible memory leak in stmmac_dvr_probe()
Summary
In the Linux kernel, the following vulnerability has been resolved: net: stmmac: fix possible memory leak in stmmac_dvr_probe() The bitmap_free() should be called to free priv->af_xdp_zc_qps when create_singlethread_workqueue() fails, otherwise there will be a memory leak, so we add the err path error_wq_init to fix it.
Severity
No CVSS data available.
Impacted products
Vendor Product Version
Linux Linux Affected: bba2556efad66e7eaa56fece13f7708caa1187f8 , < 96e50897029f65222ef76cfe9bc802321fcea33b (git)
Affected: bba2556efad66e7eaa56fece13f7708caa1187f8 , < b59253e32c203a20bce15dca80890b7d268bacd7 (git)
Affected: bba2556efad66e7eaa56fece13f7708caa1187f8 , < 446757787baf99b7db15cb347783c45a37bfe21f (git)
Affected: bba2556efad66e7eaa56fece13f7708caa1187f8 , < a137f3f27f9290933fe7e40e6dc8a445781c31a2 (git)
Create a notification for this product.
Linux Linux Affected: 5.13
Unaffected: 0 , < 5.13 (semver)
Unaffected: 5.15.86 , ≤ 5.15.* (semver)
Unaffected: 6.0.16 , ≤ 6.0.* (semver)
Unaffected: 6.1.2 , ≤ 6.1.* (semver)
Unaffected: 6.2 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/ethernet/stmicro/stmmac/stmmac_main.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "96e50897029f65222ef76cfe9bc802321fcea33b",
              "status": "affected",
              "version": "bba2556efad66e7eaa56fece13f7708caa1187f8",
              "versionType": "git"
            },
            {
              "lessThan": "b59253e32c203a20bce15dca80890b7d268bacd7",
              "status": "affected",
              "version": "bba2556efad66e7eaa56fece13f7708caa1187f8",
              "versionType": "git"
            },
            {
              "lessThan": "446757787baf99b7db15cb347783c45a37bfe21f",
              "status": "affected",
              "version": "bba2556efad66e7eaa56fece13f7708caa1187f8",
              "versionType": "git"
            },
            {
              "lessThan": "a137f3f27f9290933fe7e40e6dc8a445781c31a2",
              "status": "affected",
              "version": "bba2556efad66e7eaa56fece13f7708caa1187f8",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/ethernet/stmicro/stmmac/stmmac_main.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.13"
            },
            {
              "lessThan": "5.13",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.86",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.0.*",
              "status": "unaffected",
              "version": "6.0.16",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.2",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.2",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.86",
                  "versionStartIncluding": "5.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0.16",
                  "versionStartIncluding": "5.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.2",
                  "versionStartIncluding": "5.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.2",
                  "versionStartIncluding": "5.13",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet: stmmac: fix possible memory leak in stmmac_dvr_probe()\n\nThe bitmap_free() should be called to free priv-\u003eaf_xdp_zc_qps\nwhen create_singlethread_workqueue() fails, otherwise there will\nbe a memory leak, so we add the err path error_wq_init to fix it."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-05-11T19:23:13.338Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/96e50897029f65222ef76cfe9bc802321fcea33b"
        },
        {
          "url": "https://git.kernel.org/stable/c/b59253e32c203a20bce15dca80890b7d268bacd7"
        },
        {
          "url": "https://git.kernel.org/stable/c/446757787baf99b7db15cb347783c45a37bfe21f"
        },
        {
          "url": "https://git.kernel.org/stable/c/a137f3f27f9290933fe7e40e6dc8a445781c31a2"
        }
      ],
      "title": "net: stmmac: fix possible memory leak in stmmac_dvr_probe()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-50663",
    "datePublished": "2025-12-09T01:29:12.392Z",
    "dateReserved": "2025-12-09T01:26:45.990Z",
    "dateUpdated": "2026-05-11T19:23:13.338Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2022-50663",
      "date": "2026-11-16",
      "epss": "0.00255",
      "percentile": "0.17205"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "drivers/net/ethernet/stmicro/stmmac/stmmac_main.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "96e50897029f65222ef76cfe9bc802321fcea33b",
                    "status": "affected",
                    "version": "bba2556efad66e7eaa56fece13f7708caa1187f8",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "b59253e32c203a20bce15dca80890b7d268bacd7",
                    "status": "affected",
                    "version": "bba2556efad66e7eaa56fece13f7708caa1187f8",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "446757787baf99b7db15cb347783c45a37bfe21f",
                    "status": "affected",
                    "version": "bba2556efad66e7eaa56fece13f7708caa1187f8",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "a137f3f27f9290933fe7e40e6dc8a445781c31a2",
                    "status": "affected",
                    "version": "bba2556efad66e7eaa56fece13f7708caa1187f8",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "drivers/net/ethernet/stmicro/stmmac/stmmac_main.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "5.13"
                  },
                  {
                    "lessThan": "5.13",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.15.*",
                    "status": "unaffected",
                    "version": "5.15.86",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.0.*",
                    "status": "unaffected",
                    "version": "6.0.16",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.1.*",
                    "status": "unaffected",
                    "version": "6.1.2",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "6.2",
                    "versionType": "original_commit_for_fix"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet: stmmac: fix possible memory leak in stmmac_dvr_probe()\n\nThe bitmap_free() should be called to free priv-\u003eaf_xdp_zc_qps\nwhen create_singlethread_workqueue() fails, otherwise there will\nbe a memory leak, so we add the err path error_wq_init to fix it."
          },
          {
            "lang": "es",
            "value": "En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nnet: stmmac: corrige una posible fuga de memoria en stmmac_dvr_probe()\n\nSe deber\u00eda llamar a bitmap_free() para liberar priv  -\u003e  af_xdp_zc_qps cuando create_singlethread_workqueue() falla; de lo contrario, habr\u00e1 una fuga de memoria, por lo tanto, a\u00f1adimos la ruta de error error_wq_init para corregirlo."
          }
        ],
        "id": "CVE-2022-50663",
        "lastModified": "2026-11-10T12:10:00.177",
        "metrics": {},
        "published": "2025-12-09T16:17:18.220",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/446757787baf99b7db15cb347783c45a37bfe21f"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/96e50897029f65222ef76cfe9bc802321fcea33b"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/a137f3f27f9290933fe7e40e6dc8a445781c31a2"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/b59253e32c203a20bce15dca80890b7d268bacd7"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Deferred"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-11-05T10:24:24+00:00",
      "cve": "CVE-2022-50663",
      "id": "CVE-2022-50663",
      "initial_release_date": "2022-01-01T00:00:00+00:00",
      "product_status:fixed": "280",
      "product_status:known_affected": "22",
      "product_status:known_not_affected": "99",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: net: stmmac: fix possible memory leak in stmmac_dvr_probe()",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-50663.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "low",
      "current_release_date": "2026-11-01T17:55:35Z",
      "cve": "CVE-2022-50663",
      "id": "CVE-2022-50663",
      "initial_release_date": "2025-12-10T00:38:33Z",
      "product_status:known_affected": "128",
      "product_status:known_not_affected": "384",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2022-50663",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/2025/cve-2022-50663.json",
      "version": "9"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…