Critical Error Pointer Dereference in Linux Kernel's imx-jpeg Package

linux Updated 02 Oct 2025

Summary

27/02/2025
N/A
Yes i
Medium
5.5

CVE-2024-57978: 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(jp... Affects linux versions < 6.1.129-1. Fixed in 6.1.129-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Linux kernel is a core component of many operating systems, providing essential services for hardware management and system resources. The imx-jpeg package is specifically designed for handling JPEG image encoding and decoding on i.MX processors. This package plays a vital role in multimedia applications, enabling efficient image processing. However, it is susceptible to vulnerabilities that can lead to system crashes or unexpected behavior, particularly in the context of error handling.

Vulnerability Detail

The vulnerability identified as CVE-2024-57978 arises from a potential error pointer dereference in the detach_pm() function of the imx-jpeg package. The issue occurs when the code checks if a device pointer is valid before passing it to the pm_runtime_suspended() function. If the pointer is an error pointer, this can lead to a system crash (Oops). Although the code checks for NULL pointers, it does not adequately handle error pointers, which can compromise system stability and security.

How To Fix

Minimum fixed version

6.1.129-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

Currently, there are no specific workarounds mentioned for this vulnerability. However, users are advised to avoid using the affected functionality until the package is updated.

Conclusion

CVE-2024-57978 is a critical vulnerability affecting the imx-jpeg package in the Linux kernel, which can lead to serious system issues if not addressed. Users are encouraged to update their systems promptly to ensure security and stability. Utilizing tools like Vulert can help in monitoring vulnerabilities effectively.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2024-57978 is a vulnerability in the Linux kernel's imx-jpeg package that can lead to a system crash due to an error pointer dereference.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without needing to sign up.

If exploited, this vulnerability can lead to system instability, crashes, and potential security breaches.

Yes, a patch has been released. Users should update their Linux kernel to the latest version to mitigate this vulnerability.

If an immediate update is not possible, it is advisable to limit the use of the imx-jpeg functionality until the system can be patched.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

6.1.129-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback