Skip to content
Heist/ feed
High

drm/amd/display: Do not skip unrelated mode changes in DSC validation

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Do not skip unrelated mode changes in DSC validation Starting with commit 17ce8a6907f7 ("drm/amd/display: Add dsc pre-validation in atomic check"), amdgpu resets the CRTC state mode_changed flag to false when recomputing the DSC configuration results in no timing change for a particular stream. However, this is incorrect in scenarios where a change in MST/DSC configuration happens in the same KMS commit as another (unrelated) mode change. For example, the integrated panel of a laptop may be configured differently (e.g., HDR enabled/disabled) depending on whether external screens are attached. In this case, plugging in external DP-MST screens may result in the mode_changed flag being dropped incorrectly for the integrated panel if its DSC configuration did not change during precomputation in pre_validate_dsc(). At this point, however, dm_update_crtc_state() has already created new streams for CRTCs with DSC-independent mode changes. In turn, amdgpu_dm_commit_streams() will never release the old stream, resulting in a memory leak. amdgpu_dm_atomic_commit_tail() will never acquire a reference to the new stream either, which manifests as a use-after-free when the stream gets disabled later on: BUG: KASAN: use-after-free in dc_stream_release+0x25/0x90 [amdgpu] Write of size 4 at addr ffff88813d836524 by task kworker/9:9/29977 Workqueue: events drm_mode_rmfb_work_fn Call Trace: dump_stack_lvl+0x6e/

Announced Group revision 1
Original source ↗

CVE-2026-31488

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-2026-31488

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": "17ce8a6907f77b7ac97ddaa071d8a1f6e06ce85b",
        "lessThan": "da1d0ed31e9802fd99384f43cc63678a5a11cb41",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "17ce8a6907f77b7ac97ddaa071d8a1f6e06ce85b",
        "lessThan": "21159d8b335a6b9f44cbb506733013a902ae2da4",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "17ce8a6907f77b7ac97ddaa071d8a1f6e06ce85b",
        "lessThan": "10862e344b4d6434642a48c87d765813fc0b0ba7",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "17ce8a6907f77b7ac97ddaa071d8a1f6e06ce85b",
        "lessThan": "8a5edc97fd9c6415ff2eff872748439a97e3c3d8",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "17ce8a6907f77b7ac97ddaa071d8a1f6e06ce85b",
        "lessThan": "111208b5b7ebcdadb3f922cc52d8425f0fa91b33",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "17ce8a6907f77b7ac97ddaa071d8a1f6e06ce85b",
        "lessThan": "aed3d041ab061ec8a64f50a3edda0f4db7280025",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c",
      "drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h",
      "drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "5.18"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "5.18",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.1.175",
        "versionType": "semver",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.140",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.80",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.18.21",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "6.19.11",
        "versionType": "semver",
        "lessThanOrEqual": "6.19.*"
      },
      {
        "status": "unaffected",
        "version": "7.0",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c",
      "drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h",
      "drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-31488

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

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