In the Linux kernel, the following vulnerability has been resolved:
net: altera: Fix refcount leak in alteratsemdio_create
Every iteration of foreachchildofnode() decrements the reference count of the previous node. When break from a foreachchildofnode() loop, we need to explicitly call ofnodeput() on the child node when not need anymore. Add missing ofnodeput() to avoid refcount leak.
[
{
"signature_type": "Function",
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@96bf5ed057df2d157274d4e2079002f9a9404bb8",
"digest": {
"length": 1115.0,
"function_hash": "71221433882779377443431967037376821327"
},
"id": "CVE-2022-49351-7454443c",
"deprecated": false,
"target": {
"file": "drivers/net/ethernet/altera/altera_tse_main.c",
"function": "altera_tse_mdio_create"
}
},
{
"signature_type": "Function",
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e31d9ba169860687dba19bdc8fccbfd34077f655",
"digest": {
"length": 1115.0,
"function_hash": "71221433882779377443431967037376821327"
},
"id": "CVE-2022-49351-c1a1303d",
"deprecated": false,
"target": {
"file": "drivers/net/ethernet/altera/altera_tse_main.c",
"function": "altera_tse_mdio_create"
}
},
{
"signature_type": "Line",
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e31d9ba169860687dba19bdc8fccbfd34077f655",
"digest": {
"line_hashes": [
"64760634073457376374918426095955677187",
"51685843886356763796089668102779566357",
"326832990953560786998607395531090775804",
"105781834135138087132622652176477733149",
"119658820633890881977368619137555313104",
"217111115975782610640360771180548691044",
"265515714537915446780666317374513788422",
"263033723740409150078140796211975490977",
"266513665134364830067780378345847340685",
"208384467642286556930010950474050598865",
"167275252461060594312344559165060003256",
"65090704216555921260848295743903333189"
],
"threshold": 0.9
},
"id": "CVE-2022-49351-daa812f2",
"deprecated": false,
"target": {
"file": "drivers/net/ethernet/altera/altera_tse_main.c"
}
},
{
"signature_type": "Line",
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@96bf5ed057df2d157274d4e2079002f9a9404bb8",
"digest": {
"line_hashes": [
"64760634073457376374918426095955677187",
"51685843886356763796089668102779566357",
"326832990953560786998607395531090775804",
"105781834135138087132622652176477733149",
"119658820633890881977368619137555313104",
"217111115975782610640360771180548691044",
"265515714537915446780666317374513788422",
"263033723740409150078140796211975490977",
"266513665134364830067780378345847340685",
"208384467642286556930010950474050598865",
"167275252461060594312344559165060003256",
"65090704216555921260848295743903333189"
],
"threshold": 0.9
},
"id": "CVE-2022-49351-f3864508",
"deprecated": false,
"target": {
"file": "drivers/net/ethernet/altera/altera_tse_main.c"
}
}
]