{
  "id": "CVE-2025-21985",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-21985",
  "published_at": "2025-04-01T15:47:12.103Z",
  "title": "drm/amd/display: Fix out-of-bound accesses",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amd/display: Fix out-of-bound accesses\n\n[WHAT \u0026 HOW]\nhpo_stream_to_link_encoder_mapping has size MAX_HPO_DP2_ENCODERS(=4),\nbut location can have size up to 6. As a result, it is necessary to\ncheck location against MAX_HPO_DP2_ENCODERS.\n\nSimiliarly, disp_cfg_stream_location can be used as an array index which\nshould be 0..5, so the ASSERT's conditions should be less without equal.",
  "cwe": "CWE-125",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.14:rc1:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8,
    "nvd": 7.1
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c, \u003c 36793d90d76f667d26c6dd025571481ee0c96abc",
          "\u003e= 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c, \u003c 9aedc776b11038f04f4641241bb7e877781e4aa4",
          "\u003e= 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c, \u003c 8adbb2a98b00926315fd513b5fe2596b5716b82d"
        ],
        "fixed_in": [
          "36793d90d76f667d26c6dd025571481ee0c96abc",
          "9aedc776b11038f04f4641241bb7e877781e4aa4",
          "8adbb2a98b00926315fd513b5fe2596b5716b82d"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "4.15"
        ],
        "fixed_in": [
          "0",
          "6.12.20",
          "6.13.8",
          "6.14"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 36793d90d76f667d26c6dd025571481ee0c96abc or 9aedc776b11038f04f4641241bb7e877781e4aa4 or 8adbb2a98b00926315fd513b5fe2596b5716b82d or later.",
      "Upgrade Linux to 0 or 6.12.20 or 6.13.8 or 6.14 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
