CVE-2024-42313·Kernel vulnerability
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.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.10.3
- Published
- 2024-08-17
Affected versions
From: 6.7
Until: 6.10.3
Fixed in: 6.10.3
How to fix this CVE
Update your Linux kernel to version 6.10.3 or later to resolve a use-after-free vulnerability in the Venus media decoder driver. This flaw allows local attackers to trigger a kernel memory access violation by closing the decoder device during active video decoding operations. Apply the kernel update through your distribution's package manager and reboot your system to complete the remediation.
sudo dnf update kernel kernel-devel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your current kernel version with `uname -r` and compare against affected range 6.7 to 6.10.2
- Step 2: Verify if Venus video decoder hardware is present on your system with `lspci | grep -i venus` or `lsmod | grep venus`
- Step 3: Search system logs for kernel panic traces related to venus decoder with `dmesg | grep -i 'venus\|use after free\|UAF'` or `journalctl -xe | grep venus`
- Step 4: After patching, confirm kernel update with `uname -r` showing version 6.10.3 or later, then verify no venus-related errors appear in `dmesg` output
FAQ
What is CVE-2024-42313?
CVE-2024-42313 is a use-after-free vulnerability in the Linux kernel's Venus media decoder subsystem. When userspace applications close the video decoder device during active decoding operations, kernel memory objects may be accessed after being freed, leading to system instability or code execution with local privileges.
Is CVE-2024-42313 being actively exploited?
No, there is no evidence of active exploitation in the wild. No public exploits or proof-of-concept code has been released, though this is a local privilege escalation vector requiring direct system access.
What versions of Kernel are affected by CVE-2024-42313?
Linux kernel versions 6.7 through 6.10.2 are affected. The vulnerability was fixed in kernel 6.10.3 and later releases.
How do I check if my server is vulnerable to CVE-2024-42313?
Run `uname -r` to retrieve your kernel version. If the output shows a version between 6.7 and 6.10.2 (inclusive), your system is vulnerable. Additionally, check if Venus decoder support is enabled with `lsmod | grep venus`.
Does Defensia detect CVE-2024-42313?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2024-42313 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/4c9d235630d35db762b85a4149bbb0be9d504c36
- https://git.kernel.org/stable/c/66fa52edd32cdbb675f0803b3c4da10ea19b6635
- https://git.kernel.org/stable/c/6a96041659e834dc0b172dda4b2df512d63920c2
- https://git.kernel.org/stable/c/72aff311194c8ceda934f24fd6f250b8827d7567
- https://git.kernel.org/stable/c/a0157b5aa34eb43ec4c5510f9c260bbb03be937e
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-42313. Free for 1 server.
Get started free