Vulnerability · Published Mar 26, 2024 · Assigned by Linux

CVE-2023-52622ext4: avoid online resizing failures due to oversized flex bg

Medium 5.5

In plain English

A medium-severity security flaw in Linux from Linux. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 16% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)5.5Medium
Exploit odds (30 days)0.2%top 84.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

In the Linux kernel, the following vulnerability has been resolved: ext4: avoid online resizing failures due to oversized flex bg When we online resize an ext4 filesystem with a oversized flexbg_size, mkfs.ext4 -F -G 67108864 $dev -b 4096 100M mount $dev $dir resize2fs $dev 16G the following WARN_ON is triggered: ================================================================== WARNING: CPU: 0 PID: 427 at mm/page_alloc.c:4402 __alloc_pages+0x411/0x550 Modules linked in: sg(E) CPU: 0 PID: 427 Comm: resize2fs Tainted: G E 6.6.0-rc5+ #314 RIP: 0010:__alloc_pages+0x411/0x550 Call Trace: <TASK> __kmalloc_large_node+0xa2/0x200 __kmalloc+0x16e/0x290 ext4_resize_fs+0x481/0xd80 __ext4_ioctl+0x1616/0x1d90 ext4_ioctl+0x12/0x20 __x64_sys_ioctl+0xf0/0x150 do_syscall_64+0x3b/0x90 ================================================================== This is because flexbg_size is too large and the size of the new_group_data array to be allocated exceeds MAX_ORDER. Currently, the minimum value of MAX_ORDER is 8, the minimum value of PAGE_SIZE is 4096, the corresponding maximum number of groups that can be allocated is: (PAGE_SIZE << MAX_ORDER) / sizeof(struct ext4_new_group_data) ≈ 21845 And the value that is down-aligned to the power of 2 is 16384. Therefore, this value is defined as MAX_RESIZE_BG, and the number of groups added each time does not exceed this value during resizing, and is added multiple times to complete the online resizing. The difference is that the metadata in a flex_bg may be more dispersed.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8bpftool4.18.0-553.16.1.el8_10ALSA-2024:5101
AlmaLinux:8kernel4.18.0-553.16.1.el8_10ALSA-2024:5101
AlmaLinux:8kernel-abi-stablelists4.18.0-553.16.1.el8_10ALSA-2024:5101
AlmaLinux:8kernel-core4.18.0-553.16.1.el8_10ALSA-2024:5101
AlmaLinux:8kernel-cross-headers4.18.0-553.16.1.el8_10ALSA-2024:5101
AlmaLinux:8kernel-debug4.18.0-553.16.1.el8_10ALSA-2024:5101
AlmaLinux:8kernel-debug-core4.18.0-553.16.1.el8_10ALSA-2024:5101
AlmaLinux:8kernel-debug-devel4.18.0-553.16.1.el8_10ALSA-2024:5101
AlmaLinux:8kernel-debug-modules4.18.0-553.16.1.el8_10ALSA-2024:5101
AlmaLinux:8kernel-debug-modules-extra4.18.0-553.16.1.el8_10ALSA-2024:5101
AlmaLinux:8kernel-devel4.18.0-553.16.1.el8_10ALSA-2024:5101
AlmaLinux:8kernel-doc4.18.0-553.16.1.el8_10ALSA-2024:5101
AlmaLinux:8kernel-headers4.18.0-553.16.1.el8_10ALSA-2024:5101
AlmaLinux:8kernel-modules4.18.0-553.16.1.el8_10ALSA-2024:5101
AlmaLinux:8kernel-modules-extra4.18.0-553.16.1.el8_10ALSA-2024:5101
AlmaLinux:8kernel-rt4.18.0-553.16.1.rt7.357.el8_10ALSA-2024:5102
AlmaLinux:8kernel-rt-core4.18.0-553.16.1.rt7.357.el8_10ALSA-2024:5102
AlmaLinux:8kernel-rt-debug4.18.0-553.16.1.rt7.357.el8_10ALSA-2024:5102
AlmaLinux:8kernel-rt-debug-core4.18.0-553.16.1.rt7.357.el8_10ALSA-2024:5102
AlmaLinux:8kernel-rt-debug-devel4.18.0-553.16.1.rt7.357.el8_10ALSA-2024:5102
AlmaLinux:8kernel-rt-debug-kvm4.18.0-553.16.1.rt7.357.el8_10ALSA-2024:5102
AlmaLinux:8kernel-rt-debug-modules4.18.0-553.16.1.rt7.357.el8_10ALSA-2024:5102
AlmaLinux:8kernel-rt-debug-modules-extra4.18.0-553.16.1.rt7.357.el8_10ALSA-2024:5102
AlmaLinux:8kernel-rt-devel4.18.0-553.16.1.rt7.357.el8_10ALSA-2024:5102
AlmaLinux:8kernel-rt-kvm4.18.0-553.16.1.rt7.357.el8_10ALSA-2024:5102
AlmaLinux:8kernel-rt-modules4.18.0-553.16.1.rt7.357.el8_10ALSA-2024:5102
AlmaLinux:8kernel-rt-modules-extra4.18.0-553.16.1.rt7.357.el8_10ALSA-2024:5102
AlmaLinux:8kernel-tools4.18.0-553.16.1.el8_10ALSA-2024:5101
AlmaLinux:8kernel-tools-libs4.18.0-553.16.1.el8_10ALSA-2024:5101
AlmaLinux:8kernel-tools-libs-devel4.18.0-553.16.1.el8_10ALSA-2024:5101
AlmaLinux:8kernel-zfcpdump4.18.0-553.16.1.el8_10ALSA-2024:5101
AlmaLinux:8kernel-zfcpdump-core4.18.0-553.16.1.el8_10ALSA-2024:5101
AlmaLinux:8kernel-zfcpdump-devel4.18.0-553.16.1.el8_10ALSA-2024:5101
AlmaLinux:8kernel-zfcpdump-modules4.18.0-553.16.1.el8_10ALSA-2024:5101
AlmaLinux:8kernel-zfcpdump-modules-extra4.18.0-553.16.1.el8_10ALSA-2024:5101
AlmaLinux:8perf4.18.0-553.16.1.el8_10ALSA-2024:5101
AlmaLinux:8python3-perf4.18.0-553.16.1.el8_10ALSA-2024:5101
Debian:12linux6.1.82-1DEBIAN-CVE-2023-52622
Debian:13linux6.7.7-1DEBIAN-CVE-2023-52622
Debian:14linux6.7.7-1DEBIAN-CVE-2023-52622
Rocky Linux:8kernel0:4.18.0-553.16.1.el8_10RLSA-2024:5101
Rocky Linux:8kernel0:4.18.0-553.16.1.el8_10.cloud.0.1RXSA-2024:5101
Rocky Linux:8kernel-rt0:4.18.0-553.16.1.rt7.357.el8_10RLSA-2024:5102
Ubuntu:22.04:LTSlinux5.15.0-106.116USN-6766-1
Ubuntu:22.04:LTSlinux5.15.0-106.116UBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-allwinner-5.19no fix listedUBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-aws5.15.0-1061.67UBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-aws5.15.0-1061.67USN-6766-3
Ubuntu:22.04:LTSlinux-aws-5.19no fix listedUBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-aws-6.2no fix listedUBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-aws-6.5no fix listedUBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-azure5.15.0-1063.72UBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-azure5.15.0-1063.72USN-6766-1
Ubuntu:22.04:LTSlinux-azure-5.19no fix listedUBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-azure-6.2no fix listedUBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-azure-6.56.5.0-1022.23~22.04.1UBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-azure-fde5.15.0-1063.72.1UBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-azure-fde5.15.0-1063.72.1USN-6766-1
Ubuntu:22.04:LTSlinux-azure-fde-5.19no fix listedUBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-azure-fde-6.2no fix listedUBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-gcp5.15.0-1059.67USN-6766-1
Ubuntu:22.04:LTSlinux-gcp5.15.0-1059.67UBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-gcp-5.19no fix listedUBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-gcp-6.2no fix listedUBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-gcp-6.56.5.0-1022.24~22.04.1UBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-gke5.15.0-1058.63UBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-gke5.15.0-1058.63USN-6766-1
Ubuntu:22.04:LTSlinux-gkeop5.15.0-1044.51UBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-gkeop5.15.0-1044.51USN-6766-1
Ubuntu:22.04:LTSlinux-hwe-5.19no fix listedUBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-hwe-6.2no fix listedUBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-hwe-6.56.5.0-41.41~22.04.2UBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-ibm5.15.0-1054.57UBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-ibm5.15.0-1054.57USN-6766-1
Ubuntu:22.04:LTSlinux-intel-iotg5.15.0-1057.63UBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-intel-iotg5.15.0-1057.63USN-6795-1
Ubuntu:22.04:LTSlinux-kvm5.15.0-1058.63UBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-kvm5.15.0-1058.63USN-6766-1
Ubuntu:22.04:LTSlinux-lowlatency5.15.0-106.116USN-6766-1
Ubuntu:22.04:LTSlinux-lowlatency5.15.0-106.116UBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-lowlatency-hwe-5.19no fix listedUBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.2no fix listedUBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.56.5.0-41.41.1~22.04.1UBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-nvidia5.15.0-1054.55UBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-nvidia5.15.0-1054.55USN-6766-1
Ubuntu:22.04:LTSlinux-nvidia-6.2no fix listedUBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-nvidia-6.56.5.0-1021.22UBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-nvidia-tegra5.15.0-1026.26UBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-nvidia-tegra-igx5.15.0-1015.15UBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-oem-5.17no fix listedUBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-oem-6.0no fix listedUBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-oem-6.1no fix listedUBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-oem-6.56.5.0-1024.25UBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-oracle5.15.0-1059.65USN-6766-1
Ubuntu:22.04:LTSlinux-oracle5.15.0-1059.65UBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-oracle-6.56.5.0-1024.24~22.04.1UBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-raspi5.15.0-1054.57USN-6766-2
Ubuntu:22.04:LTSlinux-raspi5.15.0-1054.57UBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-realtimeno fix listedUBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-riscvno fix listedUBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-riscv-5.19no fix listedUBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-riscv-6.56.5.0-40.40.1~22.04.1UBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-starfive-5.19no fix listedUBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-starfive-6.2no fix listedUBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-starfive-6.56.5.0-1015.16~22.04.1UBUNTU-CVE-2023-52622
Ubuntu:22.04:LTSlinux-xilinx-zynqmp5.15.0-1030.34UBUNTU-CVE-2023-52622

Affected products (as reported)

VendorProductVersions
Linux Linux 28c7bac0091687e6116ebd6c179e154ae4053c90 – before cd1f93ca97a9136989f3bd2bf90696732a2ed64428c7bac0091687e6116ebd6c179e154ae4053c90 – before b183fe8702e78bba3dcef8e7193cab6898abee0728c7bac0091687e6116ebd6c179e154ae4053c90 – before cfbbb3199e71b63fc26cee0ebff327c47128a1e828c7bac0091687e6116ebd6c179e154ae4053c90 – before d76c8d7ffe163c6bf2f1ef680b0539c2b3902b9028c7bac0091687e6116ebd6c179e154ae4053c90 – before 6d2cbf517dcabc093159cf138ad5712c9c7fa95428c7bac0091687e6116ebd6c179e154ae4053c90 – before 8b1413dbfe49646eda2c00c0f1144ee9d3368e0c28c7bac0091687e6116ebd6c179e154ae4053c90 – before dc3e0f55bec4410f3d74352c4a7c79f518088ee228c7bac0091687e6116ebd6c179e154ae4053c90 – before 5d1935ac02ca5aee364a449a35e2977ea84509b0
Linux Linux 3.3

References