CVE-2022-50499 json
media: dvb-core: Fix double free in dvb_register_device()
published 2025-10-04 13 mo ago modified 2026-06-17 4 mo ago also EUVD-2025-32330
- cvss
- 7.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 5%
- public exploits
- 0
- none known
Summary
In the Linux kernel, the following vulnerability has been resolved:
media: dvb-core: Fix double free in dvb_register_device()
In function dvb_register_device() -> dvb_register_media_device() -> dvb_create_media_entity(), dvb->entity is allocated and initialized. If the initialization fails, it frees the dvb->entity, and return an error code. The caller takes the error code and handles the error by calling dvb_media_device_free(), which unregisters the entity and frees the field again if it is not NULL. As dvb->entity may not NULLed in dvb_create_media_entity() when the allocation of dvbdev->pad fails, a double free may occur. This may also cause an Use After free in media_device_unregister_entity().
Fix this by storing NULL to dvb->entity when it is freed.
Patch / fix
- Linux Linux 4.9.337, 4.14.303, 4.19.270, 5.3, 5.4, 5.4.229, 5.10.163, 5.15.87, 6.0.18, 6.1.4, 6.2
- linux Debian 14, Debian 13, Debian 12 6.1.4-1
debian advisories DEBIAN-CVE-2022-50499
- linux Ubuntu 18.04 LTS 4.15.0-208.220
- linux Ubuntu 20.04 LTS 5.4.0-144.161
- linux Ubuntu 22.04 LTS 5.15.0-69.76
- linux-aws Ubuntu 18.04 LTS 4.15.0-1153.166
- linux-aws Ubuntu 20.04 LTS 5.4.0-1097.105
- linux-aws Ubuntu 22.04 LTS 5.15.0-1033.37
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1101.110
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1031.38
ubuntu advisories UBUNTU-CVE-2022-50499
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-64kb SLES 15 SP5-LTSS, SLE High Performance Computing 15 SP5-LTSS, SLE High Performance Computing 15 SP5-ESPOS 5.14.21-150500.55.127.1
- kernel-syms SLES for SAP 15 SP5, SLES 15 SP5-LTSS, SLE High Performance Computing 15 SP5-LTSS +1 more 5.14.21-150500.55.127.1
- kernel-source SLES for SAP 15 SP5, SLES 15 SP5-LTSS, SLE Micro 5.5 +2 more 5.14.21-150500.55.127.1
- kernel-default SLES for SAP 15 SP5, SLES 15 SP5-LTSS, SLE Micro 5.5 +3 more 5.14.21-150500.55.127.1
- kernel-obs-build SLES for SAP 15 SP5, SLES 15 SP5-LTSS, SLE High Performance Computing 15 SP5-LTSS +1 more 5.14.21-150500.55.127.1
- kernel-default-base SLES for SAP 15 SP5, SLES 15 SP5-LTSS, SLE Micro 5.5 +2 more 5.14.21-150500.55.127.1.150500.6.61.1
- kernel-rt SLE Micro 5.5 5.14.21-150500.13.112.1
- kernel-source-rt SLE Micro 5.5 5.14.21-150500.13.112.1
suse advisories SUSE-SU-2025:4320-1SUSE-SU-2025:4149-1SUSE-SU-2025:4139-1SUSE-SU-2025:4111-1
- git.kernel.org/stable/c/0588b12c418c3e4f927ced11f27b02ef4a5bfb07 commit
- git.kernel.org/stable/c/e9a78485b658361fab6a5547377be6c1af6f1b3d commit
- git.kernel.org/stable/c/70bc51303871159796b55ba1a8f16637b46c2511 commit
- git.kernel.org/stable/c/b21f62b49ee9c3e0216d685d9cfd6003e5727271 commit
- git.kernel.org/stable/c/7dd5a68cdbbbe7fc67ba701cb52ba10d8ba149f8 commit
- git.kernel.org/stable/c/acf984a3718c2458eb9e08b6714490a04f213c58 commit
- git.kernel.org/stable/c/772892b29ac50c2c5e918fc80104aa6ede81d837 commit
- git.kernel.org/stable/c/123eddf92a114e03919942641d2c2b1f4ca56ea6 commit
- git.kernel.org/stable/c/6b0d0477fce747d4137aa65856318b55fba72198 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-50499 updated
kernel: media: dvb-core: Fix double free in dvb_register_device()
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 more Red Hat Enterprise Linux 10 kernelnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.17% chance of exploitation in the next 30 days, higher than 5% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-415 Double Free
- Technology feeds
References
-
git.kernel.org
/stable/c/0588b12c418c3e4f927ced11f27b02ef4a5bfb07
patch
-
git.kernel.org
/stable/c/e9a78485b658361fab6a5547377be6c1af6f1b3d
patch
-
git.kernel.org
/stable/c/70bc51303871159796b55ba1a8f16637b46c2511
patch
-
git.kernel.org
/stable/c/b21f62b49ee9c3e0216d685d9cfd6003e5727271
patch
-
git.kernel.org
/stable/c/7dd5a68cdbbbe7fc67ba701cb52ba10d8ba149f8
patch
-
git.kernel.org
/stable/c/acf984a3718c2458eb9e08b6714490a04f213c58
patch
-
git.kernel.org
/stable/c/772892b29ac50c2c5e918fc80104aa6ede81d837
patch
-
git.kernel.org
/stable/c/123eddf92a114e03919942641d2c2b1f4ca56ea6
patch
-
git.kernel.org
/stable/c/6b0d0477fce747d4137aa65856318b55fba72198
patch
Sources
- CVE List CVE-2022-50499
- NVD CVE-2022-50499
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.