GCVE Workshop - 22 September 2026 (14:00-18:00), Luxembourg Before The Vulnopticon Conference - Registration

CVE-2024-57978 (GCVE-0-2024-57978)

Vulnerability from cvelistv5 – Published: 2025-02-27 02:07 – Updated: 2026-05-23 15:56
VLAI
Title
media: imx-jpeg: Fix potential error pointer dereference in detach_pm()
Summary
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.
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: f3c4e088ec01cae45931a18ddf7cae0f4d72e1c5 , < a32ba399a030853f2db45a90ba5474fdd3494aad (git)
Affected: 12914fd765ba4f9d6a9a50439e8dd2e9f91423f2 , < fde89fe11b44500bfcb2d405825b69a5df805d19 (git)
Affected: b7a830bbc25da0f641e3ef2bac3b1766b2777a8b , < 1b2af918bb714937a8be6cb637f528585461cd98 (git)
Affected: 2f86d104539fab9181ea7b5721f40e7b92a8bf67 , < 6e601a64f7777e2f78c02db1a8b5ba3b7c5e9e31 (git)
Affected: fd0af4cd35da0eb550ef682b71cda70a4e36f6b9 , < f0b8535a7885ed4fd0b11625addb5476cae0f845 (git)
Affected: fd0af4cd35da0eb550ef682b71cda70a4e36f6b9 , < 1378ffec30367233152b7dbf4fa6a25ee98585d1 (git)
Affected: 5.15.174 , < 5.15.179 (semver)
Affected: 6.1.120 , < 6.1.129 (semver)
Affected: 6.6.64 , < 6.6.76 (semver)
Affected: 6.12.4 , < 6.12.13 (semver)
guessed Create a notification for this product.
Linux Linux Affected: 6.13
Unaffected: 0 , < 6.13 (semver)
Unaffected: 5.15.179 , ≤ 5.15.* (semver)
Unaffected: 6.1.129 , ≤ 6.1.* (semver)
Unaffected: 6.6.76 , ≤ 6.6.* (semver)
Unaffected: 6.12.13 , ≤ 6.12.* (semver)
Unaffected: 6.13.2 , ≤ 6.13.* (semver)
Unaffected: 6.14 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "providerMetadata": {
          "dateUpdated": "2025-11-03T19:32:53.506Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "url": "https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html"
          }
        ],
        "title": "CVE Program Container"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "a32ba399a030853f2db45a90ba5474fdd3494aad",
              "status": "affected",
              "version": "f3c4e088ec01cae45931a18ddf7cae0f4d72e1c5",
              "versionType": "git"
            },
            {
              "lessThan": "fde89fe11b44500bfcb2d405825b69a5df805d19",
              "status": "affected",
              "version": "12914fd765ba4f9d6a9a50439e8dd2e9f91423f2",
              "versionType": "git"
            },
            {
              "lessThan": "1b2af918bb714937a8be6cb637f528585461cd98",
              "status": "affected",
              "version": "b7a830bbc25da0f641e3ef2bac3b1766b2777a8b",
              "versionType": "git"
            },
            {
              "lessThan": "6e601a64f7777e2f78c02db1a8b5ba3b7c5e9e31",
              "status": "affected",
              "version": "2f86d104539fab9181ea7b5721f40e7b92a8bf67",
              "versionType": "git"
            },
            {
              "lessThan": "f0b8535a7885ed4fd0b11625addb5476cae0f845",
              "status": "affected",
              "version": "fd0af4cd35da0eb550ef682b71cda70a4e36f6b9",
              "versionType": "git"
            },
            {
              "lessThan": "1378ffec30367233152b7dbf4fa6a25ee98585d1",
              "status": "affected",
              "version": "fd0af4cd35da0eb550ef682b71cda70a4e36f6b9",
              "versionType": "git"
            },
            {
              "lessThan": "5.15.179",
              "status": "affected",
              "version": "5.15.174",
              "versionType": "semver"
            },
            {
              "lessThan": "6.1.129",
              "status": "affected",
              "version": "6.1.120",
              "versionType": "semver"
            },
            {
              "lessThan": "6.6.76",
              "status": "affected",
              "version": "6.6.64",
              "versionType": "semver"
            },
            {
              "lessThan": "6.12.13",
              "status": "affected",
              "version": "6.12.4",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.13"
            },
            {
              "lessThan": "6.13",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.179",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.129",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.76",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.13",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.13.*",
              "status": "unaffected",
              "version": "6.13.2",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.14",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.179",
                  "versionStartIncluding": "5.15.174",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.129",
                  "versionStartIncluding": "6.1.120",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.76",
                  "versionStartIncluding": "6.6.64",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.13",
                  "versionStartIncluding": "6.12.4",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.13.2",
                  "versionStartIncluding": "6.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.14",
                  "versionStartIncluding": "6.13",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "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] \u0026\u0026 !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."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-05-23T15:56:28.405Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/a32ba399a030853f2db45a90ba5474fdd3494aad"
        },
        {
          "url": "https://git.kernel.org/stable/c/fde89fe11b44500bfcb2d405825b69a5df805d19"
        },
        {
          "url": "https://git.kernel.org/stable/c/1b2af918bb714937a8be6cb637f528585461cd98"
        },
        {
          "url": "https://git.kernel.org/stable/c/6e601a64f7777e2f78c02db1a8b5ba3b7c5e9e31"
        },
        {
          "url": "https://git.kernel.org/stable/c/f0b8535a7885ed4fd0b11625addb5476cae0f845"
        },
        {
          "url": "https://git.kernel.org/stable/c/1378ffec30367233152b7dbf4fa6a25ee98585d1"
        }
      ],
      "title": "media: imx-jpeg: Fix potential error pointer dereference in detach_pm()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2024-57978",
    "datePublished": "2025-02-27T02:07:05.593Z",
    "dateReserved": "2025-02-27T02:04:28.912Z",
    "dateUpdated": "2026-05-23T15:56:28.405Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2024-57978",
      "date": "2026-09-19",
      "epss": "0.00219",
      "percentile": "0.12677"
    },
    "microsoft_vex": {
      "current_release_date": "2026-02-18T01:47:39.000Z",
      "cve": "CVE-2024-57978",
      "id": "msrc_CVE-2024-57978",
      "initial_release_date": "2025-02-02T00:00:00.000Z",
      "product_status:fixed": "5",
      "product_status:known_affected": "5",
      "source": "Microsoft CSAF VEX",
      "status": "final",
      "title": "media: imx-jpeg: Fix potential error pointer dereference in detach_pm()",
      "url": "https://msrc.microsoft.com/csaf/vex/2025/msrc_cve-2024-57978.json",
      "version": "2"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "a32ba399a030853f2db45a90ba5474fdd3494aad",
                    "status": "affected",
                    "version": "f3c4e088ec01cae45931a18ddf7cae0f4d72e1c5",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "fde89fe11b44500bfcb2d405825b69a5df805d19",
                    "status": "affected",
                    "version": "12914fd765ba4f9d6a9a50439e8dd2e9f91423f2",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "1b2af918bb714937a8be6cb637f528585461cd98",
                    "status": "affected",
                    "version": "b7a830bbc25da0f641e3ef2bac3b1766b2777a8b",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "6e601a64f7777e2f78c02db1a8b5ba3b7c5e9e31",
                    "status": "affected",
                    "version": "2f86d104539fab9181ea7b5721f40e7b92a8bf67",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "f0b8535a7885ed4fd0b11625addb5476cae0f845",
                    "status": "affected",
                    "version": "fd0af4cd35da0eb550ef682b71cda70a4e36f6b9",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "1378ffec30367233152b7dbf4fa6a25ee98585d1",
                    "status": "affected",
                    "version": "fd0af4cd35da0eb550ef682b71cda70a4e36f6b9",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "5.15.179",
                    "status": "affected",
                    "version": "5.15.174",
                    "versionType": "semver"
                  },
                  {
                    "lessThan": "6.1.129",
                    "status": "affected",
                    "version": "6.1.120",
                    "versionType": "semver"
                  },
                  {
                    "lessThan": "6.6.76",
                    "status": "affected",
                    "version": "6.6.64",
                    "versionType": "semver"
                  },
                  {
                    "lessThan": "6.12.13",
                    "status": "affected",
                    "version": "6.12.4",
                    "versionType": "semver"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "6.13"
                  },
                  {
                    "lessThan": "6.13",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.15.*",
                    "status": "unaffected",
                    "version": "5.15.179",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.1.*",
                    "status": "unaffected",
                    "version": "6.1.129",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.6.*",
                    "status": "unaffected",
                    "version": "6.6.76",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.12.*",
                    "status": "unaffected",
                    "version": "6.12.13",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.13.*",
                    "status": "unaffected",
                    "version": "6.13.2",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "6.14",
                    "versionType": "original_commit_for_fix"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "configurations": [
          {
            "nodes": [
              {
                "cpeMatch": [
                  {
                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                    "matchCriteriaId": "5EDFC1D5-0414-42C6-B6E2-1101700AA7DE",
                    "versionEndExcluding": "5.16",
                    "versionStartIncluding": "5.15.174",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                    "matchCriteriaId": "022C9A3F-3004-4D03-BF8F-A31E7351A0B2",
                    "versionEndExcluding": "6.1.129",
                    "versionStartIncluding": "6.1.120",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                    "matchCriteriaId": "BA33125F-C077-4F0C-BD93-C9E062D3DE0B",
                    "versionEndExcluding": "6.6.76",
                    "versionStartIncluding": "6.6.64",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                    "matchCriteriaId": "7B8A34D0-8A9B-40E9-962E-8FE8A315C386",
                    "versionEndExcluding": "6.12.13",
                    "versionStartIncluding": "6.12.4",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                    "matchCriteriaId": "6D4116B1-1BFD-4F23-BA84-169CC05FC5A3",
                    "versionEndExcluding": "6.13.2",
                    "versionStartIncluding": "6.13",
                    "vulnerable": true
                  }
                ],
                "negate": false,
                "operator": "OR"
              }
            ]
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "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] \u0026\u0026 !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."
          },
          {
            "lang": "es",
            "value": "En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: media: imx-jpeg: Se corrige la posible desreferencia del puntero de error en detach_pm() El problema est\u00e1 en la primera l\u00ednea: if (jpeg-\u0026gt;pd_dev[i] \u0026amp;\u0026amp; !pm_runtime_suspended(jpeg-\u0026gt;pd_dev[i])) Si jpeg-\u0026gt;pd_dev[i] es un puntero de error, entonces pasarlo a pm_runtime_suspended() provocar\u00e1 un Oops. Las otras condiciones comprueban tanto los punteros de error como NULL, pero ser\u00eda m\u00e1s claro usar la comprobaci\u00f3n IS_ERR_OR_NULL() para eso."
          }
        ],
        "id": "CVE-2024-57978",
        "lastModified": "2026-06-17T08:14:21.720",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "LOW",
                "attackVector": "LOCAL",
                "availabilityImpact": "HIGH",
                "baseScore": 5.5,
                "baseSeverity": "MEDIUM",
                "confidentialityImpact": "NONE",
                "integrityImpact": "NONE",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 1.8,
              "impactScore": 3.6,
              "source": "nvd@nist.gov",
              "type": "Primary"
            }
          ]
        },
        "published": "2025-02-27T02:15:10.990",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "tags": [
              "Patch"
            ],
            "url": "https://git.kernel.org/stable/c/1378ffec30367233152b7dbf4fa6a25ee98585d1"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "tags": [
              "Patch"
            ],
            "url": "https://git.kernel.org/stable/c/1b2af918bb714937a8be6cb637f528585461cd98"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "tags": [
              "Patch"
            ],
            "url": "https://git.kernel.org/stable/c/6e601a64f7777e2f78c02db1a8b5ba3b7c5e9e31"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/a32ba399a030853f2db45a90ba5474fdd3494aad"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "tags": [
              "Patch"
            ],
            "url": "https://git.kernel.org/stable/c/f0b8535a7885ed4fd0b11625addb5476cae0f845"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "tags": [
              "Patch"
            ],
            "url": "https://git.kernel.org/stable/c/fde89fe11b44500bfcb2d405825b69a5df805d19"
          },
          {
            "source": "af854a3a-2127-422b-91ae-364da2661108",
            "url": "https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Modified",
        "weaknesses": [
          {
            "description": [
              {
                "lang": "en",
                "value": "CWE-476"
              }
            ],
            "source": "nvd@nist.gov",
            "type": "Primary"
          }
        ]
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-06-29T22:59:22+00:00",
      "cve": "CVE-2024-57978",
      "id": "CVE-2024-57978",
      "initial_release_date": "2024-01-01T00:00:00+00:00",
      "product_status:known_not_affected": "274",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: media: imx-jpeg: Fix potential error pointer dereference in detach_pm()",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-57978.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-08-31T00:25:34Z",
      "cve": "CVE-2024-57978",
      "id": "CVE-2024-57978",
      "initial_release_date": "2025-02-28T02:23:35Z",
      "product_status:known_affected": "394",
      "product_status:known_not_affected": "410",
      "product_status:recommended": "357",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2024-57978",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2024-57978.json",
      "version": "51"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…