In the Linux kernel, the following vulnerability has been resolved:
memory: pl353-smc: Fix refcount leak bug in pl353smcprobe()
The break of foreachavailablechildofnode() needs a corresponding ofnodeput() when the reference 'child' is not used anymore. Here we do not need to call ofnode_put() in fail path as '!match' means no break.
While the ofplatformdevice_create() will created a new reference by 'child' but it has considered the refcounting.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50480.json"
}