7.8high
drm/amd/display: Do not return negative stream id for array
- Severity
- 7.8high CVSS:3.1 by NVD
- Exploit likelihood
- 0.24% (higher than 15% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Do not return negative stream id for array [WHY] resource_stream_to_stream_idx returns an array index and it return -1 when not found; however, -1 is not a valid array index number. [HOW] When this happens, call ASSERT(), and return a zero instead. This fixes an OVERRUN and an NEGATIVE_RETURNS issues reported by Coverity.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c before a76fa9c4f0fc0aa6f517da3fa7d7c23e8a32c7d0, from 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c before 3ac31c9a707dd1c7c890b95333182f955e9dcb57, 4.15 Not affected: before 4.15, from 6.9.9 up to 6.9.*, from 6.10 up to * | CVE List |
| linux linux_kernel | from 4.15 before 6.9.9 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Do not return negative stream id for array [WHY] resource_stream_to_stream_idx returns an array index and it return -1 when not found; however, -1 is not a valid array index number. [HOW] When this happens, call ASSERT(), and return a zero instead. This fixes an OVERRUN and an NEGATIVE_RETURNS issues reported by Coverity.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: drm/amd/display: no devolver ID de flujo negativo para la matriz [POR QUÉ] Resource_stream_to_stream_idx devuelve un índice de matriz y devuelve -1 cuando no se encuentra; sin embargo, -1 no es un número de índice de matriz válido. [CÓMO] Cuando esto suceda, llame a ASSERT() y devuelva un cero en su lugar. Esto soluciona problemas de OVERRUN y NEGATIVE_RETURNS informados por Coverity.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-42118 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2024-42118 changed 2026-06-17 | Public domain |