CVE-2023-51042: Use-after-free in Linux kernel AMDGPU fence handling
- Vendor
- Linux
CVE-2023-51042 is a fence use-after-free vulnerability in the Linux kernel AMDGPU DRM driver's amdgpu_cs_wait_all_fences function. It affects unpatched kernels before version 6.4.12, including affected downstream RHEL 8 and RHEL 9.2-and-earlier releases. The flaw permits access to a freed fence object during fence-wait processing, violating kernel memory safety.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
The vulnerability causes use of freed memory in kernel-space AMDGPU fence handling. Specific consequences, including whether exploitation enables a system crash, information disclosure, or privilege escalation, are not established.
Mitigation
If you can’t patch tonight, do this now.
No specific workaround is documented. Until an updated kernel can be deployed, reduce exposure by preventing untrusted users or workloads from accessing AMDGPU DRM interfaces; where operationally feasible, disable or avoid use of the affected AMDGPU driver.
Remediation
Patch, then assume compromise.
Upgrade to Linux kernel 6.4.12 or a later fixed release, or install distribution kernel packages containing the backported fix. Fixed packages include RHEL 8 kernel 4.18.0-513.24.1.el8_9 under RHSA-2024:1607 and RHEL 9.2 kernel 5.14.0-284.55.1.el9_2 under RHSA-2024:1018. Other RHEL release streams and real-time kernels require their corresponding security updates. Reboot after installation to activate the fixed kernel.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2023-51042 exploited in the wild?
- As of Oct 23, 2026, Mallory has no reports of CVE-2023-51042 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2023-51042?
- As of Oct 23, 2026, Mallory has found no public exploit for CVE-2023-51042.
- Is there a patch for CVE-2023-51042?
- Upgrade to Linux kernel 6.4.12 or a later fixed release, or install distribution kernel packages containing the backported fix. Fixed packages include RHEL 8 kernel 4.18.0-513.24.1.el8_9 under RHSA-2024:1607 and RHEL 9.2 kernel 5.14.0-284.55.1.el9_2 under RHSA-2024:1018.
- What products are affected by CVE-2023-51042?
- Linux Kernel.
- How severe is CVE-2023-51042?
- CVE-2023-51042 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 0.38% (24th percentile) as of Oct 23, 2026.
Recent activity
18 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.