CVE-2022-49982

Source
https://cve.org/CVERecord?id=CVE-2022-49982
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49982.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-49982
Downstream
Related
Published
2025-06-18T11:00:44.285Z
Modified
2026-04-11T12:44:46.021807Z
Summary
media: pvrusb2: fix memory leak in pvr_probe
Details

In the Linux kernel, the following vulnerability has been resolved:

media: pvrusb2: fix memory leak in pvr_probe

The error handling code in pvr2hdwcreate forgets to unregister the v4l2 device. When pvr2hdwcreate returns back to pvr2contextcreate, it calls pvr2contextdestroy to destroy context, but mp->hdw is NULL, which leads to that pvr2hdwdestroy directly returns.

Fix this by adding v4l2deviceunregister to decrease the refcount of usb interface.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49982.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
b72b7bf5cbb2ae77b3bf748456655fc284baf04c
Fixed
2fe46195d2f0d5d09ea65433aefe47a4d0d0ff4d
Fixed
ba7dd8a9686a61a34b3a7b922ce721378d4740d0
Fixed
491762b3250fb06a0c97b5198656ea48359eaeed
Fixed
466b67c0543b2ae67814d053f6e29b39be6b33bb
Fixed
bacb37bdc2a21c8f7fdc83dcc0dea2f4ca1341fb
Fixed
f2f6e67522916f53ad8ccd4dbe68dcf76e9776e5
Fixed
c02d2a91a85c4c4d05826cd1ea74a9b8d42e4280
Fixed
945a9a8e448b65bec055d37eba58f711b39f66f0

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49982.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.6.30
Fixed
4.9.327
Type
ECOSYSTEM
Events
Introduced
4.10.0
Fixed
4.14.292
Type
ECOSYSTEM
Events
Introduced
4.15.0
Fixed
4.19.257
Type
ECOSYSTEM
Events
Introduced
4.20.0
Fixed
5.4.212
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.141
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.65
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
5.19.7

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49982.json"