In the Linux kernel, the following vulnerability has been resolved:
i2c: mux: reg: check return value after calling platformgetresource()
It will cause null-ptr-deref in resourcesize(), if platformgetresource() returns NULL, move calling resourcesize() after devmioremapresource() that will check 'res' to avoid null-ptr-deref. And use devmplatformgetandioremap_resource() to simplify code.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50364.json"
}