Skip to content
Heist/ feed
High

drm/msm/dp: Drop aux devices together with DP controller

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: drm/msm/dp: Drop aux devices together with DP controller Using devres to depopulate the aux bus made sure that upon a probe deferral the EDP panel device would be destroyed and recreated upon next attempt. But the struct device which the devres is tied to is the DPUs (drm_dev->dev), which may be happen after the DP controller is torn down. Indications of this can be seen in the commonly seen EDID-hexdump full of zeros in the log, or the occasional/rare KASAN fault where the panel's attempt to read the EDID information causes a use after free on DP resources. It's tempting to move the devres to the DP controller's struct device, but the resources used by the device(s) on the aux bus are explicitly torn down in the error path. The KASAN-reported use-after-free also remains, as the DP aux "module" explicitly frees its devres-allocated memory in this code path. As such, explicitly depopulate the aux bus in the error path, and in the component unbind path, to avoid these issues. Patchwork: https://patchwork.freedesktop.org/patch/542163/

Announced Source revision 1
Original source ↗

CVE-2023-53851

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2023-53851

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "2b57f726611e294dc4297dd48eb8c98ef1938e82",
        "lessThan": "ff1338a3bfaa2f35b5f49a434f2ad6884b75fafe",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "2b57f726611e294dc4297dd48eb8c98ef1938e82",
        "lessThan": "e09ed06938807cb113cddd0708ed74bd8cdaff33",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "2b57f726611e294dc4297dd48eb8c98ef1938e82",
        "lessThan": "2fde37445807e6e6d7981402d0bf1be0e5d81291",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "2b57f726611e294dc4297dd48eb8c98ef1938e82",
        "lessThan": "a7bfb2ad2184a1fba78be35209b6019aa8cc8d4d",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "8768663188e4169333f66583e4d2432e65c421df",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "6.0.7",
        "lessThan": "6.1",
        "versionType": "semver"
      }
    ],
    "programFiles": [
      "drivers/gpu/drm/msm/dp/dp_display.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "6.1"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "6.1",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.1.189",
        "versionType": "semver",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.3.13",
        "versionType": "semver",
        "lessThanOrEqual": "6.3.*"
      },
      {
        "status": "unaffected",
        "version": "6.4.4",
        "versionType": "semver",
        "lessThanOrEqual": "6.4.*"
      },
      {
        "status": "unaffected",
        "version": "6.5",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/gpu/drm/msm/dp/dp_display.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2023-53851

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#8220 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement