# CVE-2024-42313: media: venus: fix use after free in vdec_close

- 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.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2024-08-17T09:09:17.334Z
- Modified: 2026-08-05T11:36:35.213Z
- Weaknesses: 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 in vdec_close

There appears to be a possible use after free with vdec_close().
The firmware will add buffer release work to the work queue through
HFI callbacks as a normal part of decoding. Randomly closing the
decoder device from userspace during normal decoding can incur
a read after free for inst.

Fix it by cancelling the work in vdec_close.

(As written by CVE List.)

## Affected

- Linux Linux: from af2c3834c8ca7cc65d15592ac671933df8848115 before ad8cf035baf29467158e0550c7a42b7bb43d1db6; from af2c3834c8ca7cc65d15592ac671933df8848115 before 72aff311194c8ceda934f24fd6f250b8827d7567; from af2c3834c8ca7cc65d15592ac671933df8848115 before 4c9d235630d35db762b85a4149bbb0be9d504c36; from af2c3834c8ca7cc65d15592ac671933df8848115 before f8e9a63b982a8345470c225679af4ba86e4a7282; from af2c3834c8ca7cc65d15592ac671933df8848115 before da55685247f409bf7f976cc66ba2104df75d8dad; from af2c3834c8ca7cc65d15592ac671933df8848115 before 66fa52edd32cdbb675f0803b3c4da10ea19b6635; from af2c3834c8ca7cc65d15592ac671933df8848115 before 6a96041659e834dc0b172dda4b2df512d63920c2; from af2c3834c8ca7cc65d15592ac671933df8848115 before a0157b5aa34eb43ec4c5510f9c260bbb03be937e; 4.13 (not affected: before 4.13; from 4.19.320 up to 4.19.*; from 5.4.282 up to 5.4.*; from 5.10.224 up to 5.10.*; from 5.15.165 up to 5.15.*; from 6.1.103 up to 6.1.*; from 6.6.44 up to 6.6.*; from 6.10.3 up to 6.10.*; from 6.11 up to *)
- linux linux_kernel: from 4.13 before 4.19.320; from 4.20 before 5.4.282; from 5.5 before 5.10.224; from 5.11 before 5.15.165; from 5.16 before 6.1.103; from 6.2 before 6.6.44; from 6.7 before 6.10.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.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/ad8cf035baf29467158e0550c7a42b7bb43d1db6> (patch)
- <https://git.kernel.org/stable/c/72aff311194c8ceda934f24fd6f250b8827d7567> (patch)
- <https://git.kernel.org/stable/c/4c9d235630d35db762b85a4149bbb0be9d504c36> (patch)
- <https://git.kernel.org/stable/c/f8e9a63b982a8345470c225679af4ba86e4a7282> (patch)
- <https://git.kernel.org/stable/c/da55685247f409bf7f976cc66ba2104df75d8dad> (patch)
- <https://git.kernel.org/stable/c/66fa52edd32cdbb675f0803b3c4da10ea19b6635> (patch)
- <https://git.kernel.org/stable/c/6a96041659e834dc0b172dda4b2df512d63920c2> (patch)
- <https://git.kernel.org/stable/c/a0157b5aa34eb43ec4c5510f9c260bbb03be937e> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- <https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html>

## Sources

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

---

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