# CVE-2022-49982: media: pvrusb2: fix memory leak in pvr_probe

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 13% of CVEs (2026-11-30)
- Published: 2025-06-18T11:00:44.285Z
- Modified: 2026-06-17T05:19:40.607Z
- Weaknesses: CWE-401
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from b72b7bf5cbb2ae77b3bf748456655fc284baf04c before 2fe46195d2f0d5d09ea65433aefe47a4d0d0ff4d; from b72b7bf5cbb2ae77b3bf748456655fc284baf04c before ba7dd8a9686a61a34b3a7b922ce721378d4740d0; from b72b7bf5cbb2ae77b3bf748456655fc284baf04c before 491762b3250fb06a0c97b5198656ea48359eaeed; from b72b7bf5cbb2ae77b3bf748456655fc284baf04c before 466b67c0543b2ae67814d053f6e29b39be6b33bb; from b72b7bf5cbb2ae77b3bf748456655fc284baf04c before bacb37bdc2a21c8f7fdc83dcc0dea2f4ca1341fb; from b72b7bf5cbb2ae77b3bf748456655fc284baf04c before f2f6e67522916f53ad8ccd4dbe68dcf76e9776e5; from b72b7bf5cbb2ae77b3bf748456655fc284baf04c before c02d2a91a85c4c4d05826cd1ea74a9b8d42e4280; from b72b7bf5cbb2ae77b3bf748456655fc284baf04c before 945a9a8e448b65bec055d37eba58f711b39f66f0; 2.6.30 (not affected: before 2.6.30; from 4.9.327 up to 4.9.*; from 4.14.292 up to 4.14.*; from 4.19.257 up to 4.19.*; from 5.4.212 up to 5.4.*; from 5.10.141 up to 5.10.*; from 5.15.65 up to 5.15.*; from 5.19.7 up to 5.19.*; from 6.0 up to *)
- linux linux_kernel: before 4.9.327; from 4.10 before 4.14.292; from 4.15 before 4.19.257; from 4.20 before 5.4.212; from 5.5 before 5.10.141; from 5.11 before 5.15.65; from 5.16 before 5.19.7

## References

- <https://git.kernel.org/stable/c/2fe46195d2f0d5d09ea65433aefe47a4d0d0ff4d> (patch)
- <https://git.kernel.org/stable/c/ba7dd8a9686a61a34b3a7b922ce721378d4740d0> (patch)
- <https://git.kernel.org/stable/c/491762b3250fb06a0c97b5198656ea48359eaeed> (patch)
- <https://git.kernel.org/stable/c/466b67c0543b2ae67814d053f6e29b39be6b33bb> (patch)
- <https://git.kernel.org/stable/c/bacb37bdc2a21c8f7fdc83dcc0dea2f4ca1341fb> (patch)
- <https://git.kernel.org/stable/c/f2f6e67522916f53ad8ccd4dbe68dcf76e9776e5> (patch)
- <https://git.kernel.org/stable/c/c02d2a91a85c4c4d05826cd1ea74a9b8d42e4280> (patch)
- <https://git.kernel.org/stable/c/945a9a8e448b65bec055d37eba58f711b39f66f0> (patch)

## Sources

- CVE List: [CVE-2022-49982](https://www.cve.org/CVERecord?id=CVE-2022-49982), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-49982](https://nvd.nist.gov/vuln/detail/CVE-2022-49982), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-49982 · Whole record: https://cve.day/CVE-2022-49982.json · Rebuilt by cve.day 2026-11-25T22:58:20.993Z
