CVE-2022-50278 (GCVE-0-2022-50278)
Vulnerability from cvelistv5
Published
2025-09-15 14:21
Modified
2025-09-15 14:21
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: PNP: fix name memory leak in pnp_alloc_dev() After commit 1fa5ae857bb1 ("driver core: get rid of struct device's bus_id string array"), the name of device is allocated dynamically, move dev_set_name() after pnp_add_id() to avoid memory leak.
Impacted products
Vendor Product Version
Linux Linux Version: 1fa5ae857bb14f6046205171d98506d8112dd74e
Version: 1fa5ae857bb14f6046205171d98506d8112dd74e
Version: 1fa5ae857bb14f6046205171d98506d8112dd74e
Version: 1fa5ae857bb14f6046205171d98506d8112dd74e
Version: 1fa5ae857bb14f6046205171d98506d8112dd74e
Version: 1fa5ae857bb14f6046205171d98506d8112dd74e
Version: 1fa5ae857bb14f6046205171d98506d8112dd74e
Version: 1fa5ae857bb14f6046205171d98506d8112dd74e
Version: 1fa5ae857bb14f6046205171d98506d8112dd74e
Create a notification for this product.
   Linux Linux Version: 2.6.30
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/pnp/core.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "ea77b4b761cd75e5456f677311babfa0418f289a",
              "status": "affected",
              "version": "1fa5ae857bb14f6046205171d98506d8112dd74e",
              "versionType": "git"
            },
            {
              "lessThan": "693a0c13c1f0c0fcaa1e38cb806cc0789bd415aa",
              "status": "affected",
              "version": "1fa5ae857bb14f6046205171d98506d8112dd74e",
              "versionType": "git"
            },
            {
              "lessThan": "bbcf772216aa237036cc3ae3158288d0a95aaf4d",
              "status": "affected",
              "version": "1fa5ae857bb14f6046205171d98506d8112dd74e",
              "versionType": "git"
            },
            {
              "lessThan": "81b024df4755e6bb6993b786584eca6eabbb9791",
              "status": "affected",
              "version": "1fa5ae857bb14f6046205171d98506d8112dd74e",
              "versionType": "git"
            },
            {
              "lessThan": "dac87e295cddc8ab316cff14ab2071b5221d84fa",
              "status": "affected",
              "version": "1fa5ae857bb14f6046205171d98506d8112dd74e",
              "versionType": "git"
            },
            {
              "lessThan": "c12b314bb23dc0c83e03402cc84574700947e3b2",
              "status": "affected",
              "version": "1fa5ae857bb14f6046205171d98506d8112dd74e",
              "versionType": "git"
            },
            {
              "lessThan": "1f50c7497a5f89de0c31f2edf086af41ff834320",
              "status": "affected",
              "version": "1fa5ae857bb14f6046205171d98506d8112dd74e",
              "versionType": "git"
            },
            {
              "lessThan": "290dd73b943c95c006df973257076ff163adf4d0",
              "status": "affected",
              "version": "1fa5ae857bb14f6046205171d98506d8112dd74e",
              "versionType": "git"
            },
            {
              "lessThan": "110d7b0325c55ff3620073ba4201845f59e22ebf",
              "status": "affected",
              "version": "1fa5ae857bb14f6046205171d98506d8112dd74e",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/pnp/core.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "2.6.30"
            },
            {
              "lessThan": "2.6.30",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.9.*",
              "status": "unaffected",
              "version": "4.9.337",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.14.*",
              "status": "unaffected",
              "version": "4.14.303",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.19.*",
              "status": "unaffected",
              "version": "4.19.270",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.229",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.163",
              "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": "4.9.337",
                  "versionStartIncluding": "2.6.30",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.14.303",
                  "versionStartIncluding": "2.6.30",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.19.270",
                  "versionStartIncluding": "2.6.30",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.229",
                  "versionStartIncluding": "2.6.30",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.163",
                  "versionStartIncluding": "2.6.30",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.86",
                  "versionStartIncluding": "2.6.30",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0.16",
                  "versionStartIncluding": "2.6.30",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.2",
                  "versionStartIncluding": "2.6.30",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.2",
                  "versionStartIncluding": "2.6.30",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nPNP: fix name memory leak in pnp_alloc_dev()\n\nAfter commit 1fa5ae857bb1 (\"driver core: get rid of struct device\u0027s\nbus_id string array\"), the name of device is allocated dynamically,\nmove dev_set_name() after pnp_add_id() to avoid memory leak."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-09-15T14:21:15.208Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/ea77b4b761cd75e5456f677311babfa0418f289a"
        },
        {
          "url": "https://git.kernel.org/stable/c/693a0c13c1f0c0fcaa1e38cb806cc0789bd415aa"
        },
        {
          "url": "https://git.kernel.org/stable/c/bbcf772216aa237036cc3ae3158288d0a95aaf4d"
        },
        {
          "url": "https://git.kernel.org/stable/c/81b024df4755e6bb6993b786584eca6eabbb9791"
        },
        {
          "url": "https://git.kernel.org/stable/c/dac87e295cddc8ab316cff14ab2071b5221d84fa"
        },
        {
          "url": "https://git.kernel.org/stable/c/c12b314bb23dc0c83e03402cc84574700947e3b2"
        },
        {
          "url": "https://git.kernel.org/stable/c/1f50c7497a5f89de0c31f2edf086af41ff834320"
        },
        {
          "url": "https://git.kernel.org/stable/c/290dd73b943c95c006df973257076ff163adf4d0"
        },
        {
          "url": "https://git.kernel.org/stable/c/110d7b0325c55ff3620073ba4201845f59e22ebf"
        }
      ],
      "title": "PNP: fix name memory leak in pnp_alloc_dev()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-50278",
    "datePublished": "2025-09-15T14:21:15.208Z",
    "dateReserved": "2025-09-15T13:58:00.976Z",
    "dateUpdated": "2025-09-15T14:21:15.208Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2022-50278\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-09-15T15:15:38.817\",\"lastModified\":\"2025-09-15T15:22:27.090\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nPNP: fix name memory leak in pnp_alloc_dev()\\n\\nAfter commit 1fa5ae857bb1 (\\\"driver core: get rid of struct device\u0027s\\nbus_id string array\\\"), the name of device is allocated dynamically,\\nmove dev_set_name() after pnp_add_id() to avoid memory leak.\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/110d7b0325c55ff3620073ba4201845f59e22ebf\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/1f50c7497a5f89de0c31f2edf086af41ff834320\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/290dd73b943c95c006df973257076ff163adf4d0\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/693a0c13c1f0c0fcaa1e38cb806cc0789bd415aa\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/81b024df4755e6bb6993b786584eca6eabbb9791\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/bbcf772216aa237036cc3ae3158288d0a95aaf4d\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/c12b314bb23dc0c83e03402cc84574700947e3b2\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/dac87e295cddc8ab316cff14ab2071b5221d84fa\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/ea77b4b761cd75e5456f677311babfa0418f289a\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


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.
  • 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…