media: pvrusb2: fix memory leak in pvr_probe
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ b72b7bf5cbb2ae77b3bf748456655fc284baf04c · < f2f6e67522916f53ad8ccd4dbe68dcf76e9776e5| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
media: pvrusb2: fix memory leak in pvr_probe
The error handling code in pvr2_hdw_create forgets to unregister the v4l2 device. When pvr2_hdw_create returns back to pvr2_context_create, it calls pvr2_context_destroy to destroy context, but mp->hdw is NULL, which leads to that pvr2_hdw_destroy directly returns.
Fix this by adding v4l2_device_unregister to decrease the refcount of usb interface.
From the CVE record · Linux
The Linux kernel's pvrusb2 driver can leak a reference to a USB interface when device creation fails during probing. The error path does not unregister the V4L2 device; the input does not specify how an attacker could trigger this or whether access or user interaction is required.
Engineers running Linux kernels with the pvrusb2 driver should check their versions against the vendor advisory; affected versions are not specified.