{"id":"CVE-2024-49981","published":"2024-10-21T18:02:27Z","modified":"2026-08-05T11:40:50Z","title":"media: venus: fix use after free bug in venus_remove due to race condition","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: venus: fix use after free bug in venus_remove due to race condition\n\nin venus_probe, core->work is bound with venus_sys_error_handler, which is\nused to handle error. The code use core->sys_err_done to make sync work.\nThe core->work is started in venus_event_notify.\n\nIf we call venus_remove, there might be an unfished work. The possible\nsequence is as follows:\n\nCPU0                  CPU1\n\n                     |venus_sys_error_handler\nvenus_remove         |\nhfi_destroy\t \t\t |\nvenus_hfi_destroy\t |\nkfree(hdev);\t     |\n                     |hfi_reinit\n\t\t\t\t\t |venus_hfi_queues_reinit\n                     |//use hdev\n\nFix it by canceling the work in venus_remove.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00243,"percentile":0.0937,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/5098b9e6377577fe13d03e1d8914930f014a3314","tags":[]},{"url":"https://git.kernel.org/stable/c/63bbe26471ebdcc3c20bb4cc3950d666279ad658","tags":[]},{"url":"https://git.kernel.org/stable/c/60b6968341a6dd5353554f3e72db554693a128a5","tags":[]},{"url":"https://git.kernel.org/stable/c/bf6be32e2d39f6301ff1831e249d32a8744ab28a","tags":[]},{"url":"https://git.kernel.org/stable/c/2a541fcc0bd2b05a458e9613376df1289ec11621","tags":[]},{"url":"https://git.kernel.org/stable/c/b0686aedc5f1343442d044bd64eeac7e7a391f4e","tags":[]},{"url":"https://git.kernel.org/stable/c/d925e9f7fb5a2dbefd1a73fc01061f38c7becd4c","tags":[]},{"url":"https://git.kernel.org/stable/c/10941d4f99a5a34999121b314afcd9c0a1c14f15","tags":[]},{"url":"https://git.kernel.org/stable/c/c5a85ed88e043474161bbfe54002c89c1cb50ee2","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[]}],"priority":{"score":7.3,"factors":[{"name":"EPSS percentile","points":1.87},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= af2c3834c8ca7cc65d15592ac671933df8848115, < 5098b9e6377577fe13d03e1d8914930f014a3314",">= af2c3834c8ca7cc65d15592ac671933df8848115, < 63bbe26471ebdcc3c20bb4cc3950d666279ad658",">= af2c3834c8ca7cc65d15592ac671933df8848115, < 60b6968341a6dd5353554f3e72db554693a128a5",">= af2c3834c8ca7cc65d15592ac671933df8848115, < bf6be32e2d39f6301ff1831e249d32a8744ab28a",">= af2c3834c8ca7cc65d15592ac671933df8848115, < 2a541fcc0bd2b05a458e9613376df1289ec11621",">= af2c3834c8ca7cc65d15592ac671933df8848115, < b0686aedc5f1343442d044bd64eeac7e7a391f4e",">= af2c3834c8ca7cc65d15592ac671933df8848115, < d925e9f7fb5a2dbefd1a73fc01061f38c7becd4c",">= af2c3834c8ca7cc65d15592ac671933df8848115, < 10941d4f99a5a34999121b314afcd9c0a1c14f15",">= af2c3834c8ca7cc65d15592ac671933df8848115, < c5a85ed88e043474161bbfe54002c89c1cb50ee2"]},{"vendor":"Linux","product":"Linux","versions":["4.13"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-10-22T13:32:30.301335Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-43659","exploited":false,"provenance":"source"}}