{"id":"CVE-2022-50274","summary":"media: dvbdev: adopts refcnt to avoid UAF","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: dvbdev: adopts refcnt to avoid UAF\n\ndvb_unregister_device() is known that prone to use-after-free.\nThat is, the cleanup from dvb_unregister_device() releases the dvb_device\neven if there are pointers stored in file-\u003eprivate_data still refer to it.\n\nThis patch adds a reference counter into struct dvb_device and delays its\ndeallocation until no pointer refers to the object.","modified":"2026-05-07T04:18:20.856640Z","published":"2025-09-15T14:21:10.383Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50274.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0fc044b2b5e2d05a1fa1fb0d7f270367a7855d79"},{"type":"WEB","url":"https://git.kernel.org/stable/c/219b44bf94203bd433aa91b7796475bf656348e5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2abd73433872194bccdf1432a0980e4ec5273c2a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6d18b44bb44e1f4d97dfe0efe92ac0f0984739c2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/88a6f8a72d167294c0931c7874941bf37a41b6dd"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9945d05d6693710574f354c5dbddc47f5101eb77"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a2f0a08aa613176c9688c81d7b598a7779974991"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ac521bbe3d00fa574e66a9361763f2b37725bc97"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50274.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50274"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2"},{"fixed":"ac521bbe3d00fa574e66a9361763f2b37725bc97"},{"fixed":"219b44bf94203bd433aa91b7796475bf656348e5"},{"fixed":"6d18b44bb44e1f4d97dfe0efe92ac0f0984739c2"},{"fixed":"2abd73433872194bccdf1432a0980e4ec5273c2a"},{"fixed":"88a6f8a72d167294c0931c7874941bf37a41b6dd"},{"fixed":"a2f0a08aa613176c9688c81d7b598a7779974991"},{"fixed":"9945d05d6693710574f354c5dbddc47f5101eb77"},{"fixed":"0fc044b2b5e2d05a1fa1fb0d7f270367a7855d79"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50274.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.12"},{"fixed":"4.14.303"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.15.0"},{"fixed":"4.19.270"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.20.0"},{"fixed":"5.4.229"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.5.0"},{"fixed":"5.10.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.86"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.0.16"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.1.0"},{"fixed":"6.1.2"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50274.json"}}],"schema_version":"1.7.5"}