cve.bz

CVE-2023-51042 linux linux kernel: Use After Free

7.8 highEPSS 0.3%Fix available

High (7.8) in linux linux kernel. EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
In the Linux kernel before 6.4.12, amdgpu_cs_wait_all_fences in drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c has a fence use-after-free.

Severity

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
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 25th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2024-05-10. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-416 Use After Free
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-51042 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-51042?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-51042?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-51042 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
linux:linux_kernelbefore 6.4.12

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12linux6.1.52-1DEBIAN-CVE-2023-51042
Debian13, 14linux6.4.13-1DEBIAN-CVE-2023-51042
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2023-51042
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 12 moreno fix listedUBUNTU-CVE-2023-51042
Ubuntu20.04:LTSlinux5.4.0-169.187UBUNTU-CVE-2023-51042
Ubuntu20.04:LTSlinux-aws5.4.0-1116.126UBUNTU-CVE-2023-51042
Ubuntu20.04:LTSlinux-aws-5.155.15.0-1051.56~20.04.1UBUNTU-CVE-2023-51042
Ubuntu20.04:LTSlinux-azure5.4.0-1121.128UBUNTU-CVE-2023-51042
Ubuntu20.04:LTSlinux-azure-5.155.15.0-1053.61~20.04.1UBUNTU-CVE-2023-51042
Ubuntu20.04:LTSlinux-bluefield5.4.0-1076.82UBUNTU-CVE-2023-51042
Ubuntu20.04:LTSlinux-gcp5.4.0-1120.129UBUNTU-CVE-2023-51042
Ubuntu20.04:LTSlinux-gcp-5.155.15.0-1048.56~20.04.1UBUNTU-CVE-2023-51042
Ubuntu20.04:LTSlinux-gke, linux-riscv, linux-raspi2 and 24 moreno fix listedUBUNTU-CVE-2023-51042
Ubuntu20.04:LTSlinux-gkeop5.4.0-1083.87UBUNTU-CVE-2023-51042
48 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:8::baseosperf, kernel, bpftool and 30 more0:4.18.0-513.24.1.el8_9RHSA-2024:1607
Red Hatenterprise_linux:8::crbperf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 7 more0:4.18.0-513.24.1.el8_9RHSA-2024:1607
Red Hatenterprise_linux:8::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 12 more0:4.18.0-513.24.1.rt7.326.el8_9RHSA-2024:1614
Red Hatenterprise_linux:8::realtimekernel-rt, kernel-rt-core, kernel-rt-debug and 10 more0:4.18.0-513.24.1.rt7.326.el8_9RHSA-2024:1614
Red Hatenterprise_linux:9::appstreamrv, perf, rtla and 24 more0:5.14.0-362.24.1.el9_3RHSA-2024:1248
Red Hatenterprise_linux:9::appstream, enterprise_linux:9::crb, enterprise_linux:9::nfv and 1 morebpftool-debuginfo0:7.2.0-362.24.1.el9_3RHSA-2024:1248
Red Hatenterprise_linux:9::baseosbpftool, bpftool-debuginfo0:7.2.0-362.24.1.el9_3RHSA-2024:1248
Red Hatenterprise_linux:9::baseoskernel, kernel-64k, kernel-core and 41 more0:5.14.0-362.24.1.el9_3RHSA-2024:1248
Red Hatenterprise_linux:9::crblibperf, perf-debuginfo, kernel-debuginfo and 12 more0:5.14.0-362.24.1.el9_3RHSA-2024:1248
Red Hatenterprise_linux:9::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 20 more0:5.14.0-362.24.1.el9_3RHSA-2024:1248
Red Hatenterprise_linux:9::realtimekernel-rt, kernel-rt-core, perf-debuginfo and 18 more0:5.14.0-362.24.1.el9_3RHSA-2024:1248
Red Hatrhel_eus:8.6::baseosperf, kernel, bpftool and 30 more0:4.18.0-372.93.1.el8_6RHSA-2024:0930
11 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSSkernel-64kb, kernel-docs, kernel-source and 3 more5.3.18-150300.59.153.2SUSE-SU-2024:0857-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise Micro 5.1 and 3 morekernel-default-base5.3.18-150300.59.153.2.150300.18.90.2SUSE-SU-2024:0857-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise Server 15 SP3-LTSS and 1 morekernel-syms5.3.18-150300.59.153.1SUSE-SU-2024:0857-1
SUSELinux Enterprise High Availability Extension 12 SP5, Linux Enterprise Live Patching 12 SP5, Linux Enterprise Workstation Extension 12 SP5kernel-default4.12.14-122.194.1SUSE-SU-2024:0484-1
SUSELinux Enterprise High Availability Extension 15 SP2, Linux Enterprise Live Patching 15 SP2kernel-default5.3.18-150200.24.183.1SUSE-SU-2024:0926-1
SUSELinux Enterprise High Availability Extension 15 SP3, Linux Enterprise Live Patching 15 SP3, Linux Enterprise Micro 5.1 and 1 morekernel-default5.3.18-150300.59.153.2SUSE-SU-2024:0857-1
SUSELinux Enterprise High Availability Extension 15 SP4, Linux Enterprise Live Patching 15 SP4, Linux Enterprise Micro 5.3 and 1 morekernel-default5.14.21-150400.24.108.1SUSE-SU-2024:0515-1
SUSELinux Enterprise High Availability Extension 15 SP5, Linux Enterprise Live Patching 15 SP5, Linux Enterprise Micro 5.5 and 2 morekernel-default5.14.21-150500.55.49.1SUSE-SU-2024:0516-1
SUSELinux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise Server 15 SP2-LTSS, Linux Enterprise Server for SAP Applications 15 SP2kernel-default-base5.3.18-150200.24.183.1.150200.9.93.2SUSE-SU-2024:0926-1
SUSELinux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise Server 15 SP2-LTSS, Linux Enterprise Server for SAP Applications 15 SP2kernel-docs, kernel-syms, kernel-source and 3 more5.3.18-150200.24.183.1SUSE-SU-2024:0926-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSSkernel-64kb, kernel-docs, kernel-syms and 3 more5.14.21-150400.24.108.1SUSE-SU-2024:0515-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Micro 5.3 and 5 morekernel-default-base5.14.21-150400.24.108.1.150400.24.50.2SUSE-SU-2024:0515-1
24 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.5dtb-aarch64, kernel-64kb, kernel-docs and 8 more5.14.21-150500.55.49.1SUSE-SU-2024:0516-1
openSUSELeap 15.5kernel-azure, kernel-syms-azure, kernel-source-azure5.14.21-150500.33.34.1SUSE-SU-2024:0514-1
openSUSELeap 15.5kernel-default-base5.14.21-150500.55.49.1.150500.6.21.2SUSE-SU-2024:0516-1
openSUSELeap 15.5kernel-rt, kernel-syms-rt, kernel-rt_debug and 1 more5.14.21-150500.13.35.1SUSE-SU-2024:0469-1
openSUSELeap Micro 5.3, Leap Micro 5.4kernel-default5.14.21-150400.24.108.1SUSE-SU-2024:0515-1
openSUSELeap Micro 5.3, Leap Micro 5.4kernel-default-base5.14.21-150400.24.108.1.150400.24.50.2SUSE-SU-2024:0515-1
openSUSELeap Micro 5.3, Leap Micro 5.4kernel-rt5.14.21-150400.15.68.1SUSE-SU-2024:0476-1
AlmaLinux8perf, kernel, bpftool and 21 more4.18.0-513.24.1.el8_9ALSA-2024:1607
Rocky Linux8kernel0:4.18.0-513.24.1.el8_9RLSA-2024:1607
Rocky Linux8kernel0:4.18.0-513.24.1.el8_9.cloud.0.1RXSA-2024:1607
Rocky Linux8kernel-rt0:4.18.0-513.24.1.rt7.326.el8_9RLSA-2024:1614
Rocky Linux9kernel0:5.14.0-362.24.1.el9_3.cloud.0.6RXSA-2024:1248
Azure Linux2kernel5.15.148.1-1AZL-33967
Alpaquita23, streamlinux-lts6.1.50-r0BELL-CVE-2023-51042

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This issue is only applicable to the amdgpu module, which is typically only loaded on systems that use AMD GPU hardware. Use the `lsmod` command to determine whether the amdgpu module is loaded.

Red Hat's mitigation

To mitigate this issue, prevent the amdgpu module from loading. Please see https://access.redhat.com/solutions/41278 for more information on how to prevent kernel modules from loading. Note that if a system has an AMD GPU, this may make certain features of that GPU unavailable.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8kernel-rt-0:4.18.0-513.24.1.rt7.326.el8_9Fixed 2024-04-02RHSA-2024:1614
Red Hat Enterprise Linux 8kernel-0:4.18.0-513.24.1.el8_9Fixed 2024-04-02RHSA-2024:1607
Red Hat Enterprise Linux 8.6 Extended Update Supportkernel-0:4.18.0-372.93.1.el8_6Fixed 2024-02-21RHSA-2024:0930
Red Hat Enterprise Linux 8.8 Extended Update Supportkernel-0:4.18.0-477.51.1.el8_8Fixed 2024-03-19RHSA-2024:1404
Red Hat Enterprise Linux 9kernel-0:5.14.0-362.24.1.el9_3Fixed 2024-03-12RHSA-2024:1248
Red Hat Enterprise Linux 9.2 Extended Update Supportkernel-0:5.14.0-284.55.1.el9_2Fixed 2024-02-28RHSA-2024:1018
Red Hat Enterprise Linux 9.2 Extended Update Supportkernel-rt-0:5.14.0-284.55.1.rt14.340.el9_2Fixed 2024-02-28RHSA-2024:1019
Red Hat Virtualization 4 for Red Hat Enterprise Linux 8kernel-0:4.18.0-372.93.1.el8_6Fixed 2024-02-21RHSA-2024:0930
RHOL-5.7-RHEL-8openshift-logging/cluster-logging-operator-bundle:v5.7.13-16Fixed 2024-05-01RHSA-2024:2093
RHOL-5.7-RHEL-8openshift-logging/cluster-logging-rhel8-operator:v5.7.13-7Fixed 2024-05-01RHSA-2024:2093
RHOL-5.7-RHEL-8openshift-logging/elasticsearch6-rhel8:v6.8.1-408Fixed 2024-05-01RHSA-2024:2093
RHOL-5.7-RHEL-8openshift-logging/elasticsearch-operator-bundle:v5.7.13-19Fixed 2024-05-01RHSA-2024:2093
RHOL-5.7-RHEL-8openshift-logging/elasticsearch-proxy-rhel8:v1.0.0-480Fixed 2024-05-01RHSA-2024:2093
RHOL-5.7-RHEL-8openshift-logging/elasticsearch-rhel8-operator:v5.7.13-9Fixed 2024-05-01RHSA-2024:2093
RHOL-5.7-RHEL-8openshift-logging/eventrouter-rhel8:v0.4.0-248Fixed 2024-05-01RHSA-2024:2093
RHOL-5.7-RHEL-8openshift-logging/fluentd-rhel8:v1.14.6-215Fixed 2024-05-01RHSA-2024:2093
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernelOut of support scope
Red Hat Enterprise Linux 7kernel-rtOut of support scope
Red Hat Enterprise Linux 9kernel-rtAffected
27 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-51042.

References

Check your stackJSON