Bug 2320474 (CVE-2024-49981) - CVE-2024-49981 kernel: media: venus: fix use after free bug in venus_remove due to race condition
Summary: CVE-2024-49981 kernel: media: venus: fix use after free bug in venus_remove d...
Keywords:
Status: NEW
Alias: CVE-2024-49981
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2320796
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-10-21 19:04 UTC by OSIDB Bzimport
Modified: 2024-10-21 23:18 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-10-21 19:04:25 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.