CVE-2022-49982

media: pvrusb2: fix memory leak in pvr_probe

MEDIUM
5.5
CVSS Score
Published: June 18, 2025 at 11:00 AM UTC
Updated: June 17, 2026 at 05:19 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.3%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 4.9.3272.6.30 ≤ v < 4.14.2922.6.30 ≤ v < 4.19.2572.6.30 ≤ v < 4.9.3272.6.30 ≤ v < 5.10.1412.6.30 ≤ v < 5.15.652.6.30 ≤ v < 5.19.72.6.30 ≤ v < 5.4.2122.6.30 ≤ v < 6.04.10 ≤ v < 4.14.2924.15 ≤ v < 4.19.2574.20 ≤ v < 5.4.2125.11 ≤ v < 5.15.655.16 ≤ v < 5.19.75.5 ≤ v < 5.10.1412.6.30b72b7bf5cbb2ae77b3bf748456655fc284baf04c
Vendor states this is fixed in 2fe46195d2f0d5d09ea65433aefe47a4d0d0ff4d (fixed)
Vendor states this is fixed in 466b67c0543b2ae67814d053f6e29b39be6b33bb (fixed)
Vendor states this is fixed in 491762b3250fb06a0c97b5198656ea48359eaeed (fixed)
Vendor states this is fixed in 945a9a8e448b65bec055d37eba58f711b39f66f0 (fixed)
Vendor states this is fixed in ba7dd8a9686a61a34b3a7b922ce721378d4740d0 (fixed)
Vendor states this is fixed in bacb37bdc2a21c8f7fdc83dcc0dea2f4ca1341fb (fixed)
Vendor states this is fixed in c02d2a91a85c4c4d05826cd1ea74a9b8d42e4280 (fixed)
Vendor states this is fixed in f2f6e67522916f53ad8ccd4dbe68dcf76e9776e5 (fixed)
Vendor states this is fixed in 2.6.30 (unaffected)
Vendor states this is fixed in 4.14.292 (unaffected)
Vendor states this is fixed in 4.19.257 (unaffected)
Vendor states this is fixed in 4.9.327 (unaffected)
Vendor states this is fixed in 5.10.141 (unaffected)
Vendor states this is fixed in 5.15.65 (unaffected)
Vendor states this is fixed in 5.19.7 (unaffected)
Vendor states this is fixed in 5.4.212 (unaffected)
Vendor states this is fixed in 6.0 (unaffected)

References (8)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2fe46195d2f0d5d09ea65433aefe47a4d0d0ff4d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/466b67c0543b2ae67814d053f6e29b39be6b33bb
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/491762b3250fb06a0c97b5198656ea48359eaeed
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/945a9a8e448b65bec055d37eba58f711b39f66f0
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ba7dd8a9686a61a34b3a7b922ce721378d4740d0
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/bacb37bdc2a21c8f7fdc83dcc0dea2f4ca1341fb
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c02d2a91a85c4c4d05826cd1ea74a9b8d42e4280
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f2f6e67522916f53ad8ccd4dbe68dcf76e9776e5

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-401

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card