# CVE-2023-3111: A use after free vulnerability was found in preparetorelocate in fs/btrfs/relocation.c in btrfs in the Linux Kernel.

- Severity: High 7.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.44%, higher than 39% of CVEs (2026-12-02)
- Published: 2023-06-05T00:00:00.000Z
- Modified: 2026-06-17T06:13:22.933Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: redhat

## Description

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().

(As written by CVE List.)

## Affected

- Kernel: Kernel version prior to Kernel 6.0-rc2
- linux linux_kernel: from 2.6.31 before 4.14.318; from 4.15 before 4.19.286; from 4.20 before 5.4.247; from 5.5 before 5.10.184; from 5.11 before 5.15.63; from 5.16 before 5.19.4
- debian debian_linux: 10.0; 11.0
- netapp h300s_firmware: no versions given
- netapp h410c_firmware: no versions given
- netapp h410s_firmware: no versions given
- netapp h500s_firmware: no versions given
- netapp h700s_firmware: no versions given

## Every score

- CISA-ADP: 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`
- NVD: 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`

## References

- <https://patchwork.kernel.org/project/linux-btrfs/patch/20220721074829.2905233-1-r33s3n6%40gmail.com/>
- <https://security.netapp.com/advisory/ntap-20230703-0007/> (third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2023/07/msg00030.html> (mailing-list, third-party-advisory)
- <https://www.debian.org/security/2023/dsa-5480> (third-party-advisory, vdb-entry, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2023/10/msg00027.html> (mailing-list, third-party-advisory)

## Sources

- CVE List: [CVE-2023-3111](https://www.cve.org/CVERecord?id=CVE-2023-3111), CVE Terms of Use, modified 2025-04-23
- NVD: [CVE-2023-3111](https://nvd.nist.gov/vuln/detail/CVE-2023-3111), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-3111 · Whole record: https://cve.day/CVE-2023-3111.json · Rebuilt by cve.day 2026-11-25T22:58:24.595Z
