{"id":"CVE-2024-42118","published":"2024-07-30T07:46:10Z","modified":"2026-05-11T20:27:20Z","title":"drm/amd/display: Do not return negative stream id for array","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amd/display: Do not return negative stream id for array\n\n[WHY]\nresource_stream_to_stream_idx returns an array index and it return -1\nwhen not found; however, -1 is not a valid array index number.\n\n[HOW]\nWhen this happens, call ASSERT(), and return a zero instead.\n\nThis fixes an OVERRUN and an NEGATIVE_RETURNS issues reported by Coverity.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00307,"percentile":0.16033,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/a76fa9c4f0fc0aa6f517da3fa7d7c23e8a32c7d0","tags":[]},{"url":"https://git.kernel.org/stable/c/3ac31c9a707dd1c7c890b95333182f955e9dcb57","tags":[]}],"priority":{"score":3.2,"factors":[{"name":"EPSS percentile","points":3.21}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c, < a76fa9c4f0fc0aa6f517da3fa7d7c23e8a32c7d0",">= 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c, < 3ac31c9a707dd1c7c890b95333182f955e9dcb57"]},{"vendor":"Linux","product":"Linux","versions":["4.15"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-10T16:17:07.089426Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-39950","exploited":false,"provenance":"source"}}