# CVE-2024-56577: media: mtk-jpeg: Fix null-ptr-deref during unload module

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-12-27T14:23:19.725Z
- **Modified:** 2026-06-17T08:12:27.313Z

## Who should check

- Anyone running Linux \>= 09aea13ecf6f89ed7f18114953695563f64f461c, \< 0ba08c21c6a92e6512e73644555120427c9a49d4; \>= 09aea13ecf6f89ed7f18114953695563f64f461c, \< bc3889a39baf783c64c6d628bbb74d76ce164bb1; \>= 09aea13ecf6f89ed7f18114953695563f64f461c, \< 17af2b39daf12870cac61ffc360e62bc35798afb
- Anyone running Linux 6.4

## Description

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

media: mtk-jpeg: Fix null-ptr-deref during unload module

The workqueue should be destroyed in mtk\_jpeg\_core.c since commit
09aea13ecf6f ("media: mtk-jpeg: refactor some variables"), otherwise
the below calltrace can be easily triggered.

\[  677.862514\] Unable to handle kernel paging request at virtual address dfff800000000023
\[  677.863633\] KASAN: null-ptr-deref in range \[0x0000000000000118-0x000000000000011f\]
...
\[  677.879654\] CPU: 6 PID: 1071 Comm: modprobe Tainted: G           O       6.8.12-mtk+gfa1a78e5d24b+ \#17
...
\[  677.882838\] pc : destroy\_workqueue+0x3c/0x770
\[  677.883413\] lr : mtk\_jpegdec\_destroy\_workqueue+0x70/0x88 \[mtk\_jpeg\_dec\_hw\]
\[  677.884314\] sp : ffff80008ad974f0
\[  677.884744\] x29: ffff80008ad974f0 x28: ffff0000d7115580 x27: ffff0000dd691070
\[  677.885669\] x26: ffff0000dd691408 x25: ffff8000844af3e0 x24: ffff80008ad97690
\[  677.886592\] x23: ffff0000e051d400 x22: ffff0000dd691010 x21: dfff800000000000
\[  677.887515\] x20: 0000000000000000 x19: 0000000000000000 x18: ffff800085397ac0
\[  677.888438\] x17: 0000000000000000 x16: ffff8000801b87c8 x15: 1ffff000115b2e10
\[  677.889361\] x14: 00000000f1f1f1f1 x13: 0000000000000000 x12: ffff7000115b2e4d
\[  677.890285\] x11: 1ffff000115b2e4c x10: ffff7000115b2e4c x9 : ffff80000aa43e90
\[  677.891208\] x8 : 00008fffeea4d1b4 x7 : ffff80008ad97267 x6 : 0000000000000001
\[  677.892131\] x5 : ffff80008ad97260 x4 : ffff7000115b2e4d x3 : 0000000000000000
\[  677.893054\] x2 : 0000000000000023 x1 : dfff800000000000 x0 : 0000000000000118
\[  677.893977\] Call trace:
\[  677.894297\]  destroy\_workqueue+0x3c/0x770
\[  677.894826\]  mtk\_jpegdec\_destroy\_workqueue+0x70/0x88 \[mtk\_jpeg\_dec\_hw\]
\[  677.895677\]  devm\_action\_release+0x50/0x90
\[  677.896211\]  release\_nodes+0xe8/0x170
\[  677.896688\]  devres\_release\_all+0xf8/0x178
\[  677.897219\]  device\_unbind\_cleanup+0x24/0x170
\[  677.897785\]  device\_release\_driver\_internal+0x35c/0x480
\[  677.898461\]  device\_release\_driver+0x20/0x38
...
\[  677.912665\] ---\[ end trace 0000000000000000 \]---

## Affected and fixed versions

- Linux: \>= 09aea13ecf6f89ed7f18114953695563f64f461c, \< 0ba08c21c6a92e6512e73644555120427c9a49d4; \>= 09aea13ecf6f89ed7f18114953695563f64f461c, \< bc3889a39baf783c64c6d628bbb74d76ce164bb1; \>= 09aea13ecf6f89ed7f18114953695563f64f461c, \< 17af2b39daf12870cac61ffc360e62bc35798afb (cvelist)
- Linux: 6.4 (cvelist)

## Mitigation

- Upgrade Linux to 17af2b39daf12870cac61ffc360e62bc35798afb 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-56577. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-56577.md
Affected: Linux >= 09aea13ecf6f89ed7f18114953695563f64f461c, < 0ba08c21c6a92e6512e73644555120427c9a49d4; >= 09aea13ecf6f89ed7f18114953695563f64f461c, < bc3889a39baf783c64c6d628bbb74d76ce164bb1; >= 09aea13ecf6f89ed7f18114953695563f64f461c, < 17af2b39daf12870cac61ffc360e62bc35798afb; Linux 6.4
Fixed in: Linux 0ba08c21c6a92e6512e73644555120427c9a49d4, Linux 17af2b39daf12870cac61ffc360e62bc35798afb

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-56577 being exploited?

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

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

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

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

Linux \>= 09aea13ecf6f89ed7f18114953695563f64f461c, \< 0ba08c21c6a92e6512e73644555120427c9a49d4; \>= 09aea13ecf6f89ed7f18114953695563f64f461c, \< bc3889a39baf783c64c6d628bbb74d76ce164bb1; \>= 09aea13ecf6f89ed7f18114953695563f64f461c, \< 17af2b39daf12870cac61ffc360e62bc35798afb; Linux 6.4.

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

Yes. Fixed in Linux 0ba08c21c6a92e6512e73644555120427c9a49d4, Linux 17af2b39daf12870cac61ffc360e62bc35798afb. Upgrade Linux to 17af2b39daf12870cac61ffc360e62bc35798afb or later.

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

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/0ba08c21c6a92e6512e73644555120427c9a49d4>
- patch: <https://git.kernel.org/stable/c/bc3889a39baf783c64c6d628bbb74d76ce164bb1>
- patch: <https://git.kernel.org/stable/c/17af2b39daf12870cac61ffc360e62bc35798afb>

## 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-56577>

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