# CVE-2024-35920: media: mediatek: vcodec: adding lock to protect decoder context list

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.33% (percentile 18, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-05-19T10:10:32.379Z
- **Modified:** 2026-08-05T11:30:59.577Z

## Who should check

- Anyone running Linux \>= 655b86e52eacdce79c2e02c5ec7258a97fcc2e4a, \< 0a2dc707aa42214f9c4827bd57e344e29a0841d6; \>= 655b86e52eacdce79c2e02c5ec7258a97fcc2e4a, \< 23aaf824121055ba81b55f75444355bd83c8eb38; \>= 655b86e52eacdce79c2e02c5ec7258a97fcc2e4a, \< 6467cda18c9f9b5f2f9a0aa1e2861c653e41f382
- Anyone running Linux 6.6

## Description

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

media: mediatek: vcodec: adding lock to protect decoder context list

Add a lock for the ctx\_list, to avoid accessing a NULL pointer
within the 'vpu\_dec\_ipi\_handler' function when the ctx\_list has
been deleted due to an unexpected behavior on the SCP IP block.

Hardware name: Google juniper sku16 board (DT)
pstate: 20400005 (nzCv daif +PAN -UAO -TCO BTYPE=--)
pc : vpu\_dec\_ipi\_handler+0x58/0x1f8 \[mtk\_vcodec\_dec\]
lr : scp\_ipi\_handler+0xd0/0x194 \[mtk\_scp\]
sp : ffffffc0131dbbd0
x29: ffffffc0131dbbd0 x28: 0000000000000000
x27: ffffff9bb277f348 x26: ffffff9bb242ad00
x25: ffffffd2d440d3b8 x24: ffffffd2a13ff1d4
x23: ffffff9bb7fe85a0 x22: ffffffc0133fbdb0
x21: 0000000000000010 x20: ffffff9b050ea328
x19: ffffffc0131dbc08 x18: 0000000000001000
x17: 0000000000000000 x16: ffffffd2d461c6e0
x15: 0000000000000242 x14: 000000000000018f
x13: 000000000000004d x12: 0000000000000000
x11: 0000000000000001 x10: fffffffffffffff0
x9 : ffffff9bb6e793a8 x8 : 0000000000000000
x7 : 0000000000000000 x6 : 000000000000003f
x5 : 0000000000000040 x4 : fffffffffffffff0
x3 : 0000000000000020 x2 : ffffff9bb6e79080
x1 : 0000000000000010 x0 : ffffffc0131dbc08
Call trace:
vpu\_dec\_ipi\_handler+0x58/0x1f8 \[mtk\_vcodec\_dec (HASH:6c3f 2)\]
scp\_ipi\_handler+0xd0/0x194 \[mtk\_scp (HASH:7046 3)\]
mt8183\_scp\_irq\_handler+0x44/0x88 \[mtk\_scp (HASH:7046 3)\]
scp\_irq\_handler+0x48/0x90 \[mtk\_scp (HASH:7046 3)\]
irq\_thread\_fn+0x38/0x94
irq\_thread+0x100/0x1c0
kthread+0x140/0x1fc
ret\_from\_fork+0x10/0x30
Code: 54000088 f94ca50a eb14015f 54000060 (f9400108)
---\[ end trace ace43ce36cbd5c93 \]---
Kernel panic - not syncing: Oops: Fatal exception
SMP: stopping secondary CPUs
Kernel Offset: 0x12c4000000 from 0xffffffc010000000
PHYS\_OFFSET: 0xffffffe580000000
CPU features: 0x08240002,2188200c
Memory Limit: none

## Affected and fixed versions

- Linux: \>= 655b86e52eacdce79c2e02c5ec7258a97fcc2e4a, \< 0a2dc707aa42214f9c4827bd57e344e29a0841d6; \>= 655b86e52eacdce79c2e02c5ec7258a97fcc2e4a, \< 23aaf824121055ba81b55f75444355bd83c8eb38; \>= 655b86e52eacdce79c2e02c5ec7258a97fcc2e4a, \< 6467cda18c9f9b5f2f9a0aa1e2861c653e41f382 (cvelist)
- Linux: 6.6 (cvelist)

## Mitigation

- Upgrade Linux to 6467cda18c9f9b5f2f9a0aa1e2861c653e41f382 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-35920. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-35920.md
Affected: Linux >= 655b86e52eacdce79c2e02c5ec7258a97fcc2e4a, < 0a2dc707aa42214f9c4827bd57e344e29a0841d6; >= 655b86e52eacdce79c2e02c5ec7258a97fcc2e4a, < 23aaf824121055ba81b55f75444355bd83c8eb38; >= 655b86e52eacdce79c2e02c5ec7258a97fcc2e4a, < 6467cda18c9f9b5f2f9a0aa1e2861c653e41f382; Linux 6.6
Fixed in: Linux 0a2dc707aa42214f9c4827bd57e344e29a0841d6, Linux 23aaf824121055ba81b55f75444355bd83c8eb38, Linux 6467cda18c9f9b5f2f9a0aa1e2861c653e41f382

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-35920 being exploited?

There is no confirmed exploitation: CVE-2024-35920 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.33% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-35920?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-35920?

Linux \>= 655b86e52eacdce79c2e02c5ec7258a97fcc2e4a, \< 0a2dc707aa42214f9c4827bd57e344e29a0841d6; \>= 655b86e52eacdce79c2e02c5ec7258a97fcc2e4a, \< 23aaf824121055ba81b55f75444355bd83c8eb38; \>= 655b86e52eacdce79c2e02c5ec7258a97fcc2e4a, \< 6467cda18c9f9b5f2f9a0aa1e2861c653e41f382; Linux 6.6.

### Is there a fix for CVE-2024-35920?

Yes. Fixed in Linux 0a2dc707aa42214f9c4827bd57e344e29a0841d6, Linux 23aaf824121055ba81b55f75444355bd83c8eb38, Linux 6467cda18c9f9b5f2f9a0aa1e2861c653e41f382. Upgrade Linux to 6467cda18c9f9b5f2f9a0aa1e2861c653e41f382 or later.

### How do I check if I'm affected by CVE-2024-35920?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/0a2dc707aa42214f9c4827bd57e344e29a0841d6>
- patch: <https://git.kernel.org/stable/c/23aaf824121055ba81b55f75444355bd83c8eb38>
- patch: <https://git.kernel.org/stable/c/6467cda18c9f9b5f2f9a0aa1e2861c653e41f382>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-35920>

HTML: <https://flawdb.com/CVE-2024-35920> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-35920>
