CVE-2022-49982

media: pvrusb2: fix memory leak in pvr_probe

No CVSS score yet EPSS 0.27%

Published 18 Jun 2025 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2022-49982

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-49982 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.27%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 20.0% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from b72b7bf5cbb2ae77b3bf748456655fc284baf04c, before 2fe46195d2f0d5d09ea65433aefe47a4d0d0ff4d
affected from b72b7bf5cbb2ae77b3bf748456655fc284baf04c, before ba7dd8a9686a61a34b3a7b922ce721378d4740d0
affected from b72b7bf5cbb2ae77b3bf748456655fc284baf04c, before 491762b3250fb06a0c97b5198656ea48359eaeed
affected from b72b7bf5cbb2ae77b3bf748456655fc284baf04c, before 466b67c0543b2ae67814d053f6e29b39be6b33bb
affected from b72b7bf5cbb2ae77b3bf748456655fc284baf04c, before bacb37bdc2a21c8f7fdc83dcc0dea2f4ca1341fb
affected from b72b7bf5cbb2ae77b3bf748456655fc284baf04c, before f2f6e67522916f53ad8ccd4dbe68dcf76e9776e5
affected from b72b7bf5cbb2ae77b3bf748456655fc284baf04c, before c02d2a91a85c4c4d05826cd1ea74a9b8d42e4280
affected from b72b7bf5cbb2ae77b3bf748456655fc284baf04c, before 945a9a8e448b65bec055d37eba58f711b39f66f0
Other versions: unaffected
Linux
affected 2.6.30
unaffected before 2.6.30
unaffected from 4.9.327 up to and including 4.9.*
unaffected from 4.14.292 up to and including 4.14.*
unaffected from 4.19.257 up to and including 4.19.*
unaffected from 5.4.212 up to and including 5.4.*
unaffected from 5.10.141 up to and including 5.10.*
unaffected from 5.15.65 up to and including 5.15.*
unaffected from 5.19.7 up to and including 5.19.*
unaffected 6.0 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-49982 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-49982

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2022-49982
trivy image --scanners vuln IMAGE | grep CVE-2022-49982

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2022-49982 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.