{"schema_version":"1.9.0","id":"CVE-2024-49981","published":"2024-10-21T18:02:27.142Z","modified":"2026-08-12T03:51:32.218356389Z","related":["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"],"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->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.","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/cve-osv-conversion/osv-output/CVE-2024-49981.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.13.0"},{"fixed":"4.19.323"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.20.0"},{"fixed":"5.4.285"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.5.0"},{"fixed":"5.10.227"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.168"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.113"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.55"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.10.14"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.11.0"},{"fixed":"6.11.3"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/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"}],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/49xxx/CVE-2024-49981.json"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}