# CVE-2024-27043: media: edia: dvbdev: fix a use-after-free

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 23% of CVEs (2026-12-01)
- Published: 2024-05-01T12:54:11.197Z
- Modified: 2026-08-05T11:29:10.999Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

media: edia: dvbdev: fix a use-after-free

In dvb_register_device, *pdvbdev is set equal to dvbdev, which is freed
in several error-handling paths. However, *pdvbdev is not set to NULL
after dvbdev's deallocation, causing use-after-frees in many places,
for example, in the following call chain:

budget_register
  |-> dvb_dmxdev_init
        |-> dvb_register_device
  |-> dvb_dmxdev_release
        |-> dvb_unregister_device
              |-> dvb_remove_device
                    |-> dvb_device_put
                          |-> kref_put

When calling dvb_unregister_device, dmxdev->dvbdev (i.e. *pdvbdev in
dvb_register_device) could point to memory that had been freed in
dvb_register_device. Thereafter, this pointer is transferred to
kref_put and triggering a use-after-free.

(As written by CVE List.)

## Affected

- Linux Linux: from b61901024776b25ce7b8edc31bb1757c7382a88e before d0f5c28333822f9baa5280d813124920720fd856; from b61901024776b25ce7b8edc31bb1757c7382a88e before f20c3270f3ed5aa6919a87e4de9bf6c05fb57086; from b61901024776b25ce7b8edc31bb1757c7382a88e before 096237039d00c839f3e3a5fe6d001bf0db45b644; from b61901024776b25ce7b8edc31bb1757c7382a88e before 0d3fe80b6d175c220b3e252efc6c6777e700e98e; from b61901024776b25ce7b8edc31bb1757c7382a88e before 437a111f79a2f5b2a5f21e27fdec6f40c8768712; from b61901024776b25ce7b8edc31bb1757c7382a88e before 779e8db7efb22316c8581d6c229636d2f5694a62; from b61901024776b25ce7b8edc31bb1757c7382a88e before 35674111a043b0482a9bc69da8850a83f465b07d; from b61901024776b25ce7b8edc31bb1757c7382a88e before b7586e902128e4fb7bfbb661cb52e4215a65637b; from b61901024776b25ce7b8edc31bb1757c7382a88e before 8c64f4cdf4e6cc5682c52523713af8c39c94e6d5; 2.6.21 (not affected: before 2.6.21; from 4.19.311 up to 4.19.*; from 5.4.273 up to 5.4.*; from 5.10.214 up to 5.10.*; from 5.15.153 up to 5.15.*; from 6.1.83 up to 6.1.*; from 6.6.23 up to 6.6.*; from 6.7.11 up to 6.7.*; from 6.8.2 up to 6.8.*; from 6.9 up to *)
- linux linux_kernel: from 2.6.21 before 4.19.311; from 4.20 before 5.4.273; from 5.5 before 5.10.214; from 5.11 before 5.15.153; from 5.16 before 6.1.83; from 6.2 before 6.6.23; from 6.7 before 6.7.11; from 6.8 before 6.8.2

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/d0f5c28333822f9baa5280d813124920720fd856> (patch)
- <https://git.kernel.org/stable/c/f20c3270f3ed5aa6919a87e4de9bf6c05fb57086> (patch)
- <https://git.kernel.org/stable/c/096237039d00c839f3e3a5fe6d001bf0db45b644> (patch)
- <https://git.kernel.org/stable/c/0d3fe80b6d175c220b3e252efc6c6777e700e98e> (patch)
- <https://git.kernel.org/stable/c/437a111f79a2f5b2a5f21e27fdec6f40c8768712> (patch)
- <https://git.kernel.org/stable/c/779e8db7efb22316c8581d6c229636d2f5694a62> (patch)
- <https://git.kernel.org/stable/c/35674111a043b0482a9bc69da8850a83f465b07d> (patch)
- <https://git.kernel.org/stable/c/b7586e902128e4fb7bfbb661cb52e4215a65637b> (patch)
- <https://git.kernel.org/stable/c/8c64f4cdf4e6cc5682c52523713af8c39c94e6d5> (patch)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html> (patch)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html> (patch)

## Sources

- CVE List: [CVE-2024-27043](https://www.cve.org/CVERecord?id=CVE-2024-27043), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-27043](https://nvd.nist.gov/vuln/detail/CVE-2024-27043), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-27043 · Whole record: https://cve.day/CVE-2024-27043.json · Rebuilt by cve.day 2026-11-25T22:58:39.793Z
