{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-50160","id":"CVE-2022-50160","title":"mtd: maps: Fix refcount leak in ap_flash_init","description":"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.","descriptionLong":"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.","published":"2025-06-18T11:03:16.447Z","updated":"2026-10-28T02:30:39.630637193Z","reserved":"2025-06-18T10:57:27.425Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b0afd44bc192ff4c0e90a5fc1724350bcfc32b33","lessThan":"995fb2874bb5696357846a91e59181c600e6aac8","status":"affected","versionType":"git"},{"version":"b0afd44bc192ff4c0e90a5fc1724350bcfc32b33","lessThan":"d10855876a6f47add6ff621cef25cc0171dac162","status":"affected","versionType":"git"},{"version":"b0afd44bc192ff4c0e90a5fc1724350bcfc32b33","lessThan":"80b1465b2ae81ebb59bbe62bcb7a7f7d4e9ece6f","status":"affected","versionType":"git"},{"version":"b0afd44bc192ff4c0e90a5fc1724350bcfc32b33","lessThan":"941ef6997f9db704fe4fd62fc01e420fdd5048b2","status":"affected","versionType":"git"},{"version":"b0afd44bc192ff4c0e90a5fc1724350bcfc32b33","lessThan":"d5730780e9ea84e5476752a47c749036c6a74af5","status":"affected","versionType":"git"},{"version":"b0afd44bc192ff4c0e90a5fc1724350bcfc32b33","lessThan":"a74322d4b897ddc268b340c4a397f6066c2f945d","status":"affected","versionType":"git"},{"version":"b0afd44bc192ff4c0e90a5fc1724350bcfc32b33","lessThan":"babd7b0124650ab71a6487e38588b8659b3aa2dc","status":"affected","versionType":"git"},{"version":"b0afd44bc192ff4c0e90a5fc1724350bcfc32b33","lessThan":"77087a04c8fd554134bddcb8a9ff87b21f357926","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.7","status":"affected"},{"version":"0","lessThan":"4.7","status":"unaffected","versionType":"semver"},{"version":"4.14.291","lessThanOrEqual":"4.14.*","status":"unaffected","versionType":"semver"},{"version":"4.19.256","lessThanOrEqual":"4.19.*","status":"unaffected","versionType":"semver"},{"version":"5.4.211","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.137","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.61","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"5.18.18","lessThanOrEqual":"5.18.*","status":"unaffected","versionType":"semver"},{"version":"5.19.2","lessThanOrEqual":"5.19.*","status":"unaffected","versionType":"semver"},{"version":"6.0","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/995fb2874bb5696357846a91e59181c600e6aac8","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/d10855876a6f47add6ff621cef25cc0171dac162","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/80b1465b2ae81ebb59bbe62bcb7a7f7d4e9ece6f","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/941ef6997f9db704fe4fd62fc01e420fdd5048b2","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/d5730780e9ea84e5476752a47c749036c6a74af5","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/a74322d4b897ddc268b340c4a397f6066c2f945d","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/babd7b0124650ab71a6487e38588b8659b3aa2dc","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/77087a04c8fd554134bddcb8a9ff87b21f357926","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50160.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50160","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00202,"epssPercentile":0.10313,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-50160","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50160","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-50160","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-50160","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}