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