CVE-2024-49981: media: venus: fix use after free bug in venus_remove due to race condition
In the Linux kernel, the following vulnerability has been resolved:
media: venus: fix use after free bug in venusremove due to race condition
in venusprobe, core->work is bound with venussyserrorhandler, which is used to handle error. The code use core->syserrdone to make sync work. The core->work is started in venuseventnotify.
If we call venusremove, there might be an unfished work. The possible sequence is as follows:
CPU0 CPU1
|venussyserrorhandler venusremove | hfidestroy | venushfidestroy | kfree(hdev); | |hfireinit |venushfiqueuesreinit |//use hdev
Fix it by canceling the work in venusremove.
Other sources
This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.
— Launchpad
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1 - Upgrade
Upgrade
debian/linux-6.1to a version that resolves this vulnerability.Fixed in 6.1.129-1~deb11u1
Event History
Frequently Asked Questions
What is the severity of CVE-2024-49981?
The severity of CVE-2024-49981 is categorized as a medium risk due to a use-after-free vulnerability in the Linux kernel.
How do I fix CVE-2024-49981?
To fix CVE-2024-49981, update your Linux kernel to a version that includes the patch, such as version 6.1.123-1 or higher.
What are the affected versions of CVE-2024-49981?
CVE-2024-49981 affects multiple versions of the Linux kernel, specifically versions between 4.13 and 5.15, as well as versions between 5.16 and 6.11.
Is CVE-2024-49981 exploitable?
Yes, CVE-2024-49981 is exploitable, allowing attackers to potentially cause denial of service or execute arbitrary code.
Who is responsible for patching CVE-2024-49981?
Maintainers of Linux kernel distributions are responsible for patching CVE-2024-49981 and providing updated packages to their users.