CVE-2022-50160

Source
https://cve.org/CVERecord?id=CVE-2022-50160
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50160.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-50160
Downstream
Related
Published
2025-06-18T11:03:16.447Z
Modified
2026-04-11T12:44:54.716761Z
Summary
mtd: maps: Fix refcount leak in ap_flash_init
Details

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

mtd: maps: Fix refcount leak in apflashinit

offindmatchingnode() 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-50160.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
995fb2874bb5696357846a91e59181c600e6aac8
Fixed
d10855876a6f47add6ff621cef25cc0171dac162
Fixed
80b1465b2ae81ebb59bbe62bcb7a7f7d4e9ece6f
Fixed
941ef6997f9db704fe4fd62fc01e420fdd5048b2
Fixed
d5730780e9ea84e5476752a47c749036c6a74af5
Fixed
a74322d4b897ddc268b340c4a397f6066c2f945d
Fixed
babd7b0124650ab71a6487e38588b8659b3aa2dc
Fixed
77087a04c8fd554134bddcb8a9ff87b21f357926

Database specific

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

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.7.0
Fixed
4.14.291
Type
ECOSYSTEM
Events
Introduced
4.15.0
Fixed
4.19.256
Type
ECOSYSTEM
Events
Introduced
4.20.0
Fixed
5.4.211
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.137
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.61
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
5.18.18
Type
ECOSYSTEM
Events
Introduced
5.19.0
Fixed
5.19.2

Database specific

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