{"id":"CVE-2024-49981","summary":"media: venus: fix use after free bug in venus_remove due to race condition","details":"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-\u003ework is bound with venus_sys_error_handler, which is\nused to handle error. The code use core-\u003esys_err_done to make sync work.\nThe core-\u003ework 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.","modified":"2026-03-20T12:39:29.657535Z","published":"2024-10-21T18:02:27.142Z","related":["MGASA-2024-0344","MGASA-2024-0345","SUSE-SU-2024:3984-1","SUSE-SU-2024:3986-1","SUSE-SU-2024:4315-1","SUSE-SU-2024:4318-1","SUSE-SU-2024:4364-1","SUSE-SU-2024:4376-1","SUSE-SU-2024:4387-1","SUSE-SU-2025:20163-1","SUSE-SU-2025:20164-1","SUSE-SU-2025:20246-1","SUSE-SU-2025:20247-1","USN-7276-1","USN-7277-1","openSUSE-SU-2024:14500-1","openSUSE-SU-2025:14705-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/49xxx/CVE-2024-49981.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/10941d4f99a5a34999121b314afcd9c0a1c14f15"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2a541fcc0bd2b05a458e9613376df1289ec11621"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5098b9e6377577fe13d03e1d8914930f014a3314"},{"type":"WEB","url":"https://git.kernel.org/stable/c/60b6968341a6dd5353554f3e72db554693a128a5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/63bbe26471ebdcc3c20bb4cc3950d666279ad658"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b0686aedc5f1343442d044bd64eeac7e7a391f4e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bf6be32e2d39f6301ff1831e249d32a8744ab28a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c5a85ed88e043474161bbfe54002c89c1cb50ee2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d925e9f7fb5a2dbefd1a73fc01061f38c7becd4c"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/49xxx/CVE-2024-49981.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-49981"},{"type":"PACKAGE","url":"https://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":"af2c3834c8ca7cc65d15592ac671933df8848115"},{"fixed":"5098b9e6377577fe13d03e1d8914930f014a3314"},{"fixed":"63bbe26471ebdcc3c20bb4cc3950d666279ad658"},{"fixed":"60b6968341a6dd5353554f3e72db554693a128a5"},{"fixed":"bf6be32e2d39f6301ff1831e249d32a8744ab28a"},{"fixed":"2a541fcc0bd2b05a458e9613376df1289ec11621"},{"fixed":"b0686aedc5f1343442d044bd64eeac7e7a391f4e"},{"fixed":"d925e9f7fb5a2dbefd1a73fc01061f38c7becd4c"},{"fixed":"10941d4f99a5a34999121b314afcd9c0a1c14f15"},{"fixed":"c5a85ed88e043474161bbfe54002c89c1cb50ee2"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-49981.json"}}],"schema_version":"1.7.5"}