CVE-2025-38240 (GCVE-0-2025-38240)
Vulnerability from cvelistv5
Published
2025-04-18 07:01
Modified
2025-05-26 05:25
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: drm/mediatek: dp: drm_err => dev_err in HPD path to avoid NULL ptr The function mtk_dp_wait_hpd_asserted() may be called before the `mtk_dp->drm_dev` pointer is assigned in mtk_dp_bridge_attach(). Specifically it can be called via this callpath: - mtk_edp_wait_hpd_asserted - [panel probe] - dp_aux_ep_probe Using "drm" level prints anywhere in this callpath causes a NULL pointer dereference. Change the error message directly in mtk_dp_wait_hpd_asserted() to dev_err() to avoid this. Also change the error messages in mtk_dp_parse_capabilities(), which is called by mtk_dp_wait_hpd_asserted(). While touching these prints, also add the error code to them to make future debugging easier.
Impacted products
Vendor Product Version
Linux Linux Version: 7eacba9a083be65c0f251c19380ec01147c01ebc
Version: 7eacba9a083be65c0f251c19380ec01147c01ebc
Version: 7eacba9a083be65c0f251c19380ec01147c01ebc
Version: 7eacba9a083be65c0f251c19380ec01147c01ebc
Version: 7eacba9a083be65c0f251c19380ec01147c01ebc
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/gpu/drm/mediatek/mtk_dp.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "13ec849fd2eab808ee8eba2625df7ebea3b85edf",
              "status": "affected",
              "version": "7eacba9a083be65c0f251c19380ec01147c01ebc",
              "versionType": "git"
            },
            {
              "lessThan": "57a9fb47551b33cde7b76d17c0072c3b394f4620",
              "status": "affected",
              "version": "7eacba9a083be65c0f251c19380ec01147c01ebc",
              "versionType": "git"
            },
            {
              "lessThan": "2fda391ef7a701748abd7fa32232981b522c1e07",
              "status": "affected",
              "version": "7eacba9a083be65c0f251c19380ec01147c01ebc",
              "versionType": "git"
            },
            {
              "lessThan": "149a5c38436c229950cf1020992ce65c9549bc19",
              "status": "affected",
              "version": "7eacba9a083be65c0f251c19380ec01147c01ebc",
              "versionType": "git"
            },
            {
              "lessThan": "106a6de46cf4887d535018185ec528ce822d6d84",
              "status": "affected",
              "version": "7eacba9a083be65c0f251c19380ec01147c01ebc",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/gpu/drm/mediatek/mtk_dp.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.6"
            },
            {
              "lessThan": "6.6",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.87",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.23",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.13.*",
              "status": "unaffected",
              "version": "6.13.11",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.14.*",
              "status": "unaffected",
              "version": "6.14.2",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.15",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.87",
                  "versionStartIncluding": "6.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.23",
                  "versionStartIncluding": "6.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.13.11",
                  "versionStartIncluding": "6.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.14.2",
                  "versionStartIncluding": "6.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.15",
                  "versionStartIncluding": "6.6",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/mediatek: dp: drm_err =\u003e dev_err in HPD path to avoid NULL ptr\n\nThe function mtk_dp_wait_hpd_asserted() may be called before the\n`mtk_dp-\u003edrm_dev` pointer is assigned in mtk_dp_bridge_attach().\nSpecifically it can be called via this callpath:\n - mtk_edp_wait_hpd_asserted\n - [panel probe]\n - dp_aux_ep_probe\n\nUsing \"drm\" level prints anywhere in this callpath causes a NULL\npointer dereference. Change the error message directly in\nmtk_dp_wait_hpd_asserted() to dev_err() to avoid this. Also change the\nerror messages in mtk_dp_parse_capabilities(), which is called by\nmtk_dp_wait_hpd_asserted().\n\nWhile touching these prints, also add the error code to them to make\nfuture debugging easier."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-05-26T05:25:21.005Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/13ec849fd2eab808ee8eba2625df7ebea3b85edf"
        },
        {
          "url": "https://git.kernel.org/stable/c/57a9fb47551b33cde7b76d17c0072c3b394f4620"
        },
        {
          "url": "https://git.kernel.org/stable/c/2fda391ef7a701748abd7fa32232981b522c1e07"
        },
        {
          "url": "https://git.kernel.org/stable/c/149a5c38436c229950cf1020992ce65c9549bc19"
        },
        {
          "url": "https://git.kernel.org/stable/c/106a6de46cf4887d535018185ec528ce822d6d84"
        }
      ],
      "title": "drm/mediatek: dp: drm_err =\u003e dev_err in HPD path to avoid NULL ptr",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2025-38240",
    "datePublished": "2025-04-18T07:01:32.338Z",
    "dateReserved": "2025-04-16T04:51:23.996Z",
    "dateUpdated": "2025-05-26T05:25:21.005Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2025-38240\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-04-18T07:15:43.510\",\"lastModified\":\"2025-04-21T14:23:45.950\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\ndrm/mediatek: dp: drm_err =\u003e dev_err in HPD path to avoid NULL ptr\\n\\nThe function mtk_dp_wait_hpd_asserted() may be called before the\\n`mtk_dp-\u003edrm_dev` pointer is assigned in mtk_dp_bridge_attach().\\nSpecifically it can be called via this callpath:\\n - mtk_edp_wait_hpd_asserted\\n - [panel probe]\\n - dp_aux_ep_probe\\n\\nUsing \\\"drm\\\" level prints anywhere in this callpath causes a NULL\\npointer dereference. Change the error message directly in\\nmtk_dp_wait_hpd_asserted() to dev_err() to avoid this. Also change the\\nerror messages in mtk_dp_parse_capabilities(), which is called by\\nmtk_dp_wait_hpd_asserted().\\n\\nWhile touching these prints, also add the error code to them to make\\nfuture debugging easier.\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: drm/mediatek: dp: drm_err =\u0026gt; dev_err en la ruta HPD para evitar un puntero nulo. La funci\u00f3n mtk_dp_wait_hpd_asserted() puede llamarse antes de asignar el puntero `mtk_dp-\u0026gt;drm_dev` en mtk_dp_bridge_attach(). Espec\u00edficamente, se puede llamar a trav\u00e9s de esta ruta de llamada: - mtk_edp_wait_hpd_asserted - [panel probe] - dp_aux_ep_probe El uso de impresiones de nivel \\\"drm\\\" en cualquier parte de esta ruta de llamada provoca una desreferencia del puntero nulo. Cambie el mensaje de error directamente en mtk_dp_wait_hpd_asserted() a dev_err() para evitar esto. Cambie tambi\u00e9n los mensajes de error en mtk_dp_parse_capabilities(), que es llamado por mtk_dp_wait_hpd_asserted(). Al tocar estas impresiones, agregue tambi\u00e9n el c\u00f3digo de error para facilitar la depuraci\u00f3n futura.\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/106a6de46cf4887d535018185ec528ce822d6d84\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/13ec849fd2eab808ee8eba2625df7ebea3b85edf\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/149a5c38436c229950cf1020992ce65c9549bc19\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/2fda391ef7a701748abd7fa32232981b522c1e07\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/57a9fb47551b33cde7b76d17c0072c3b394f4620\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…