{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2024-46816",
  "modified": "2026-10-09T11:39:44Z",
  "upstream": [
    "CVE-2024-46816"
  ],
  "published": "2024-09-27T12:36:20Z",
  "summary": "drm/amd/display: Stop amdgpu_dm initialize when link nums greater than max_links",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amd/display: Stop amdgpu_dm initialize when link nums greater than max_links\n\n[Why]\nCoverity report OVERRUN warning. There are\nonly max_links elements within dc->links. link\ncount could up to AMDGPU_DM_MAX_DISPLAY_INDEX 31.\n\n[How]\nMake sure link count less than max_links.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "Raspberry Pi OS:12",
        "name": "linux"
      },
      "versions": [
        "1:6.1.47-1+rpt4"
      ],
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-2712",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v6",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7l",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v8",
            "binary_version": "1:6.1.47-1+rpt4"
          }
        ]
      },
      "database_specific": {
        "per_version": {
          "1:6.1.47-1+rpt4": {
            "linux_commit": "655fc658a15ae7a6f37103754adb39ba52a9a14e",
            "upstream_version": "6.1.47",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.1.135",
            "compiled_filter": false
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2024-46816"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/e2411b6abf6e5d6c33d0450846673cdf536f0ba4"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/e3cd0d8362de47f613bfdf315b3f3a9ab71e66bf"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/13080d052c995aee14695a5b740c245121eb2bcc"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/c84632096722fd31251f0957fafc9e90d9a247fd"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/36c39a8dcce210649f2f45f252abaa09fcc1ae87"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/cf8b16857db702ceb8d52f9219a4613363e2b1cf"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-08-05T11:52:36Z",
    "severity": {
      "source": "kernel CNA",
      "cvss_v3_score": 7.8,
      "cvss_v3_severity": "High",
      "scenario": "AV:L - The overrun occurs in the amdgpu display-manager probe path (`dm_hw_init` \u2192 `amdgpu_dm_init` \u2192 `amdgpu_dm_initialize_drm_device`), reachable only on the local system via driver bind/module load on affected hardware, with no network or remote-peer input involved.\nAC:L - On an affected configuration (USB4 DPIA-capable DCN31/314/35 part whose connector count plus DPIA and virtual links exceeds MAX_LINKS=12) the out-of-bounds indexing happens deterministically every probe \u2014 there is no race and no memory-layout lottery to win.\nPR:L - Consistent with sibling amdgpu display OOB scoring, a low-privileged local user is credited with reaching the driver initialization path; no root-only capability check gates the vulnerable loop itself.\nUI:N - The faulty loop executes automatically during GPU driver initialization with no victim action required \u2014 no file must be opened, no display attached, no configuration performed.\nS:U - The out-of-bounds access and its consequences are confined to kernel memory within the same security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - Indices 12\u201331 read past `dc->links[MAX_LINKS]` into adjacent `struct dc` members (`link_srv`, `current_state`, `res_pool`, `clk_mgr`), disclosing kernel pointers, and the resulting type-confused `dc_link *` is dereferenced for further wide reads (`link->dpcd_caps`, `link->type`).\nI:H - The out-of-bounds `link` pointer is written through \u2014 `link->psr_settings.psr_feature_enabled/psr_version` and the writes inside `dc_link_detect()`/`amdgpu_dm_set_psr_caps()` \u2014 so unrelated kernel objects are corrupted at attacker-unintended offsets, a classic type-confusion write primitive.\nA:H - Dereferencing garbage taken from beyond the array as a `struct dc_link *` reliably faults or corrupts core display-manager state during initialization, producing a kernel oops/panic at boot."
    }
  }
}
