{"id":"CVE-2024-46813","state":"PUBLISHED","title":"drm/amd/display: Check link_index before accessing dc->links[]","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amd/display: Check link_index before accessing dc->links[]\n\n[WHY & HOW]\ndc->links[] has max size of MAX_LINKS and NULL is return when trying to\naccess with out-of-bound index.\n\nThis fixes 3 OVERRUN and 1 RESOURCE_LEAK issues reported by Coverity.","publishedAt":"2024-09-27T12:35:55.786Z","updatedAt":"2026-10-30T12:19:22.335Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c","status":"affected","lessThan":"8ad4c2cf6c1af18f556e5c591fb313b2982ddf60","versionType":"git"},{"version":"4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c","status":"affected","lessThan":"032c5407a608ac3b2a98bf4fbda27d12c20c5887","versionType":"git"},{"version":"4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c","status":"affected","lessThan":"ac04759b4a002969cf0f1384f1b8bb2001cfa782","versionType":"git"},{"version":"4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c","status":"affected","lessThan":"8aa2864044b9d13e95fe224f32e808afbf79ecdf","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/display/dc/core/dc_link_exports.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.15","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.87","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.10.9","status":"unaffected","lessThanOrEqual":"6.10.*","versionType":"semver"},{"version":"6.11","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/display/dc/core/dc_link_exports.c"]}],"references":["https://git.kernel.org/stable/c/8ad4c2cf6c1af18f556e5c591fb313b2982ddf60","https://git.kernel.org/stable/c/032c5407a608ac3b2a98bf4fbda27d12c20c5887","https://git.kernel.org/stable/c/ac04759b4a002969cf0f1384f1b8bb2001cfa782","https://git.kernel.org/stable/c/8aa2864044b9d13e95fe224f32e808afbf79ecdf"],"weaknesses":[],"ingestedAt":"2026-10-30T12:36:04.432Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/46xxx/CVE-2024-46813.json","commit":"db8103c5921aac81d5d90efcf3745980dafabf49","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-46813","state":"PUBLISHED","datePublished":"2024-09-27T12:35:55.786Z","dateUpdated":"2026-10-30T12:19:22.335Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-09-11T15:12:18.283Z"},"containers":{"cna":{"title":"drm/amd/display: Check link_index before accessing dc->links[]","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amd/display: Check link_index before accessing dc->links[]\n\n[WHY & HOW]\ndc->links[] has max size of MAX_LINKS and NULL is return when trying to\naccess with out-of-bound index.\n\nThis fixes 3 OVERRUN and 1 RESOURCE_LEAK issues reported by Coverity."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c","status":"affected","lessThan":"8ad4c2cf6c1af18f556e5c591fb313b2982ddf60","versionType":"git"},{"version":"4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c","status":"affected","lessThan":"032c5407a608ac3b2a98bf4fbda27d12c20c5887","versionType":"git"},{"version":"4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c","status":"affected","lessThan":"ac04759b4a002969cf0f1384f1b8bb2001cfa782","versionType":"git"},{"version":"4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c","status":"affected","lessThan":"8aa2864044b9d13e95fe224f32e808afbf79ecdf","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/display/dc/core/dc_link_exports.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.15","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.87","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.10.9","status":"unaffected","lessThanOrEqual":"6.10.*","versionType":"semver"},{"version":"6.11","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/display/dc/core/dc_link_exports.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/8ad4c2cf6c1af18f556e5c591fb313b2982ddf60"},{"url":"https://git.kernel.org/stable/c/032c5407a608ac3b2a98bf4fbda27d12c20c5887"},{"url":"https://git.kernel.org/stable/c/ac04759b4a002969cf0f1384f1b8bb2001cfa782"},{"url":"https://git.kernel.org/stable/c/8aa2864044b9d13e95fe224f32e808afbf79ecdf"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The vulnerable code is in the amdgpu DC display driver, reached during local driver probe and subsequently exercised through the local DRM device node (/dev/dri/card*) via atomic ioctl HDCP operations. There is no network-facing path to dc_get_link_at_index().\nAC:L - On an affected platform (DCN3.1-class hardware with 4 USB4 DPIA links plus a VBIOS reporting enough connector indices to push link_count past MAX_LINKS) the out-of-bounds access occurs deterministically on every driver load, and the subsequent use of the corrupted ddc.handle is reached reliably by enabling HDCP. No unpredictable memory-layout or timing condition must be won.\nPR:L - The out-of-bounds read and type-confused write occur during unprivileged driver initialization, and the corrupted HDCP DDC handle is subsequently dereferenced through the Content Protection connector property, which a local user with access to /dev/dri can set via the DRM atomic ioctl. No root or CAP_SYS_ADMIN is required.\nUI:N - The out-of-bounds indexing happens automatically at driver probe with no victim action, and the follow-on HDCP DDC path is driven entirely by the attacker's own DRM ioctls.\nS:U - The out-of-bounds access and the resulting corruption are confined to kernel memory within the same security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - The out-of-bounds read pulls adjacent struct dc members (link_srv, current_state, res_pool, clk_mgr) and treats them as a struct dc_link, so subsequent field reads and the HDCP DDC read_dpcd/read_i2c calls interpret arbitrary kernel memory as link state, and the resulting memory corruption can be leveraged for further information disclosure.\nI:H - The type-confused pointer is written through (link->priv = aconnector, link->psr_settings.* = ...), corrupting a live kernel object such as struct link_service or dc_state that contains function pointers, giving a memory-corruption primitive exploitable for control-flow hijacking.\nA:H - Dereferencing an out-of-bounds pointer read as a struct dc_link, and corrupting adjacent live kernel structures, reliably produces a kernel oops/panic and leaves the display subsystem in an inconsistent state."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-30T12:19:22.335Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.15","versionEndExcluding":"6.1.191"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.15","versionEndExcluding":"6.6.87"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.15","versionEndExcluding":"6.10.9"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.15","versionEndExcluding":"6.11"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-09-29T14:18:36.575115Z","id":"CVE-2024-46813","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-29T14:18:48.301Z"}}]}}}