In the Linux kernel, the following vulnerability has been resolved:
media: pvrusb2: fix memory leak in pvr_probe
The error handling code in pvr2hdwcreate forgets to unregister the v4l2 device. When pvr2hdwcreate returns back to pvr2contextcreate, it calls pvr2contextdestroy to destroy context, but mp->hdw is NULL, which leads to that pvr2hdwdestroy directly returns.
Fix this by adding v4l2deviceunregister to decrease the refcount of usb interface.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49982.json",
"cna_assigner": "Linux"
}