{"id":"CVE-2024-49981","aliases":["CVE-2024-49981"],"related":[],"kind":"vulnerability","state":"published","title":"media: venus: fix use after free bug in venus_remove due to race condition","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: media: venus: se corrige el error de use after free en venus_remove debido a la condición de ejecución en venus_probe, core-&gt;work está vinculado con venus_sys_error_handler, que se usa para manejar el error. El código usa core-&gt;sys_err_done para que funcione la sincronización. El core-&gt;work se inicia en venus_event_notify. Si llamamos a venus_remove, puede haber un trabajo sin pescar. La secuencia posible es la siguiente: CPU0 CPU1 |venus_sys_error_handler venus_remove | hfi_destroy | venus_hfi_destroy | kfree(hdev); | |hfi_reinit |venus_hfi_queues_reinit |//use hdev Arréglelo cancelando el trabajo en venus_remove.","source":"nvd"}],"published":"2024-10-21T18:02:27.142Z","modified":"2026-08-05T11:40:50.454Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"}],"cwes":["CWE-362","CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"af2c3834c8ca7cc65d15592ac671933df8848115","fixed":"5098b9e6377577fe13d03e1d8914930f014a3314","status":"affected"},{"type":"git","introduced":"af2c3834c8ca7cc65d15592ac671933df8848115","fixed":"63bbe26471ebdcc3c20bb4cc3950d666279ad658","status":"affected"},{"type":"git","introduced":"af2c3834c8ca7cc65d15592ac671933df8848115","fixed":"60b6968341a6dd5353554f3e72db554693a128a5","status":"affected"},{"type":"git","introduced":"af2c3834c8ca7cc65d15592ac671933df8848115","fixed":"bf6be32e2d39f6301ff1831e249d32a8744ab28a","status":"affected"},{"type":"git","introduced":"af2c3834c8ca7cc65d15592ac671933df8848115","fixed":"2a541fcc0bd2b05a458e9613376df1289ec11621","status":"affected"},{"type":"git","introduced":"af2c3834c8ca7cc65d15592ac671933df8848115","fixed":"b0686aedc5f1343442d044bd64eeac7e7a391f4e","status":"affected"},{"type":"git","introduced":"af2c3834c8ca7cc65d15592ac671933df8848115","fixed":"d925e9f7fb5a2dbefd1a73fc01061f38c7becd4c","status":"affected"},{"type":"git","introduced":"af2c3834c8ca7cc65d15592ac671933df8848115","fixed":"10941d4f99a5a34999121b314afcd9c0a1c14f15","status":"affected"},{"type":"git","introduced":"af2c3834c8ca7cc65d15592ac671933df8848115","fixed":"c5a85ed88e043474161bbfe54002c89c1cb50ee2","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.13","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.13","status":"unaffected"},{"type":"semver","introduced":"4.19.323","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.285","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.227","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.168","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.113","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.55","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.10.14","lastAffected":"6.10.*","status":"unaffected"},{"type":"semver","introduced":"6.11.3","lastAffected":"6.11.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.12","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.13","fixed":"5.10.227"},{"status":"affected","introduced":"5.11","fixed":"5.15.168"},{"status":"affected","introduced":"5.16","fixed":"6.1.113"},{"status":"affected","introduced":"6.2","fixed":"6.6.55"},{"status":"affected","introduced":"6.7","fixed":"6.10.14"},{"status":"affected","introduced":"6.11","fixed":"6.11.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/5098b9e6377577fe13d03e1d8914930f014a3314","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/63bbe26471ebdcc3c20bb4cc3950d666279ad658","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/60b6968341a6dd5353554f3e72db554693a128a5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bf6be32e2d39f6301ff1831e249d32a8744ab28a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2a541fcc0bd2b05a458e9613376df1289ec11621","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b0686aedc5f1343442d044bd64eeac7e7a391f4e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d925e9f7fb5a2dbefd1a73fc01061f38c7becd4c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/10941d4f99a5a34999121b314afcd9c0a1c14f15","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c5a85ed88e043474161bbfe54002c89c1cb50ee2","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-10-22T13:32:30.301Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-49981","url":"https://www.cve.org/CVERecord?id=CVE-2024-49981","licence":"CVE Terms of Use","modified":"2026-08-05T11:40:50.454Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-49981","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-49981","licence":"Public domain","modified":"2026-08-04T11:21:04.817Z"}],"updatedAt":"2026-11-25T22:58:47.076Z","epss":{"score":0.00191,"percentile":0.09204,"date":"2026-12-01T12:00:22.000Z"}}