CVE-2022-49982

Summary

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.

Affected Software

VendorProductVersion RangeStatus
LinuxLinuxb72b7bf5cbb2ae77b3bf748456655fc284baf04c < 2fe46195d2f0d5d09ea65433aefe47a4d0d0ff4daffected
LinuxLinuxb72b7bf5cbb2ae77b3bf748456655fc284baf04c < ba7dd8a9686a61a34b3a7b922ce721378d4740d0affected
LinuxLinuxb72b7bf5cbb2ae77b3bf748456655fc284baf04c < 491762b3250fb06a0c97b5198656ea48359eaeedaffected
LinuxLinuxb72b7bf5cbb2ae77b3bf748456655fc284baf04c < 466b67c0543b2ae67814d053f6e29b39be6b33bbaffected
LinuxLinuxb72b7bf5cbb2ae77b3bf748456655fc284baf04c < bacb37bdc2a21c8f7fdc83dcc0dea2f4ca1341fbaffected
LinuxLinuxb72b7bf5cbb2ae77b3bf748456655fc284baf04c < f2f6e67522916f53ad8ccd4dbe68dcf76e9776e5affected
LinuxLinuxb72b7bf5cbb2ae77b3bf748456655fc284baf04c < c02d2a91a85c4c4d05826cd1ea74a9b8d42e4280affected
LinuxLinuxb72b7bf5cbb2ae77b3bf748456655fc284baf04c < 945a9a8e448b65bec055d37eba58f711b39f66f0affected
LinuxLinux2.6.30affected
LinuxLinux0 < 2.6.30unaffected
LinuxLinux4.9.327 <= 4.9.*unaffected
LinuxLinux4.14.292 <= 4.14.*unaffected
LinuxLinux4.19.257 <= 4.19.*unaffected
LinuxLinux5.4.212 <= 5.4.*unaffected
LinuxLinux5.10.141 <= 5.10.*unaffected
LinuxLinux5.15.65 <= 5.15.*unaffected
LinuxLinux5.19.7 <= 5.19.*unaffected
LinuxLinux6.0 <= *unaffected

Weaknesses

References