In the Linux kernel, the following vulnerability has been resolved:
net: ethernet: ti: am65-cpsw-nuss: Fix some refcount leaks
ofgetchildbyname() returns a node pointer with refcount incremented, we should use ofnodeput() on it when not need anymore. am65cpswinitcpts() and am65cpswnussprobe() don't release the refcount in error case. Add missing ofnodeput() to avoid refcount leak.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49386.json",
"cna_assigner": "Linux"
}[
{
"signature_type": "Function",
"signature_version": "v1",
"target": {
"file": "drivers/net/ethernet/ti/am65-cpsw-nuss.c",
"function": "am65_cpsw_nuss_probe"
},
"id": "CVE-2022-49386-1c08fa2b",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f7ba2cc57f404d2d9f26fb85bd3833d35a477829",
"digest": {
"function_hash": "18580022299518065302233353496975478772",
"length": 3080.0
}
},
{
"signature_type": "Function",
"signature_version": "v1",
"target": {
"file": "drivers/net/ethernet/ti/am65-cpsw-nuss.c",
"function": "am65_cpsw_init_cpts"
},
"id": "CVE-2022-49386-4888f03c",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f7ba2cc57f404d2d9f26fb85bd3833d35a477829",
"digest": {
"function_hash": "193785449473758252014550317178541057913",
"length": 628.0
}
},
{
"signature_type": "Line",
"signature_version": "v1",
"target": {
"file": "drivers/net/ethernet/ti/am65-cpsw-nuss.c"
},
"id": "CVE-2022-49386-4cafe7f7",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f7ba2cc57f404d2d9f26fb85bd3833d35a477829",
"digest": {
"line_hashes": [
"158484086459026797831915057095756414161",
"240044606224298979449247322182956124058",
"309755492099368059657436850094445181451",
"266692686127355268517090864112724334691",
"7201370585447334000957817592794045302",
"26140702621312958494932998507998758257",
"218019809400098704885932032078172056473",
"44137635184066838445979728709111035352",
"272555961219164490627185641372851244457",
"28328649926846980278177232172195702592"
],
"threshold": 0.9
}
},
{
"signature_type": "Line",
"signature_version": "v1",
"target": {
"file": "drivers/net/ethernet/ti/am65-cpsw-nuss.c"
},
"id": "CVE-2022-49386-572932bb",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5dd89d2fc438457811cbbec07999ce0d80051ff5",
"digest": {
"line_hashes": [
"158484086459026797831915057095756414161",
"240044606224298979449247322182956124058",
"309755492099368059657436850094445181451",
"266692686127355268517090864112724334691",
"7201370585447334000957817592794045302",
"26140702621312958494932998507998758257",
"218019809400098704885932032078172056473",
"108190858935381929231842241545369038924",
"162262983438705219474748016521770175120",
"25494767203192207094556006698550608677"
],
"threshold": 0.9
}
},
{
"signature_type": "Function",
"signature_version": "v1",
"target": {
"file": "drivers/net/ethernet/ti/am65-cpsw-nuss.c",
"function": "am65_cpsw_init_cpts"
},
"id": "CVE-2022-49386-7074c3a5",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5dd89d2fc438457811cbbec07999ce0d80051ff5",
"digest": {
"function_hash": "304887468483716453362746735874473621926",
"length": 647.0
}
},
{
"signature_type": "Function",
"signature_version": "v1",
"target": {
"file": "drivers/net/ethernet/ti/am65-cpsw-nuss.c",
"function": "am65_cpsw_nuss_probe"
},
"id": "CVE-2022-49386-a10bbda2",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5dd89d2fc438457811cbbec07999ce0d80051ff5",
"digest": {
"function_hash": "333787390578537401713419908333193104059",
"length": 3046.0
}
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49386.json"