# CVE-2024-50090: drm/xe/oa: Fix overflow in oa batch buffer

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/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.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2024-11-05T17:04:54.546Z
- Modified: 2026-08-05T11:41:34.890Z
- Weaknesses: CWE-120
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

drm/xe/oa: Fix overflow in oa batch buffer

By default xe_bb_create_job() appends a MI_BATCH_BUFFER_END to batch
buffer, this is not a problem if batch buffer is only used once but
oa reuses the batch buffer for the same metric and at each call
it appends a MI_BATCH_BUFFER_END, printing the warning below and then
overflowing.

[  381.072016] ------------[ cut here ]------------
[  381.072019] xe 0000:00:02.0: [drm] Assertion `bb->len * 4 + bb_prefetch(q->gt) <= size` failed!
               platform: LUNARLAKE subplatform: 1
               graphics: Xe2_LPG / Xe2_HPG 20.04 step B0
               media: Xe2_LPM / Xe2_HPM 20.00 step B0
               tile: 0 VRAM 0 B
               GT: 0 type 1

So here checking if batch buffer already have MI_BATCH_BUFFER_END if
not append it.

v2:
- simply fix, suggestion from Ashutosh

(cherry picked from commit 9ba0e0f30ca42a98af3689460063edfb6315718a)

(As written by CVE List.)

## Affected

- Linux Linux: from dd08ebf6c3525a7ea2186e636df064ea47281987 before bcb5be3421705e682b0b32073ad627056d6bc2a2; from dd08ebf6c3525a7ea2186e636df064ea47281987 before 6c10ba06bb1b48acce6d4d9c1e33beb9954f1788; 6.8 (not affected: before 6.8; from 6.11.4 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: before 6.11.4

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/bcb5be3421705e682b0b32073ad627056d6bc2a2> (patch)
- <https://git.kernel.org/stable/c/6c10ba06bb1b48acce6d4d9c1e33beb9954f1788> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2024-50090 · Whole record: https://cve.day/CVE-2024-50090.json · Rebuilt by cve.day 2026-11-25T22:58:47.766Z
