Breaking News: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2024-35921

kernel: media: mediatek: vcodec: Fix oops when HEVC init fails

Overview

Published
19 May 2024
Modified
4 Aug 2026
High CVE
0 Registry packages
50 OS packages
7 Linux distributions
Yes Fix available

Description

In the Linux kernel, the following vulnerability has been resolved:

media: mediatek: vcodec: Fix oops when HEVC init fails

The stateless HEVC decoder saves the instance pointer in the context
regardless if the initialization worked or not. This caused a use after
free, when the pointer is freed in case of a failure in the deinit
function.
Only store the instance pointer when the initialization was successful,
to solve this issue.

 Hardware name: Acer Tomato (rev3 - 4) board (DT)
 pstate: 80400009 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
 pc : vcodec_vpu_send_msg+0x4c/0x190 [mtk_vcodec_dec]
 lr : vcodec_send_ap_ipi+0x78/0x170 [mtk_vcodec_dec]
 sp : ffff80008750bc20
 x29: ffff80008750bc20 x28: ffff1299f6d70000 x27: 0000000000000000
 x26: 0000000000000000 x25: 0000000000000000 x24: 0000000000000000
 x23: ffff80008750bc98 x22: 000000000000a003 x21: ffffd45c4cfae000
 x20: 0000000000000010 x19: ffff1299fd668310 x18: 000000000000001a
 x17: 000000040044ffff x16: ffffd45cb15dc648 x15: 0000000000000000
 x14: ffff1299c08da1c0 x13: ffffd45cb1f87a10 x12: ffffd45cb2f5fe80
 x11: 0000000000000001 x10: 0000000000001b30 x9 : ffffd45c4d12b488
 x8 : 1fffe25339380d81 x7 : 0000000000000001 x6 : ffff1299c9c06c00
 x5 : 0000000000000132 x4 : 0000000000000000 x3 : 0000000000000000
 x2 : 0000000000000010 x1 : ffff80008750bc98 x0 : 0000000000000000
 Call trace:
  vcodec_vpu_send_msg+0x4c/0x190 [mtk_vcodec_dec]
  vcodec_send_ap_ipi+0x78/0x170 [mtk_vcodec_dec]
  vpu_dec_deinit+0x1c/0x30 [mtk_vcodec_dec]
  vdec_hevc_slice_deinit+0x30/0x98 [mtk_vcodec_dec]
  vdec_if_deinit+0x38/0x68 [mtk_vcodec_dec]
  mtk_vcodec_dec_release+0x20/0x40 [mtk_vcodec_dec]
  fops_vcodec_release+0x64/0x118 [mtk_vcodec_dec]
  v4l2_release+0x7c/0x100
  __fput+0x80/0x2d8
  __fput_sync+0x58/0x70
  __arm64_sys_close+0x40/0x90
  invoke_syscall+0x50/0x128
  el0_svc_common.constprop.0+0x48/0xf0
  do_el0_svc+0x24/0x38
  el0_svc+0x38/0xd8
  el0t_64_sync_handler+0xc0/0xc8
  el0t_64_sync+0x1a8/0x1b0
 Code: d503201f f9401660 b900127f b900227f (f9400400)

Source: OX vulnerability database

Severity

7.8 · HIGH

CVSS 3.1 base score, scored by NVD.

Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Weakness: CWE-416

Affected packages · 0

No registry package. This ID affects operating system packages only.

Operating systems · 32 fixes

SUSE Linux Enterprise 1 release · 9 packages

fixed 9
kernel-livepatch-6-4-0-150600-10-5-rt kernel-livepatch-6-4-0-150600-23-7-default kernel-syms kernel-devel cluster-md-kmp-default kernel-default-base +3
SUSE Linux Enterprise fixes for CVE-2024-35921
ReleasePackageFixed inAdvisory
15.6 kernel-livepatch-6-4-0-150600-10-5-rt 1-150600.1.5.1 SUSE-SU-2024:2973-1
15.6 kernel-livepatch-6-4-0-150600-23-7-default 1-150600.13.3.7 SUSE-SU-2024:2203-1
15.6 kernel-syms 6.4.0-150600.23.7.1 SUSE-SU-2024:2203-1
15.6 kernel-devel +2 6.4.0-150600.23.7.2 SUSE-SU-2024:2203-1
15.6 cluster-md-kmp-default +13 6.4.0-150600.23.7.3 SUSE-SU-2024:2203-1
15.6 kernel-default-base 6.4.0-150600.23.7.3.150600.12.2.7 SUSE-SU-2024:2203-1

3 more rows

SUSE Linux Enterprise Micro 1 release · 3 packages

fixed 3
kernel-default-base kernel-default kernel-devel-rt
SUSE Linux Enterprise Micro fixes for CVE-2024-35921
ReleasePackageFixed inAdvisory
6.0 kernel-default-base 6.4.0-17.1.1.51 SUSE-SU-2025:20008-1
6.0 kernel-default +5 6.4.0-18.1 SUSE-SU-2025:20008-1
6.0 kernel-devel-rt +2 6.4.0-9.1 SUSE-SU-2025:20028-1

debian 2 releases · 1 package

fixed 2
linux
debian fixes for CVE-2024-35921
ReleasePackageFixed in
13 linux 6.8.9-1
14 linux 6.8.9-1

echo 1 release · 1 package

fixed 1
linux
echo fixes for CVE-2024-35921
ReleasePackageFixed in
linux 6.8.9-1

root.io debian 1 release · 1 package

fixed 1
rootio-linux
root.io debian fixes for CVE-2024-35921
ReleasePackageFixed in
13 rootio-linux 6.8.9-1

root.io ubuntu 1 release · 1 package

fixed 1
rootio-linux
root.io ubuntu fixes for CVE-2024-35921
ReleasePackageFixed in
24.04 rootio-linux 6.8.0-38.38

ubuntu 2 releases · 15 packages

fixed 15
linux-oracle-6-8 linux-nvidia-6-8 linux-azure-6-8 linux-aws-6-8 linux-gke linux-intel +9
ubuntu fixes for CVE-2024-35921
ReleasePackageFixed in
22.04 linux-oracle-6-8 6.8.0-1008.8~22.04.1
22.04 linux-nvidia-6-8 6.8.0-1009.9~22.04.1
22.04 linux-azure-6-8 6.8.0-1010.10~22.04.1
22.04 linux-aws-6-8 6.8.0-1011.12~22.04.1
24.04 linux-gke 6.8.0-1006.9
24.04 linux-intel 6.8.0-1007.14

9 more rows

References

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.