# CVE-2026-31766: drm/amdgpu: validate doorbell_offset in user queue creation

- Severity: High 7.1 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-05-01T14:14:56.622Z
- Modified: 2026-11-11T21:10:00.200Z
- 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)

(As written by CVE List.)

## Affected

- 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 *)
- linux linux_kernel: from 6.16 before 6.18.22; from 6.19 before 6.19.12; 7.0

## References

- <https://git.kernel.org/stable/c/3543005a42d7e8e12b21897ef6798541bf7cbcd3> (patch)
- <https://git.kernel.org/stable/c/86b732fbc37ce4fb76cdd4af0fb7e30a6acdbce6> (patch)
- <https://git.kernel.org/stable/c/a018d1819f158991b7308e4f74609c6c029b670c> (patch)

## Sources

- CVE List: [CVE-2026-31766](https://www.cve.org/CVERecord?id=CVE-2026-31766), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2026-31766](https://nvd.nist.gov/vuln/detail/CVE-2026-31766), Public domain, modified 2026-11-11

---

Page: https://cve.day/CVE-2026-31766 · Whole record: https://cve.day/CVE-2026-31766.json · Rebuilt by cve.day 2026-11-25T22:59:20.376Z
