CVE-2022-50161

Source
https://cve.org/CVERecord?id=CVE-2022-50161
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50161.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-50161
Downstream
Related
Published
2025-06-18T11:03:17.091Z
Modified
2026-04-03T13:14:38.505563732Z
Summary
mtd: maps: Fix refcount leak in of_flash_probe_versatile
Details

In the Linux kernel, the following vulnerability has been resolved:

mtd: maps: Fix refcount leak in offlashprobe_versatile

offindmatchingnodeandmatch() returns a node pointer with refcount incremented, we should use ofnodeput() on it when not need anymore. Add missing ofnode_put() to avoid refcount leak.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50161.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
b0afd44bc192ff4c0e90a5fc1724350bcfc32b33
Fixed
3c8de6a838b7e0eb392754ac89dd66e698684342
Fixed
79e57889aa0d92a6d769bad808fb105e7b6ea495
Fixed
9124d51e01232a91da4034768a2a8d1688472179
Fixed
52ae2b14f76ef2d490337ddc0037bc37125be7b8
Fixed
4d67c8f74d804b20febf716ec96e9a475457ec60
Fixed
5d5ddd8771fa9cabeb247fba5f6ab60d63f3fbce
Fixed
f516fbb63873ee23cba5b7c3d239677c30f13df8
Fixed
33ec82a6d2b119938f26e5c8040ed5d92378eb54

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50161.json"