CVE-2024-57978

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

No CVSS score yet EPSS 0.22%

Published 27 Feb 2025 Updated 23 May 2026 CNA: Linux

Check your servers for CVE-2024-57978

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-57978 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 13.5% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from f3c4e088ec01cae45931a18ddf7cae0f4d72e1c5, before a32ba399a030853f2db45a90ba5474fdd3494aad
affected from 12914fd765ba4f9d6a9a50439e8dd2e9f91423f2, before fde89fe11b44500bfcb2d405825b69a5df805d19
affected from b7a830bbc25da0f641e3ef2bac3b1766b2777a8b, before 1b2af918bb714937a8be6cb637f528585461cd98
affected from 2f86d104539fab9181ea7b5721f40e7b92a8bf67, before 6e601a64f7777e2f78c02db1a8b5ba3b7c5e9e31
affected from fd0af4cd35da0eb550ef682b71cda70a4e36f6b9, before f0b8535a7885ed4fd0b11625addb5476cae0f845
affected from fd0af4cd35da0eb550ef682b71cda70a4e36f6b9, before 1378ffec30367233152b7dbf4fa6a25ee98585d1
affected from 5.15.174, before 5.15.179
affected from 6.1.120, before 6.1.129
affected from 6.6.64, before 6.6.76
affected from 6.12.4, before 6.12.13
Other versions: unaffected
Linux
affected 6.13
unaffected before 6.13
unaffected from 5.15.179 up to and including 5.15.*
unaffected from 6.1.129 up to and including 6.1.*
unaffected from 6.6.76 up to and including 6.6.*
unaffected from 6.12.13 up to and including 6.12.*
unaffected from 6.13.2 up to and including 6.13.*
unaffected 6.14 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-57978 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-57978

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2024-57978
trivy image --scanners vuln IMAGE | grep CVE-2024-57978

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2024-57978 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.