CVE-2022-50158

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

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

mtd: partitions: Fix refcount leak in parseredbootof

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

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50158.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
6490ed7c4684caf9851a0b98e0ab17a8d693dada
Fixed
f3cc27198c5d78cdda60a55ae749f815cd1fe5eb
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
2f8824f556a3ebea9840c53326e55cc183316611
Fixed
55d0f7da66dec93c4d53d0886a1555618079a900
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
237960880960863fb41888763d635b384cffb104
Fixed
8ea607579d300b2f7fc997f3dd20949114565fcd
Fixed
7ec48ac18d8f9e002ce9bfbad32741086739e499
Fixed
e24af43d0cbe9f6aaa413c15ccce50bbbfd61e0e
Fixed
9f7e62815cf3cbbcb1b8cb21649fb4dfdb3aa016
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
fa132c7ea108eacc67357ffe3172d3e68fcd71a2
Last affected
d5023eb76f0dc651558b0c7ba04565891ff18435

Database specific

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