Bug 2395314 (CVE-2022-50274) - CVE-2022-50274 kernel: media: dvbdev: adopts refcnt to avoid UAF
Summary: CVE-2022-50274 kernel: media: dvbdev: adopts refcnt to avoid UAF
Keywords:
Status: NEW
Alias: CVE-2022-50274
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-09-15 15:06 UTC by OSIDB Bzimport
Modified: 2025-09-22 09:47 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-09-15 15:06:58 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.