# CVE-2024-57978: media: imx-jpeg: Fix potential error pointer dereference in detach\_pm()

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-02-27 · Modified: 2026-05-23
- Aliases: UBUNTU-CVE-2024-57978, DEBIAN-CVE-2024-57978
- Record: https://cvemate.com/vulnerability/CVE-2024-57978 · JSON: https://cvemate.com/vulnerability/CVE-2024-57978/json

## Description

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

media: imx-jpeg: Fix potential error pointer dereference in detach_pm()

The proble is on the first line:

	if (jpeg->pd_dev[i] && !pm_runtime_suspended(jpeg->pd_dev[i]))

If jpeg->pd_dev[i] is an error pointer, then passing it to
pm_runtime_suspended() will lead to an Oops.  The other conditions
check for both error pointers and NULL, but it would be more clear to
use the IS_ERR_OR_NULL() check for that.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.222%, percentile 13.611%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 113)

- debian linux (Debian): \< 6.1.129-1 \| \< 6.12.13-1
- ubuntu linux (Ubuntu): \< 5.15.0-140.150
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 5.15.0-1084.91
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1084.91~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-fips (Ubuntu): \< 5.15.0-1084.91+fips1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1089.98
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.15 (Ubuntu): \< 5.15.0-1089.98~20.04.1
- ubuntu linux-azure-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.3 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 29)

- <https://git.kernel.org/stable/c/a32ba399a030853f2db45a90ba5474fdd3494aad>
- <https://git.kernel.org/stable/c/fde89fe11b44500bfcb2d405825b69a5df805d19>
- <https://git.kernel.org/stable/c/1b2af918bb714937a8be6cb637f528585461cd98>
- <https://git.kernel.org/stable/c/6e601a64f7777e2f78c02db1a8b5ba3b7c5e9e31>
- <https://git.kernel.org/stable/c/f0b8535a7885ed4fd0b11625addb5476cae0f845>
- <https://git.kernel.org/stable/c/1378ffec30367233152b7dbf4fa6a25ee98585d1>
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html>
- <https://ubuntu.com/security/CVE-2024-57978>
- <https://www.cve.org/CVERecord?id=CVE-2024-57978>
- <https://git.kernel.org/linus/1378ffec30367233152b7dbf4fa6a25ee98585d1>
- <https://ubuntu.com/security/notices/USN-7510-1>
- <https://ubuntu.com/security/notices/USN-7510-2>
- <https://ubuntu.com/security/notices/USN-7511-1>
- <https://ubuntu.com/security/notices/USN-7511-2>
- <https://ubuntu.com/security/notices/USN-7512-1>
- <https://ubuntu.com/security/notices/USN-7521-1>
- <https://ubuntu.com/security/notices/USN-7510-3>
- <https://ubuntu.com/security/notices/USN-7510-4>
- <https://ubuntu.com/security/notices/USN-7510-5>
- <https://ubuntu.com/security/notices/USN-7511-3>

---

Data as of 2026-12-05T04:44:38.720Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
