media: dvb-core: Fix double free in dvb_register_device()
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA. Impact type from CWE-415 and the CVSS impact.
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Linux | Linux | 4.9.195 to before 4.9.337; 4.14.147 to before 4.14.303; 4.19.77 to before 4.19.270; 5.2.19 to before 5.3; 5.3.4 to before 5.4 | 4.9.337, 4.14.303, 4.19.270, 5.3, 5.4 | Patch available | CNA |
| Linux | Linux | 5.4 and later | 4.9.337, 4.14.303, 4.19.270, 5.4.229, 5.10.163, 5.15.87, 6.0.18, 6.1.4, 6.2 | Patch available | CNA |
- Linux VendorLinux Affected 4.9.195 to before 4.9.337; 4.14.147 to before 4.14.303; 4.19.77 to before 4.19.270; 5.2.19 to before 5.3; 5.3.4 to before 5.4 Fixed in 4.9.337, 4.14.303, 4.19.270, 5.3, 5.4 Patch available CNA
- Linux VendorLinux Affected 5.4 and later Fixed in 4.9.337, 4.14.303, 4.19.270, 5.4.229, 5.10.163, 5.15.87, 6.0.18, 6.1.4, 6.2 Patch available CNA
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 4.9.195 to before 4.9.337; 4.14.147 to before 4.14.303; 4.19.77 to before 4.19.270; 5.2.19 to before 5.3; 5.3.4 to before 5.4.229; 5.5 to before 5.10.163; 5.11 to before 5.15.87; 5.16 to before 6.0.18; 6.1 to before 6.1.4 | Vulnerable | Linux |
- cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* Versions 4.9.195 to before 4.9.337; 4.14.147 to before 4.14.303; 4.19.77 to before 4.19.270; 5.2.19 to before 5.3; 5.3.4 to before 5.4.229; 5.5 to before 5.10.163; 5.11 to before 5.15.87; 5.16 to before 6.0.18; 6.1 to before 6.1.4 Vulnerable ·Linux
Remediation
- Fix · CNA Linux (Linux) Fixed in 4.9.337, 4.14.303, 4.19.270, 5.3, 5.4
- Fix · CNA Linux (Linux) Fixed in 4.9.337, 4.14.303, 4.19.270, 5.4.229, 5.10.163, 5.15.87, 6.0.18, 6.1.4, 6.2
Vendor assessments
Red Hat
Not affected: 5 products
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
Timeline
- 2026-10-02 Threatist record created from CVE-2022-50499
- 2026-10-03 Alias added: GHSA-vw72-9rh3-2576
References
Patch 9
- https://git.kernel.org/stable/c/0588b12c418c3e4f927ced11f27b02ef4a5bfb07
- https://git.kernel.org/stable/c/e9a78485b658361fab6a5547377be6c1af6f1b3d
- https://git.kernel.org/stable/c/70bc51303871159796b55ba1a8f16637b46c2511
- https://git.kernel.org/stable/c/b21f62b49ee9c3e0216d685d9cfd6003e5727271
- https://git.kernel.org/stable/c/7dd5a68cdbbbe7fc67ba701cb52ba10d8ba149f8
- https://git.kernel.org/stable/c/acf984a3718c2458eb9e08b6714490a04f213c58
- https://git.kernel.org/stable/c/772892b29ac50c2c5e918fc80104aa6ede81d837
- https://git.kernel.org/stable/c/123eddf92a114e03919942641d2c2b1f4ca56ea6
- https://git.kernel.org/stable/c/6b0d0477fce747d4137aa65856318b55fba72198
More Linux Kernel vulnerabilities
- TI-2025-26358 tls: fix handling of zero-length records on the rx_list KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 netfilter: bridge: make ebt_snat ARP rewrite writable KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 The (1) get_user and (2) put_user API functions in the Linux kernel before 3.5.5 on the… KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Integer overflow in kernel KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 The perf_swevent_init function in kernel/events/core.c in the Linux kernel before 3.8.9… KEVCVSS 3.1HIGH 8.4
- TI-2021-05514 Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACE KEVCVSS 3.1HIGH 8.3
Sources
- CVE-2022-50499 · CVE Program
- CVE-2022-50499 · NVD
- FIRST EPSS
- GHSA-vw72-9rh3-2576 · GitHub Advisory Database · CC BY 4.0
- CVE-2022-50499 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences