CVE-2022-50160 (GCVE-0-2022-50160)
Vulnerability from cvelistv5
Published
2025-06-18 11:03
Modified
2025-06-18 11:03
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: mtd: maps: Fix refcount leak in ap_flash_init of_find_matching_node() returns a node pointer with refcount incremented, we should use of_node_put() on it when not need anymore. Add missing of_node_put() to avoid refcount leak.
Impacted products
Vendor Product Version
Linux Linux Version: b0afd44bc192ff4c0e90a5fc1724350bcfc32b33
Version: b0afd44bc192ff4c0e90a5fc1724350bcfc32b33
Version: b0afd44bc192ff4c0e90a5fc1724350bcfc32b33
Version: b0afd44bc192ff4c0e90a5fc1724350bcfc32b33
Version: b0afd44bc192ff4c0e90a5fc1724350bcfc32b33
Version: b0afd44bc192ff4c0e90a5fc1724350bcfc32b33
Version: b0afd44bc192ff4c0e90a5fc1724350bcfc32b33
Version: b0afd44bc192ff4c0e90a5fc1724350bcfc32b33
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/mtd/maps/physmap-versatile.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "995fb2874bb5696357846a91e59181c600e6aac8",
              "status": "affected",
              "version": "b0afd44bc192ff4c0e90a5fc1724350bcfc32b33",
              "versionType": "git"
            },
            {
              "lessThan": "d10855876a6f47add6ff621cef25cc0171dac162",
              "status": "affected",
              "version": "b0afd44bc192ff4c0e90a5fc1724350bcfc32b33",
              "versionType": "git"
            },
            {
              "lessThan": "80b1465b2ae81ebb59bbe62bcb7a7f7d4e9ece6f",
              "status": "affected",
              "version": "b0afd44bc192ff4c0e90a5fc1724350bcfc32b33",
              "versionType": "git"
            },
            {
              "lessThan": "941ef6997f9db704fe4fd62fc01e420fdd5048b2",
              "status": "affected",
              "version": "b0afd44bc192ff4c0e90a5fc1724350bcfc32b33",
              "versionType": "git"
            },
            {
              "lessThan": "d5730780e9ea84e5476752a47c749036c6a74af5",
              "status": "affected",
              "version": "b0afd44bc192ff4c0e90a5fc1724350bcfc32b33",
              "versionType": "git"
            },
            {
              "lessThan": "a74322d4b897ddc268b340c4a397f6066c2f945d",
              "status": "affected",
              "version": "b0afd44bc192ff4c0e90a5fc1724350bcfc32b33",
              "versionType": "git"
            },
            {
              "lessThan": "babd7b0124650ab71a6487e38588b8659b3aa2dc",
              "status": "affected",
              "version": "b0afd44bc192ff4c0e90a5fc1724350bcfc32b33",
              "versionType": "git"
            },
            {
              "lessThan": "77087a04c8fd554134bddcb8a9ff87b21f357926",
              "status": "affected",
              "version": "b0afd44bc192ff4c0e90a5fc1724350bcfc32b33",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/mtd/maps/physmap-versatile.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "4.7"
            },
            {
              "lessThan": "4.7",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.14.*",
              "status": "unaffected",
              "version": "4.14.291",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.19.*",
              "status": "unaffected",
              "version": "4.19.256",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.211",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.137",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.61",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.18.*",
              "status": "unaffected",
              "version": "5.18.18",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.19.*",
              "status": "unaffected",
              "version": "5.19.2",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.0",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.14.291",
                  "versionStartIncluding": "4.7",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.19.256",
                  "versionStartIncluding": "4.7",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.211",
                  "versionStartIncluding": "4.7",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.137",
                  "versionStartIncluding": "4.7",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.61",
                  "versionStartIncluding": "4.7",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.18.18",
                  "versionStartIncluding": "4.7",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.19.2",
                  "versionStartIncluding": "4.7",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0",
                  "versionStartIncluding": "4.7",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nmtd: maps: Fix refcount leak in ap_flash_init\n\nof_find_matching_node() returns a node pointer with refcount\nincremented, we should use of_node_put() on it when not need anymore.\nAdd missing of_node_put() to avoid refcount leak."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-06-18T11:03:16.447Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/995fb2874bb5696357846a91e59181c600e6aac8"
        },
        {
          "url": "https://git.kernel.org/stable/c/d10855876a6f47add6ff621cef25cc0171dac162"
        },
        {
          "url": "https://git.kernel.org/stable/c/80b1465b2ae81ebb59bbe62bcb7a7f7d4e9ece6f"
        },
        {
          "url": "https://git.kernel.org/stable/c/941ef6997f9db704fe4fd62fc01e420fdd5048b2"
        },
        {
          "url": "https://git.kernel.org/stable/c/d5730780e9ea84e5476752a47c749036c6a74af5"
        },
        {
          "url": "https://git.kernel.org/stable/c/a74322d4b897ddc268b340c4a397f6066c2f945d"
        },
        {
          "url": "https://git.kernel.org/stable/c/babd7b0124650ab71a6487e38588b8659b3aa2dc"
        },
        {
          "url": "https://git.kernel.org/stable/c/77087a04c8fd554134bddcb8a9ff87b21f357926"
        }
      ],
      "title": "mtd: maps: Fix refcount leak in ap_flash_init",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-50160",
    "datePublished": "2025-06-18T11:03:16.447Z",
    "dateReserved": "2025-06-18T10:57:27.425Z",
    "dateUpdated": "2025-06-18T11:03:16.447Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2022-50160\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-06-18T11:15:46.207\",\"lastModified\":\"2025-06-18T13:47:40.833\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nmtd: maps: Fix refcount leak in ap_flash_init\\n\\nof_find_matching_node() returns a node pointer with refcount\\nincremented, we should use of_node_put() on it when not need anymore.\\nAdd missing of_node_put() to avoid refcount leak.\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: mtd: mapas: Se corrige la fuga de recuento de referencias en ap_flash_init. of_find_matching_node() devuelve un puntero de nodo con el recuento de referencias incrementado. Debemos usar of_node_put() cuando ya no sea necesario. Se ha a\u00f1adido la funci\u00f3n of_node_put() que falta para evitar la fuga de recuento de referencias.\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/77087a04c8fd554134bddcb8a9ff87b21f357926\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/80b1465b2ae81ebb59bbe62bcb7a7f7d4e9ece6f\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/941ef6997f9db704fe4fd62fc01e420fdd5048b2\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/995fb2874bb5696357846a91e59181c600e6aac8\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/a74322d4b897ddc268b340c4a397f6066c2f945d\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/babd7b0124650ab71a6487e38588b8659b3aa2dc\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/d10855876a6f47add6ff621cef25cc0171dac162\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/d5730780e9ea84e5476752a47c749036c6a74af5\",\"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…

Loading…