cve.bz

CVE-2023-3111 Use After Free

7.8 highEPSS 0.4%

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

On this page
A use after free vulnerability was found in prepare_to_relocate in fs/btrfs/relocation.c in btrfs in the Linux Kernel. This possible flaw can be triggered by calling btrfs_ioctl_balance() before calling btrfs_ioctl_defrag().

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.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 39th 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 2025-04-23. 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-3111 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-3111?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-3111?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-3111 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_kernelfrom 2.6.31 before 4.14.318
linux:linux_kernelfrom 4.15 before 4.19.286
linux:linux_kernelfrom 4.20 before 5.4.247
linux:linux_kernelfrom 5.5 before 5.10.184
linux:linux_kernelfrom 5.11 before 5.15.63
linux:linux_kernelfrom 5.16 before 5.19.4
debian:debian_linux10.0
debian:debian_linux11.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10linux4.19.289-1DLA-3508-1
Debian10linux-5.105.10.197-1~deb10u1DLA-3623-1
Debian11linux5.10.191-1DSA-5480-1
Debian12, 13, 14linux5.19.6-1DEBIAN-CVE-2023-3111
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2023-3111
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 12 moreno fix listedUBUNTU-CVE-2023-3111
Ubuntu20.04:LTSlinux5.4.0-156.173UBUNTU-CVE-2023-3111 USN-6284-1
Ubuntu20.04:LTSlinux-aws5.4.0-1107.115UBUNTU-CVE-2023-3111 USN-6284-1
Ubuntu20.04:LTSlinux-aws-5.15, linux-riscv-5.155.15.0-1023.27~20.04.1UBUNTU-CVE-2023-3111
Ubuntu20.04:LTSlinux-azure5.4.0-1114.120UBUNTU-CVE-2023-3111 USN-6331-1
Ubuntu20.04:LTSlinux-azure-5.155.15.0-1023.29~20.04.1UBUNTU-CVE-2023-3111
Ubuntu20.04:LTSlinux-bluefield5.4.0-1068.74UBUNTU-CVE-2023-3111 USN-6314-1
Ubuntu20.04:LTSlinux-gcp5.4.0-1110.119UBUNTU-CVE-2023-3111 USN-6284-1
Ubuntu20.04:LTSlinux-gcp-5.155.15.0-1022.29~20.04.1UBUNTU-CVE-2023-3111
Ubuntu20.04:LTSlinux-gke5.4.0-1105.112UBUNTU-CVE-2023-3111 USN-6312-1
Ubuntu20.04:LTSlinux-gke-5.155.15.0-1020.25~20.04.1UBUNTU-CVE-2023-3111
66 more for Ubuntu in the JSON and on Ubuntu's page.
SUSEEnterprise Storage 7.1kernel-64kb, kernel-docs, kernel-syms and 3 more5.3.18-150300.59.211.1SUSE-SU-2025:02308-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-ESPOS, Linux Enterprise High Performance Computing 15 SP3-LTSSkernel-64kb, kernel-docs, kernel-default and 2 more5.3.18-150300.59.141.2SUSE-SU-2023:4348-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-ESPOS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 6 morekernel-default-base5.3.18-150300.59.141.2.150300.18.82.2SUSE-SU-2023:4348-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-ESPOS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 2 morekernel-syms, kernel-source5.3.18-150300.59.141.1SUSE-SU-2023:4348-1
SUSEEnterprise Storage 7.1, Linux Enterprise Micro 5.1, Linux Enterprise Micro 5.2 and 2 morekernel-default-base5.3.18-150300.59.211.1.150300.18.126.1SUSE-SU-2025:02308-1
SUSEEnterprise Storage 7.1, Linux Enterprise Server 15 SP3-LTSS, Linux Enterprise Server for SAP Applications 15 SP3kernel-obs-build5.3.18-150300.59.212.1SUSE-SU-2025:02308-1
SUSELinux Enterprise High Availability Extension 12 SP5, Linux Enterprise Live Patching 12 SP5, Linux Enterprise Workstation Extension 12 SP5kernel-default4.12.14-122.165.1SUSE-SU-2023:2822-1
SUSELinux Enterprise High Availability Extension 15 SP1, Linux Enterprise Live Patching 15 SP1kernel-default4.12.14-150100.197.151.1SUSE-SU-2023:2830-1
SUSELinux Enterprise High Availability Extension 15 SP2, Linux Enterprise Live Patching 15 SP2kernel-default5.3.18-150200.24.169.1SUSE-SU-2023:4377-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.141.2SUSE-SU-2023:4348-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.211.1SUSE-SU-2025:02308-1
SUSELinux Enterprise High Availability Extension 15 SP4, Linux Enterprise Live Patching 15 SP4, Linux Enterprise Micro 5.3 and 3 morekernel-default5.14.21-150400.24.69.1SUSE-SU-2023:2820-1
61 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.4dtb-aarch645.3.18-150300.59.141.1SUSE-SU-2023:4348-1
openSUSELeap 15.4dtb-aarch64, kernel-64kb, kernel-docs and 8 more5.14.21-150400.24.69.1SUSE-SU-2023:2820-1
openSUSELeap 15.4kernel-azure, kernel-syms-azure, kernel-source-azure5.14.21-150400.14.55.1SUSE-SU-2023:2831-1
openSUSELeap 15.4kernel-debug, kernel-default, kernel-vanilla and 2 more4.12.14-150100.197.151.1SUSE-SU-2023:2830-1
openSUSELeap 15.4kernel-rt, kernel-syms-rt, kernel-rt_debug and 1 more5.14.21-150400.15.40.1SUSE-SU-2023:2803-1
openSUSELeap 15.4, Leap Micro 5.3kernel-default-base5.14.21-150400.24.69.1.150400.24.31.1SUSE-SU-2023:2820-1
openSUSELeap 15.5dtb-aarch64, kernel-64kb, kernel-docs and 8 more5.14.21-150500.55.7.1SUSE-SU-2023:2871-1
openSUSELeap 15.5kernel-azure, kernel-syms-azure, kernel-source-azure5.14.21-150500.33.6.1SUSE-SU-2023:2892-1
openSUSELeap 15.5kernel-default-base5.14.21-150500.55.7.1.150500.6.2.5SUSE-SU-2023:2871-1
openSUSELeap 15.5kernel-rt, kernel-syms-rt, kernel-rt_debug and 1 more5.14.21-150500.13.11.1SUSE-SU-2023:3302-1
openSUSELeap 15.5kernel-vanilla4.12.14-150100.197.151.1SUSE-SU-2023:2830-1
openSUSELeap Micro 5.3kernel-default5.14.21-150400.24.69.1SUSE-SU-2023:2820-1
1 more for openSUSE in the JSON and on openSUSE's page.
Azure Linux2kernel5.15.116.1-2AZL-27087

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Low.

Red Hat's statement

No shipped kernel version was seen affected with this problem. These files are not built in our source code.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6kernelOut of support scope
Red Hat Enterprise Linux 7kernelOut of support scope
Red Hat Enterprise Linux 7kernel-rtOut of support scope
Red Hat Enterprise Linux 8kernelNot affected
Red Hat Enterprise Linux 8kernel-rtNot affected
Red Hat Enterprise Linux 9kernelNot affected
Red Hat Enterprise Linux 9kernel-rtNot affected

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-3111.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-24-046-11Siemens SCALANCE XCM-/XRM-3002024-02-13MultipleSCALANCE XCH328 (6GK5328-4TS01-2EC2), SCALANCE XCM324 (6GK5324-8TS01-2AC2), SCALANCE XCM328 (6GK5328-4TS01-2AC2) and 8 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

References

Check your stackJSON