CVE-2022-49982

media: pvrusb2: fix memory leak in pvr_probe

State
Published
Severity
Not scored
Published
Jun 18, 2025
Updated
May 11, 2026
Reserved
Jun 18, 2025

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • b72b7bf5cbb2ae77b3bf748456655fc284baf04c to before 2fe46195d2f0d5d09ea65433aefe47a4d0d0ff4dAffected
  • b72b7bf5cbb2ae77b3bf748456655fc284baf04c to before ba7dd8a9686a61a34b3a7b922ce721378d4740d0Affected
  • b72b7bf5cbb2ae77b3bf748456655fc284baf04c to before 491762b3250fb06a0c97b5198656ea48359eaeedAffected
  • b72b7bf5cbb2ae77b3bf748456655fc284baf04c to before 466b67c0543b2ae67814d053f6e29b39be6b33bbAffected
  • b72b7bf5cbb2ae77b3bf748456655fc284baf04c to before bacb37bdc2a21c8f7fdc83dcc0dea2f4ca1341fbAffected
  • b72b7bf5cbb2ae77b3bf748456655fc284baf04c to before f2f6e67522916f53ad8ccd4dbe68dcf76e9776e5Affected
  • b72b7bf5cbb2ae77b3bf748456655fc284baf04c to before c02d2a91a85c4c4d05826cd1ea74a9b8d42e4280Affected
  • b72b7bf5cbb2ae77b3bf748456655fc284baf04c to before 945a9a8e448b65bec055d37eba58f711b39f66f0Affected
LinuxLinux
  • 2.6.30Affected
  • before 2.6.30Not affected
  • 4.9.327 through 4.9.*Not affected
  • 4.14.292 through 4.14.*Not affected
  • 4.19.257 through 4.19.*Not affected
  • 5.4.212 through 5.4.*Not affected
  • 5.10.141 through 5.10.*Not affected
  • 5.15.65 through 5.15.*Not affected
  • 5.19.7 through 5.19.*Not affected
  • 6.0 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.