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.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50158.json",
"cna_assigner": "Linux"
}[
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9f7e62815cf3cbbcb1b8cb21649fb4dfdb3aa016",
"deprecated": false,
"signature_type": "Line",
"target": {
"file": "drivers/mtd/parsers/redboot.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"147554250879147070008724732144203896960",
"15780021297371352330405220536046388524",
"274408176144638094167069233376785585744",
"224836662906617820098884476906610240419"
]
},
"signature_version": "v1",
"id": "CVE-2022-50158-078b0154"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f3cc27198c5d78cdda60a55ae749f815cd1fe5eb",
"deprecated": false,
"signature_type": "Function",
"target": {
"file": "drivers/mtd/parsers/redboot.c",
"function": "parse_redboot_of"
},
"digest": {
"length": 297.0,
"function_hash": "11717091821713615291243303971097997263"
},
"signature_version": "v1",
"id": "CVE-2022-50158-0ac2651f"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e24af43d0cbe9f6aaa413c15ccce50bbbfd61e0e",
"deprecated": false,
"signature_type": "Function",
"target": {
"file": "drivers/mtd/parsers/redboot.c",
"function": "parse_redboot_of"
},
"digest": {
"length": 297.0,
"function_hash": "11717091821713615291243303971097997263"
},
"signature_version": "v1",
"id": "CVE-2022-50158-16b655da"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8ea607579d300b2f7fc997f3dd20949114565fcd",
"deprecated": false,
"signature_type": "Function",
"target": {
"file": "drivers/mtd/parsers/redboot.c",
"function": "parse_redboot_of"
},
"digest": {
"length": 297.0,
"function_hash": "11717091821713615291243303971097997263"
},
"signature_version": "v1",
"id": "CVE-2022-50158-293505e0"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@55d0f7da66dec93c4d53d0886a1555618079a900",
"deprecated": false,
"signature_type": "Function",
"target": {
"file": "drivers/mtd/parsers/redboot.c",
"function": "parse_redboot_of"
},
"digest": {
"length": 297.0,
"function_hash": "11717091821713615291243303971097997263"
},
"signature_version": "v1",
"id": "CVE-2022-50158-4f25396f"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7ec48ac18d8f9e002ce9bfbad32741086739e499",
"deprecated": false,
"signature_type": "Function",
"target": {
"file": "drivers/mtd/parsers/redboot.c",
"function": "parse_redboot_of"
},
"digest": {
"length": 297.0,
"function_hash": "11717091821713615291243303971097997263"
},
"signature_version": "v1",
"id": "CVE-2022-50158-b6a073c7"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7ec48ac18d8f9e002ce9bfbad32741086739e499",
"deprecated": false,
"signature_type": "Line",
"target": {
"file": "drivers/mtd/parsers/redboot.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"147554250879147070008724732144203896960",
"15780021297371352330405220536046388524",
"274408176144638094167069233376785585744",
"224836662906617820098884476906610240419"
]
},
"signature_version": "v1",
"id": "CVE-2022-50158-c2c9829d"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8ea607579d300b2f7fc997f3dd20949114565fcd",
"deprecated": false,
"signature_type": "Line",
"target": {
"file": "drivers/mtd/parsers/redboot.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"147554250879147070008724732144203896960",
"15780021297371352330405220536046388524",
"274408176144638094167069233376785585744",
"224836662906617820098884476906610240419"
]
},
"signature_version": "v1",
"id": "CVE-2022-50158-caf85227"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@55d0f7da66dec93c4d53d0886a1555618079a900",
"deprecated": false,
"signature_type": "Line",
"target": {
"file": "drivers/mtd/parsers/redboot.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"147554250879147070008724732144203896960",
"15780021297371352330405220536046388524",
"274408176144638094167069233376785585744",
"224836662906617820098884476906610240419"
]
},
"signature_version": "v1",
"id": "CVE-2022-50158-dd1f7cfc"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f3cc27198c5d78cdda60a55ae749f815cd1fe5eb",
"deprecated": false,
"signature_type": "Line",
"target": {
"file": "drivers/mtd/parsers/redboot.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"147554250879147070008724732144203896960",
"15780021297371352330405220536046388524",
"274408176144638094167069233376785585744",
"224836662906617820098884476906610240419"
]
},
"signature_version": "v1",
"id": "CVE-2022-50158-e5d98300"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9f7e62815cf3cbbcb1b8cb21649fb4dfdb3aa016",
"deprecated": false,
"signature_type": "Function",
"target": {
"file": "drivers/mtd/parsers/redboot.c",
"function": "parse_redboot_of"
},
"digest": {
"length": 297.0,
"function_hash": "11717091821713615291243303971097997263"
},
"signature_version": "v1",
"id": "CVE-2022-50158-ee4f72dd"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e24af43d0cbe9f6aaa413c15ccce50bbbfd61e0e",
"deprecated": false,
"signature_type": "Line",
"target": {
"file": "drivers/mtd/parsers/redboot.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"147554250879147070008724732144203896960",
"15780021297371352330405220536046388524",
"274408176144638094167069233376785585744",
"224836662906617820098884476906610240419"
]
},
"signature_version": "v1",
"id": "CVE-2022-50158-f99413d5"
}
]
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50158.json"