All reports
Medium

kernel: media: dvbdev: adopts refcnt to avoid UAF

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2022-50274

Probability of exploitation in the next 30 days: 0.17%

FIRST EPSS · 2026-11-21

Description

In the Linux kernel, the following vulnerability has been resolved: media: dvbdev: adopts refcnt to avoid UAF dvb_unregister_device() is known that prone to use-after-free. That is, the cleanup from dvb_unregister_device() releases the dvb_device even if there are pointers stored in file->private_data still refer to it. This patch adds a reference counter into struct dvb_device and delays its deallocation until no pointer refers to the object.

A flaw was found in the Linux kernel's Digital Video Broadcasting (DVB) subsystem. When unregistering a DVB device, the cleanup routine prematurely frees the underlying device data structure even if open file descriptors still reference it. A local user with access to the device could exploit this use-after-free vulnerability during device disconnection, leading to kernel memory corruption or a Denial of Service (DoS) via a system crash.