# CVE-2024-49981: media: venus: fix use after free bug in venus_remove due to race condition

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 9% of CVEs (2026-12-01)
- Published: 2024-10-21T18:02:27.142Z
- Modified: 2026-08-05T11:40:50.454Z
- Weaknesses: CWE-362, CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from af2c3834c8ca7cc65d15592ac671933df8848115 before 5098b9e6377577fe13d03e1d8914930f014a3314; from af2c3834c8ca7cc65d15592ac671933df8848115 before 63bbe26471ebdcc3c20bb4cc3950d666279ad658; from af2c3834c8ca7cc65d15592ac671933df8848115 before 60b6968341a6dd5353554f3e72db554693a128a5; from af2c3834c8ca7cc65d15592ac671933df8848115 before bf6be32e2d39f6301ff1831e249d32a8744ab28a; from af2c3834c8ca7cc65d15592ac671933df8848115 before 2a541fcc0bd2b05a458e9613376df1289ec11621; from af2c3834c8ca7cc65d15592ac671933df8848115 before b0686aedc5f1343442d044bd64eeac7e7a391f4e; from af2c3834c8ca7cc65d15592ac671933df8848115 before d925e9f7fb5a2dbefd1a73fc01061f38c7becd4c; from af2c3834c8ca7cc65d15592ac671933df8848115 before 10941d4f99a5a34999121b314afcd9c0a1c14f15; from af2c3834c8ca7cc65d15592ac671933df8848115 before c5a85ed88e043474161bbfe54002c89c1cb50ee2; 4.13 (not affected: before 4.13; from 4.19.323 up to 4.19.*; from 5.4.285 up to 5.4.*; from 5.10.227 up to 5.10.*; from 5.15.168 up to 5.15.*; from 6.1.113 up to 6.1.*; from 6.6.55 up to 6.6.*; from 6.10.14 up to 6.10.*; from 6.11.3 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: from 4.13 before 5.10.227; from 5.11 before 5.15.168; from 5.16 before 6.1.113; from 6.2 before 6.6.55; from 6.7 before 6.10.14; from 6.11 before 6.11.3

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.0 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/5098b9e6377577fe13d03e1d8914930f014a3314>
- <https://git.kernel.org/stable/c/63bbe26471ebdcc3c20bb4cc3950d666279ad658>
- <https://git.kernel.org/stable/c/60b6968341a6dd5353554f3e72db554693a128a5> (patch)
- <https://git.kernel.org/stable/c/bf6be32e2d39f6301ff1831e249d32a8744ab28a> (patch)
- <https://git.kernel.org/stable/c/2a541fcc0bd2b05a458e9613376df1289ec11621> (patch)
- <https://git.kernel.org/stable/c/b0686aedc5f1343442d044bd64eeac7e7a391f4e> (patch)
- <https://git.kernel.org/stable/c/d925e9f7fb5a2dbefd1a73fc01061f38c7becd4c> (patch)
- <https://git.kernel.org/stable/c/10941d4f99a5a34999121b314afcd9c0a1c14f15> (patch)
- <https://git.kernel.org/stable/c/c5a85ed88e043474161bbfe54002c89c1cb50ee2> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Sources

- CVE List: [CVE-2024-49981](https://www.cve.org/CVERecord?id=CVE-2024-49981), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-49981](https://nvd.nist.gov/vuln/detail/CVE-2024-49981), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-49981 · Whole record: https://cve.day/CVE-2024-49981.json · Rebuilt by cve.day 2026-11-25T22:58:47.076Z
