{"id":"CVE-2024-46730","state":"PUBLISHED","title":"drm/amd/display: Ensure array index tg_inst won't be -1","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amd/display: Ensure array index tg_inst won't be -1\n\n[WHY & HOW]\ntg_inst will be a negative if timing_generator_count equals 0, which\nshould be checked before used.\n\nThis fixes 2 OVERRUN issues reported by Coverity.","publishedAt":"2024-09-18T06:32:25.524Z","updatedAt":"2026-10-30T12:19:15.979Z","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":"1de84b6d65a7df30b5edc7208f828c4ecc8a7154","versionType":"git"},{"version":"4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c","status":"affected","lessThan":"15403445b873a4ce45b2d4ecfb5928a025297282","versionType":"git"},{"version":"4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c","status":"affected","lessThan":"a64284b9e1999ad5580debced4bc6d6adb28aad4","versionType":"git"},{"version":"4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c","status":"affected","lessThan":"687fe329f18ab0ab0496b20ed2cb003d4879d931","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/display/dc/core/dc_resource.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.158","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_resource.c"]}],"references":["https://git.kernel.org/stable/c/1de84b6d65a7df30b5edc7208f828c4ecc8a7154","https://git.kernel.org/stable/c/15403445b873a4ce45b2d4ecfb5928a025297282","https://git.kernel.org/stable/c/a64284b9e1999ad5580debced4bc6d6adb28aad4","https://git.kernel.org/stable/c/687fe329f18ab0ab0496b20ed2cb003d4879d931"],"weaknesses":[],"ingestedAt":"2026-10-30T12:36:04.432Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/46xxx/CVE-2024-46730.json","commit":"db8103c5921aac81d5d90efcf3745980dafabf49","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-46730","state":"PUBLISHED","datePublished":"2024-09-18T06:32:25.524Z","dateUpdated":"2026-10-30T12:19:15.979Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-09-11T15:12:18.256Z"},"containers":{"cna":{"title":"drm/amd/display: Ensure array index tg_inst won't be -1","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amd/display: Ensure array index tg_inst won't be -1\n\n[WHY & HOW]\ntg_inst will be a negative if timing_generator_count equals 0, which\nshould be checked before used.\n\nThis fixes 2 OVERRUN issues reported by Coverity."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c","status":"affected","lessThan":"1de84b6d65a7df30b5edc7208f828c4ecc8a7154","versionType":"git"},{"version":"4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c","status":"affected","lessThan":"15403445b873a4ce45b2d4ecfb5928a025297282","versionType":"git"},{"version":"4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c","status":"affected","lessThan":"a64284b9e1999ad5580debced4bc6d6adb28aad4","versionType":"git"},{"version":"4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c","status":"affected","lessThan":"687fe329f18ab0ab0496b20ed2cb003d4879d931","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/display/dc/core/dc_resource.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.158","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_resource.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/1de84b6d65a7df30b5edc7208f828c4ecc8a7154"},{"url":"https://git.kernel.org/stable/c/15403445b873a4ce45b2d4ecfb5928a025297282"},{"url":"https://git.kernel.org/stable/c/a64284b9e1999ad5580debced4bc6d6adb28aad4"},{"url":"https://git.kernel.org/stable/c/687fe329f18ab0ab0496b20ed2cb003d4879d931"}],"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 reached only through DRM modeset ioctls on /dev/dri/card* (DRM_IOCTL_MODE_ATOMIC / SETCRTC) via amdgpu_dm_atomic_check() → dc_state_add_stream() → resource_map_pool_resources(). No network or remote input reaches this path.\nAC:L - Within an affected resource-pool configuration the negative index is taken deterministically on every stream-add whose pipe_idx exceeds timing_generator_count; there is no race to win and no memory-layout condition the attacker must guess, and the attacker chooses when to issue the modeset.\nPR:L - A local unprivileged user with a DRM fd holding master — the ordinary case for a logged-in console/graphical session, an Android compositor client, or a kiosk display stack — can issue the atomic modeset; no capability check exists anywhere on the path from the ioctl to acquire_otg_master_pipe_for_stream().\nUI:N - The attacker performs the modeset/stream-add entirely on their own; no action by another user or administrator is required.\nS:U - The corruption and its consequences stay inside the kernel's amdgpu display driver under the same security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - The −1 index reads pointers outside the intended arrays and installs them as wrongly-typed objects, so subsequent accesses read struct fields (funcs, inst, dc_context contents) at mismatched offsets from adjacent kernel objects, exposing kernel pointers and enabling further disclosure through the type-confused reads.\nI:H - stream_res.opp — actually a struct dpp * — is written through (opp->mpcc_disconnect_pending[] stores and mpc_tree_params list manipulation corrupt the DPP object), and both stream_res.tg->funcs and stream_res.opp->funcs are read from offsets holding non-vtable data, including gamma-LUT bytes supplied by userspace, giving an indirect call through attacker-influenced memory and thus a control-flow hijack primitive.\nA:H - At minimum the wrongly-typed or NULL pointer is dereferenced and called through during pipe programming, producing an immediate kernel oops/panic in the display pipeline, repeatable at will by the local attacker."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-30T12:19:15.979Z"},"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.158"},{"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:54:24.683078Z","id":"CVE-2024-46730","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:54:39.429Z"}}]}}}