CVE-2022-49982

media: pvrusb2: fix memory leak in pvr_probe

published June 18, 2025

CVSS
—
EPSS
0%
Percentile
15.9
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00253 · 15.9th percentile
Published
2025-06-18T11:00Z
EPSS history
Timeline
  • 18 JUN 11:00Z
    media: pvrusb2: fix memory leak in pvr_probe
    cvelistv5