media: dvbdev: adopts refcnt to avoid UAF
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · < a2f0a08aa613176c9688c81d7b598a7779974991| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's media dvbdev component has a use-after-free flaw. When dvb_unregister_device() frees a device still referenced by file->private_data, an attacker may be able to exploit the stale reference; the input does not specify access, authentication, or user-interaction requirements.
Anyone running the Linux kernel should check whether their version includes the dvbdev reference-counting fix; affected versions are not specified.