CVE-2024-27043

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-27043
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-27043.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-27043
Downstream
Related
Published
2024-05-01T12:54:11.197Z
Modified
2025-11-27T02:33:14.865165Z
Summary
media: edia: dvbdev: fix a use-after-free
Details

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

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

In dvbregisterdevice, *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:

budgetregister |-> dvbdmxdevinit |-> dvbregisterdevice |-> dvbdmxdevrelease |-> dvbunregisterdevice |-> dvbremovedevice |-> dvbdeviceput |-> krefput

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

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/blob/cc431b3424123d84bcd7afd4de150b33f117a8ef/cves/2024/27xxx/CVE-2024-27043.json"
}
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
b61901024776b25ce7b8edc31bb1757c7382a88e
Fixed
d0f5c28333822f9baa5280d813124920720fd856
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
b61901024776b25ce7b8edc31bb1757c7382a88e
Fixed
f20c3270f3ed5aa6919a87e4de9bf6c05fb57086
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
b61901024776b25ce7b8edc31bb1757c7382a88e
Fixed
096237039d00c839f3e3a5fe6d001bf0db45b644
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
b61901024776b25ce7b8edc31bb1757c7382a88e
Fixed
0d3fe80b6d175c220b3e252efc6c6777e700e98e
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
b61901024776b25ce7b8edc31bb1757c7382a88e
Fixed
437a111f79a2f5b2a5f21e27fdec6f40c8768712
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
b61901024776b25ce7b8edc31bb1757c7382a88e
Fixed
779e8db7efb22316c8581d6c229636d2f5694a62
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
b61901024776b25ce7b8edc31bb1757c7382a88e
Fixed
35674111a043b0482a9bc69da8850a83f465b07d
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
b61901024776b25ce7b8edc31bb1757c7382a88e
Fixed
b7586e902128e4fb7bfbb661cb52e4215a65637b
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
b61901024776b25ce7b8edc31bb1757c7382a88e
Fixed
8c64f4cdf4e6cc5682c52523713af8c39c94e6d5

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.6.21
Fixed
4.19.311
Type
ECOSYSTEM
Events
Introduced
4.20.0
Fixed
5.4.273
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.214
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.153
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.83
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.23
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.7.11
Type
ECOSYSTEM
Events
Introduced
6.8.0
Fixed
6.8.2