7.1high
drm/amdgpu: validate doorbell_offset in user queue creation
- Severity
- 7.1high CVSS:3.1 by Linux
- Exploit likelihood
- 0.13% (higher than 2% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: validate doorbell_offset in user queue creation amdgpu_userq_get_doorbell_index() passes the user-provided doorbell_offset to amdgpu_doorbell_index_on_bar() without bounds checking. An arbitrarily large doorbell_offset can cause the calculated doorbell index to fall outside the allocated doorbell BO, potentially corrupting kernel doorbell space. Validate that doorbell_offset falls within the doorbell BO before computing the BAR index, using u64 arithmetic to prevent overflow. (cherry picked from commit de1ef4ffd70e1d15f0bf584fd22b1f28cbd5e2ec)
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from f09c1e6077abd1bc2ddd2b97e1135215801ca7f9 before 3543005a42d7e8e12b21897ef6798541bf7cbcd3, from f09c1e6077abd1bc2ddd2b97e1135215801ca7f9 before 86b732fbc37ce4fb76cdd4af0fb7e30a6acdbce6, from f09c1e6077abd1bc2ddd2b97e1135215801ca7f9 before a018d1819f158991b7308e4f74609c6c029b670c, 6.16 Not affected: before 6.16, from 6.18.22 up to 6.18.*, from 6.19.12 up to 6.19.*, from 7.0 up to * | CVE List |
| linux linux_kernel | from 6.16 before 6.18.22, from 6.19 before 6.19.12, 7.0 | NVD |
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: validate doorbell_offset in user queue creation amdgpu_userq_get_doorbell_index() passes the user-provided doorbell_offset to amdgpu_doorbell_index_on_bar() without bounds checking. An arbitrarily large doorbell_offset can cause the calculated doorbell index to fall outside the allocated doorbell BO, potentially corrupting kernel doorbell space. Validate that doorbell_offset falls within the doorbell BO before computing the BAR index, using u64 arithmetic to prevent overflow. (cherry picked from commit de1ef4ffd70e1d15f0bf584fd22b1f28cbd5e2ec)
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: drm/amdgpu: validar doorbell_offset en la creación de colas de usuario amdgpu_userq_get_doorbell_index() pasa el doorbell_offset proporcionado por el usuario a amdgpu_doorbell_index_on_bar() sin comprobación de límites. Un doorbell_offset arbitrariamente grande puede causar que el índice de doorbell calculado caiga fuera del BO de doorbell asignado, corrompiendo potencialmente el espacio de doorbell del kernel. Validar que doorbell_offset caiga dentro del BO de doorbell antes de calcular el índice BAR, usando aritmética u64 para prevenir desbordamiento. (seleccionado de la confirmación de1ef4ffd70e1d15f0bf584fd22b1f28cbd5e2ec)
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-31766 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2026-31766 changed 2026-11-11 | Public domain |