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

Published Nov 5, 2024
·
Updated

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

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

By default xebbcreatejob() appends a MIBATCHBUFFEREND 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 MIBATCHBUFFEREND, printing the warning below and then overflowing.

[ 381.072016] ------------[ cut here ]------------ [ 381.072019] xe 0000:00:02.0: [drm] Assertion bb->len 4 + bbprefetch(q->gt) <= size failed! platform: LUNARLAKE subplatform: 1 graphics: Xe2LPG / Xe2HPG 20.04 step B0 media: Xe2LPM / Xe2HPM 20.00 step B0 tile: 0 VRAM 0 B GT: 0 type 1

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

v2: - simply fix, suggestion from Ashutosh

(cherry picked from commit 9ba0e0f30ca42a98af3689460063edfb6315718a)

Other sources

This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.

Launchpad

Affected Software

2 affected componentsFixes available
Linux Linux kernel<6.11.4
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1
  2. Configuration

    Update drm/xe/oa batch buffer handling to check whether the batch buffer already contains MI_BATCH_BUFFER_END; if it does not, append MI_BATCH_BUFFER_END. This prevents oa reusing the batch buffer for the same metric from repeatedly appending MI_BATCH_BUFFER_END and overflowing (fixes drm/xe/oa: Fix overflow in oa batch buffer).

    Linux kernel drm/xe/oa MI_BATCH_BUFFER_END append logic = Append MI_BATCH_BUFFER_END only if the oa batch buffer does not already contain MI_BATCH_BUFFER_END; otherwise do not append again when reusing the batch buffer

Event History

Nov 5, 2024
CVE Published
via MITRE·05:04 PM
Data Sourced
via MITRE·05:04 PM
DescriptionSeverity
Data Sourced
via NVD·05:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Feb 24, 2025
Data Sourced
via Launchpad·12:47 AM
Description
Apr 29, 2025
Data Sourced
via Ubuntu·01:03 AM
RemedyDescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-50090?

CVE-2024-50090 is rated as moderate severity as it may lead to data corruption in specific scenarios.

2

How do I fix CVE-2024-50090?

To fix CVE-2024-50090, update your Linux kernel to version 6.11.4 or later.

3

Which systems are affected by CVE-2024-50090?

CVE-2024-50090 affects Linux kernel versions prior to 6.11.4.

4

What are the potential consequences of CVE-2024-50090?

CVE-2024-50090 could lead to an overflow in the OA batch buffer, causing incorrect processing or system instability.

5

Is CVE-2024-50090 being actively exploited?

As of now, there have been no public reports indicating that CVE-2024-50090 is actively being exploited.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203