Lucene search

K
cvelistLinuxCVELIST:CVE-2024-45015
HistorySep 11, 2024 - 3:13 p.m.

CVE-2024-45015 drm/msm/dpu: move dpu_encoder's connector assignment to atomic_enable()

2024-09-1115:13:51
Linux
www.cve.org
2
linux kernel
drm/msm/dpu
atomic_enable
atomic_disable
null ptr access
patchwork
cve

EPSS

0

Percentile

5.1%

In the Linux kernel, the following vulnerability has been resolved:

drm/msm/dpu: move dpu_encoder’s connector assignment to atomic_enable()

For cases where the crtc’s connectors_changed was set without enable/active
getting toggled , there is an atomic_enable() call followed by an
atomic_disable() but without an atomic_mode_set().

This results in a NULL ptr access for the dpu_encoder_get_drm_fmt() call in
the atomic_enable() as the dpu_encoder’s connector was cleared in the
atomic_disable() but not re-assigned as there was no atomic_mode_set() call.

Fix the NULL ptr access by moving the assignment for atomic_enable() and also
use drm_atomic_get_new_connector_for_encoder() to get the connector from
the atomic_state.

Patchwork: https://patchwork.freedesktop.org/patch/606729/

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c"
    ],
    "versions": [
      {
        "version": "25fdd5933e4c",
        "lessThan": "3fb61718bcbe",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "25fdd5933e4c",
        "lessThan": "3bacf814b6a6",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "25fdd5933e4c",
        "lessThan": "aedf02e46eb5",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c"
    ],
    "versions": [
      {
        "version": "4.19",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "4.19",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.48",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.10.7",
        "lessThanOrEqual": "6.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.11",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

EPSS

0

Percentile

5.1%

Related for CVELIST:CVE-2024-45015