CVE-2024-49981·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: media: venus: fix use after free bug in venus_remove due to race condition in venus_probe, core->work is bound with venus_sys_error_handler, which is used to handle error. The code use core->sys_err_done to make sync work. The core->work is started in venus_event_notify. If we call venus_remove, there might be an unfished work. The possible sequence is as follows: CPU0 CPU1 |venus_sys_error_handler venus_remove | hfi_destroy | venus_hfi_destroy | kfree(hdev); | |hfi_reinit |venus_hfi_queues_reinit |//use hdev Fix it by canceling the work in venus_remove.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.11.3
- Published
- 2024-10-21
Affected versions
From: 6.11
Until: 6.11.3
Fixed in: 6.11.3
How to fix this CVE
Update your Linux kernel to version 6.11.3 or later to patch a use-after-free vulnerability in the Venus media driver that occurs during system shutdown. This vulnerability creates a race condition where a background error handler may access freed memory if the driver is removed before the handler completes. Apply the kernel update through your distribution's package manager and reboot your system to mitigate the risk.
sudo dnf update kernel kernel-devel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Check your current kernel version: uname -r
- Verify if Venus media driver is loaded: lsmod | grep venus
- Search kernel logs for crash signatures related to venus_hfi or hfi_reinit: sudo dmesg | grep -i venus
- Confirm the patch is applied by checking kernel build info: cat /proc/version and verify version is 6.11.3 or later
FAQ
What is CVE-2024-49981?
This is a use-after-free vulnerability in the Linux kernel's Venus media driver that occurs when the driver is removed while an error handler is still running, causing the handler to access memory that has already been freed.
Is CVE-2024-49981 being actively exploited?
No, this vulnerability is not listed on the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploits are currently available.
What versions of Kernel are affected by CVE-2024-49981?
Linux kernel versions 6.11 through 6.11.3 are affected; the vulnerability was fixed in kernel version 6.11.3 and later.
How do I check if my server is vulnerable to CVE-2024-49981?
Run 'uname -r' to check your kernel version. If it reports a version between 6.11 and 6.11.2 inclusive, your system is vulnerable. Additionally, verify Venus driver is in use with 'lsmod | grep venus'.
Does Defensia detect CVE-2024-49981?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Linux kernel is installed on a monitored server, CVE-2024-49981 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/10941d4f99a5a34999121b314afcd9c0a1c14f15
- https://git.kernel.org/stable/c/2a541fcc0bd2b05a458e9613376df1289ec11621
- https://git.kernel.org/stable/c/5098b9e6377577fe13d03e1d8914930f014a3314
- https://git.kernel.org/stable/c/60b6968341a6dd5353554f3e72db554693a128a5
- https://git.kernel.org/stable/c/63bbe26471ebdcc3c20bb4cc3950d666279ad658
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-49981. Free for 1 server.
Get started free