In the Linux kernel, the following vulnerability has been resolved:
MIPS: SGI-IP27: Fix platform-device leak in bridgeplatformcreate()
In error case in bridgeplatformcreate after calling platformdeviceadd()/platformdeviceadddata()/ platformdeviceaddresources(), release the failed 'pdev' or it will be leak, call platformdeviceput() to fix this problem.
Besides, 'pdev' is divided into 'pdevwd' and 'pdevbd', use platformdeviceunregister() to release sgi_w1 resources when xtalk-bridge registration fails.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50281.json",
"cna_assigner": "Linux"
}