All reports
Low

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

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2024-27043

Probability of exploitation in the next 30 days: 0.29%

FIRST EPSS · 2026-11-24

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.

A flaw was found in the Linux kernel's Digital Video Broadcasting (DVB) subsystem. When an error occurs during device registration in the dvb_register_device() function, the kernel deallocates the device structure but fails to reset the associated pointer, leaving a dangling reference. A local attacker could exploit this use-after-free vulnerability during subsequent device unregistration or cleanup routines, causing a kernel crash that results in a denial of service (DoS) or potentially leading to arbitrary code execution.