Critical Error Pointer Dereference in Linux Kernel's imx-jpeg Package
Summary
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 ↓
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.
No signup required · Results in about 60 seconds
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 →
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.