CVE-2023-3111
Vulnerability Summary
Timeline
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().
CVSS Metrics
- v3.1•HIGH•Score: 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Trends
Current EPSS score: 0.44%• Percentile: 38%
Techniques & Countermeasures
- CWE-416•Use After Free
The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer.
Affected Systems
- debian•linux
< 5.10.191-1 | < 5.19.6-1 | < 5.19.6-1 | < 5.19.6-1
- ubuntu•linux
all | < 4.4.0-242.276 | < 4.15.0-214.225 | < 5.4.0-156.173 | < 5.15.0-53.59
- ubuntu•linux-aws
< 4.4.0-1120.126 | < 4.4.0-1158.173 | < 4.15.0-1159.172 | < 5.4.0-1107.115 | < 5.15.0-1023.27
- ubuntu•linux-aws-5.0
all
- ubuntu•linux-aws-5.11
all
- ubuntu•linux-aws-5.13
all
- ubuntu•linux-aws-5.15
< 5.15.0-1023.27~20.04.1
- ubuntu•linux-aws-5.3
all
- ubuntu•linux-aws-5.4
< 5.4.0-1107.115~18.04.1
- ubuntu•linux-aws-5.8
all
- ubuntu•linux-aws-fips
< 4.15.0-2098.104 | all | < 5.4.0-1107.115+fips1
- ubuntu•linux-aws-hwe
< 4.15.0-1159.172~16.04.1
- ubuntu•linux-azure
< 4.15.0-1168.183~14.04.1 | < 4.15.0-1168.183~16.04.1 | all | < 5.4.0-1114.120 | < 5.15.0-1023.29
- ubuntu•linux-azure-4.15
< 4.15.0-1168.183
- ubuntu•linux-azure-5.11
all
- ubuntu•linux-azure-5.13
all
- ubuntu•linux-azure-5.15
< 5.15.0-1023.29~20.04.1
- ubuntu•linux-azure-5.19
all
- ubuntu•linux-azure-5.3
all
- ubuntu•linux-azure-5.4
< 5.4.0-1113.119~18.04.1
- ubuntu•linux-azure-5.8
all
- ubuntu•linux-azure-edge
all
- ubuntu•linux-azure-fde
all | < 5.15.0-1024.30.1
- ubuntu•linux-azure-fde-5.19
all
- ubuntu•linux-azure-fips
< 4.15.0-2077.83 | all | < 5.4.0-1113.119+fips1
- ubuntu•linux-bluefield
all | < 5.4.0-1068.74
- ubuntu•linux-fips
< 4.4.0-1090.97 | all | < 4.15.0-1114.125 | < 5.4.0-1082.91
- ubuntu•linux-gcp
< 4.15.0-1153.170~16.04.1 | all | < 5.4.0-1110.119 | < 5.15.0-1022.29
- ubuntu•linux-gcp-4.15
< 4.15.0-1153.170
- ubuntu•linux-gcp-5.11
all
- ubuntu•linux-gcp-5.13
all
- ubuntu•linux-gcp-5.15
< 5.15.0-1022.29~20.04.1
- ubuntu•linux-gcp-5.3
all
- ubuntu•linux-gcp-5.4
< 5.4.0-1110.119~18.04.1
- ubuntu•linux-gcp-5.8
all
- ubuntu•linux-gcp-fips
< 4.15.0-2061.66 | all | < 5.4.0-1110.119+fips1
- ubuntu•linux-gke
< 5.4.0-1105.112 | < 5.15.0-1020.25
- ubuntu•linux-gke-4.15
all
- ubuntu•linux-gke-5.15
< 5.15.0-1020.25~20.04.1
- ubuntu•linux-gke-5.4
all
- ubuntu•linux-gkeop
< 5.4.0-1074.78 | < 5.15.0-1008.12
- ubuntu•linux-gkeop-5.15
< 5.15.0-1008.12~20.04.1
- ubuntu•linux-gkeop-5.4
all
- ubuntu•linux-hwe
< 4.15.0-214.225~16.04.1 | all
- ubuntu•linux-hwe-5.11
all
- ubuntu•linux-hwe-5.13
all
- ubuntu•linux-hwe-5.15
< 5.15.0-53.59~20.04.1
- ubuntu•linux-hwe-5.4
< 5.4.0-156.173~18.04.1
- ubuntu•linux-hwe-5.8
all
- ubuntu•linux-hwe-edge
all | all
Showing first 50 affected entries in server-rendered view.
References (17)
- https://patchwork.kernel.org/project/linux-btrfs/patch/20220721074829.2905233-1-r33s3n6%40gmail.com/
- https://security.netapp.com/advisory/ntap-20230703-0007/
- https://lists.debian.org/debian-lts-announce/2023/07/msg00030.html
- https://www.debian.org/security/2023/dsa-5480
- https://lists.debian.org/debian-lts-announce/2023/10/msg00027.html
- https://ubuntu.com/security/CVE-2023-3111
- https://patchwork.kernel.org/project/linux-btrfs/patch/20220721074829.2905233-1-r33s3n6@gmail.com/
- https://ubuntu.com/security/notices/USN-6221-1
- https://ubuntu.com/security/notices/USN-6252-1
- https://ubuntu.com/security/notices/USN-6284-1
- https://ubuntu.com/security/notices/USN-6301-1
- https://ubuntu.com/security/notices/USN-6312-1
- https://ubuntu.com/security/notices/USN-6314-1
- https://ubuntu.com/security/notices/USN-6331-1
- https://ubuntu.com/security/notices/USN-6337-1
- https://www.cve.org/CVERecord?id=CVE-2023-3111
- https://security-tracker.debian.org/tracker/CVE-2023-3111