Linux DRM Atomic Commit Race Enables Use-After-Free and Privilege Escalation
Attack Tradecraft · 3 sources · Updated 3mo ago · First seen Apr 30, 2024

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


