CVE-2022-50274

Source
https://cve.org/CVERecord?id=CVE-2022-50274
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50274.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-50274
Downstream
Published
2025-09-15T14:21:10.383Z
Modified
2026-04-11T12:44:54.738696Z
Summary
media: dvbdev: adopts refcnt to avoid UAF
Details

In the Linux kernel, the following vulnerability has been resolved:

media: dvbdev: adopts refcnt to avoid UAF

dvbunregisterdevice() is known that prone to use-after-free. That is, the cleanup from dvbunregisterdevice() releases the dvbdevice even if there are pointers stored in file->privatedata 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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50274.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / 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"

Linux / Kernel

Package

Name
Kernel

Affected 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"