Skip to main content
Mallory
← Back to News
privilege-escalation-methodendpoint-software-vulnerabilitywidely-deployed-product-advisory

Linux DRM Atomic Commit Race Enables Use-After-Free and Privilege Escalation

Attack Tradecraft · 3 sources · Updated 3mo ago · First seen Apr 30, 2024

Linux DRM Atomic Commit Race Enables Use-After-Free and Privilege Escalation

CVE-2023-51043 is a use-after-free flaw in the Linux kernel DRM atomic modesetting subsystem. A local low-privileged attacker can race a nonblocking atomic display commit against unloading or removing a graphics driver, allowing the asynchronous commit to outlive the drm_device reference inherited from its ioctl context. Successful exploitation can cause denial of service or potentially local privilege escalation; Red Hat assigns a CVSS v3.1 score of 7.0.

The issue affects kernels before version 6.4.5 and was fixed upstream in commit 4e076c73e4f6e90816b30fcd4a0d7ab365087255, which makes each drm_atomic_state retain a drm_device reference until the atomic state is freed. Red Hat identified affected RHEL 8 and 9, including selected Extended Update Support, real-time kernel, and Red Hat Virtualization releases, and issued kernel updates. Organizations should deploy the applicable kernel updates; where patching is not immediately possible, Red Hat recommends preventing the DRM kernel module from loading.

Why it matters

Impact assessment

CVE-2023-51043 affects Linux hosts using the DRM atomic modesetting subsystem, including affected Red Hat Enterprise Linux 8 and 9 deployments. A local low-privileged user can trigger a kernel use-after-free, causing system denial of service and potentially escalating to root-level privileges.

  • Severity: CVSS v3.1 7.0 (Moderate per Red Hat); successful exploitation compromises confidentiality, integrity, and availability.
  • Exposure scope: Local exploitation only, with high race-condition complexity. Systems are most exposed where untrusted users, tenant workloads, desktop users, or local code execution can access DRM interfaces and graphics-driver load/unload activity is possible.
  • Affected products: Linux kernels before 6.4.5; Red Hat identifies RHEL 8 and RHEL 9, including selected EUS, kernel-rt, and Red Hat Virtualization releases.
  • Unsupported RHEL 7 systems should be treated as affected because they are outside Red Hat support scope.
  • No exploitation in the wild, malware campaign, or public IOCs are reported in the supplied references.

Extracted entities

  • CVE: CVE-2023-51043
  • Vendors/products: Linux kernel, Linux DRM/DRI, RHEL 8, RHEL 9, Red Hat Virtualization 4
  • Advisories: RHSA-2023:7077, RHSA-2024:1018, RHSA-2024:1019, RHSA-2024:1188, RHSA-2024:1404, RHSA-2024:2394
Who uses this technique?Get the actors, campaigns, and ATT&CK mapping behind it.
Get the tradecraft
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

7 events · Jul 21, 2023 – Apr 30, 2024
  1. Apr 30, 20243y ago

    Red Hat releases RHEL 9 kernel fix

    Red Hat issued RHSA-2024:2394, providing RHEL 9 kernel updates that address CVE-2023-51043.

    2260005 - (CVE-2023-51043) CVE-2023-51043 kernel: use-after-free during a race condition between a nonblocking atomic commit and a driver unload in drivers/gpu/drm/drm_atomic.c
  2. Mar 19, 20243y ago

    Red Hat releases RHEL 8.8 EUS fix

    Red Hat issued RHSA-2024:1404, providing a kernel update that fixes CVE-2023-51043 for RHEL 8.8 Extended Update Support.

    2260005 - (CVE-2023-51043) CVE-2023-51043 kernel: use-after-free during a race condition between a nonblocking atomic commit and a driver unload in drivers/gpu/drm/drm_atomic.c
  3. Mar 6, 20243y ago

    Red Hat releases RHEL 8.6 EUS fix

    Red Hat issued RHSA-2024:1188 with a fixed kernel for RHEL 8.6 Extended Update Support; the update also covered Red Hat Virtualization 4 for RHEL 8.

    2260005 - (CVE-2023-51043) CVE-2023-51043 kernel: use-after-free during a race condition between a nonblocking atomic commit and a driver unload in drivers/gpu/drm/drm_atomic.c
  4. Feb 28, 20243y ago

    Red Hat releases RHEL 9.2 EUS fixes

    Red Hat issued RHSA-2024:1018 and RHSA-2024:1019, delivering kernel and kernel-rt fixes for RHEL 9.2 Extended Update Support.

    2260005 - (CVE-2023-51043) CVE-2023-51043 kernel: use-after-free during a race condition between a nonblocking atomic commit and a driver unload in drivers/gpu/drm/drm_atomic.c
  5. Jan 24, 20243y ago

    CVE-2023-51043 reported in Red Hat bug tracker

    Rohit Keshri reported the Red Hat bug record for CVE-2023-51043.

    2260005 - (CVE-2023-51043) CVE-2023-51043 kernel: use-after-free during a race condition between a nonblocking atomic commit and a driver unload in drivers/gpu/drm/drm_atomic.c
  6. Nov 14, 20233y ago

    Red Hat issues RHEL 8 kernel update for CVE-2023-51043

    Red Hat issued RHSA-2023:7077, providing RHEL 8 kernel updates that fix CVE-2023-51043, a DRM atomic modesetting use-after-free vulnerability.

    CVE-2023-51043 - Red Hat Customer Portal
  7. Jul 21, 20233y ago

    Upstream Linux patch fixes DRM atomic commit use-after-free

    Linus Torvalds committed upstream Linux patch 4e076c73e4f6e90816b30fcd4a0d7ab365087255, which makes DRM atomic states retain a drm_device reference to prevent a nonblocking commit from outliving a graphics-driver unload or removal.

    drm/atomic: Fix potential use-after-free in nonblocking commits · torvalds/linux@4e076c7 · GitHub
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

2 linked
Red Hat Enterprise LinuxLinux Kernel
Do you run this?Get the adversaries, campaigns, and ATT&CK mapping behind this technique, with detections ready to deploy.
See Who Uses This Technique
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.