{"id":"CVE-2024-57978","summary":"media: imx-jpeg: Fix potential error pointer dereference in detach_pm()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: imx-jpeg: Fix potential error pointer dereference in detach_pm()\n\nThe proble is on the first line:\n\n\tif (jpeg-\u003epd_dev[i] && !pm_runtime_suspended(jpeg-\u003epd_dev[i]))\n\nIf jpeg-\u003epd_dev[i] is an error pointer, then passing it to\npm_runtime_suspended() will lead to an Oops.  The other conditions\ncheck for both error pointers and NULL, but it would be more clear to\nuse the IS_ERR_OR_NULL() check for that.","modified":"2026-03-20T12:41:05.167056Z","published":"2025-02-27T02:07:05.593Z","related":["SUSE-SU-2025:01919-1","SUSE-SU-2025:1177-1","SUSE-SU-2025:1178-1","SUSE-SU-2025:1180-1","SUSE-SU-2025:20190-1","SUSE-SU-2025:20192-1","SUSE-SU-2025:20260-1","SUSE-SU-2025:20270-1","USN-7521-2"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/57xxx/CVE-2024-57978.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1378ffec30367233152b7dbf4fa6a25ee98585d1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1b2af918bb714937a8be6cb637f528585461cd98"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6e601a64f7777e2f78c02db1a8b5ba3b7c5e9e31"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a32ba399a030853f2db45a90ba5474fdd3494aad"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f0b8535a7885ed4fd0b11625addb5476cae0f845"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fde89fe11b44500bfcb2d405825b69a5df805d19"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/57xxx/CVE-2024-57978.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-57978"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"f3c4e088ec01cae45931a18ddf7cae0f4d72e1c5"},{"fixed":"a32ba399a030853f2db45a90ba5474fdd3494aad"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"12914fd765ba4f9d6a9a50439e8dd2e9f91423f2"},{"fixed":"fde89fe11b44500bfcb2d405825b69a5df805d19"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"b7a830bbc25da0f641e3ef2bac3b1766b2777a8b"},{"fixed":"1b2af918bb714937a8be6cb637f528585461cd98"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"2f86d104539fab9181ea7b5721f40e7b92a8bf67"},{"fixed":"6e601a64f7777e2f78c02db1a8b5ba3b7c5e9e31"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"fd0af4cd35da0eb550ef682b71cda70a4e36f6b9"},{"fixed":"f0b8535a7885ed4fd0b11625addb5476cae0f845"},{"fixed":"1378ffec30367233152b7dbf4fa6a25ee98585d1"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-57978.json"}}],"schema_version":"1.7.5"}