CVE-2024-49981

published 21 Oct 2024 · updated 5 Aug 2026

media: venus: fix use after free bug in venus_remove due to race condition

7.8HighCVSS 7.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 10941d4f99a5a34999121b314afcd9c0a1c14f15, Kernel 2a541fcc0bd2b05a458e9613376df1289ec11621, Kernel 5098b9e6377577fe13d03e1d8914930f014a3314 and 6 more.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=4.13, >=af2c3834c8ca7cc65d15592ac671933df8848115 <10941d4f99a5a34999121b314afcd9c0a1c14f15, >=af2c3834c8ca7cc65d15592ac671933df8848115 <2a541fcc0bd2b05a458e9613376df1289ec11621, >=af2c3834c8ca7cc65d15592ac671933df8848115 <5098b9e6377577fe13d03e1d8914930f014a3314, >=af2c3834c8ca7cc65d15592ac671933df8848115 <60b6968341a6dd5353554f3e72db554693a128a5, >=af2c3834c8ca7cc65d15592ac671933df8848115 <63bbe26471ebdcc3c20bb4cc3950d666279ad658, >=af2c3834c8ca7cc65d15592ac671933df8848115 <b0686aedc5f1343442d044bd64eeac7e7a391f4e, >=af2c3834c8ca7cc65d15592ac671933df8848115 <bf6be32e2d39f6301ff1831e249d32a8744ab28a, >=af2c3834c8ca7cc65d15592ac671933df8848115 <c5a85ed88e043474161bbfe54002c89c1cb50ee2, >=af2c3834c8ca7cc65d15592ac671933df8848115 <d925e9f7fb5a2dbefd1a73fc01061f38c7becd4c10941d4f99a5a34999121b314afcd9c0a1c14f15, 2a541fcc0bd2b05a458e9613376df1289ec11621, 5098b9e6377577fe13d03e1d8914930f014a3314, 60b6968341a6dd5353554f3e72db554693a128a5, 63bbe26471ebdcc3c20bb4cc3950d666279ad658, b0686aedc5f1343442d044bd64eeac7e7a391f4e, bf6be32e2d39f6301ff1831e249d32a8744ab28a, c5a85ed88e043474161bbfe54002c89c1cb50ee2, d925e9f7fb5a2dbefd1a73fc01061f38c7becd4c

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-49981 severity on Zeptric[![CVE-2024-49981](https://zeptric.io/badge/cve/CVE-2024-49981.svg)](https://zeptric.io/cve/CVE-2024-49981)