Vulnerability · Published Nov 19, 2024 · Assigned by Linux

CVE-2024-53052io_uring/rw: fix missing NOWAIT check for O_DIRECT start write

Medium 4.4

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 8% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.4Medium
Exploit odds (30 days)0.2%top 92.0% 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: io_uring/rw: fix missing NOWAIT check for O_DIRECT start write When io_uring starts a write, it'll call kiocb_start_write() to bump the super block rwsem, preventing any freezes from happening while that write is in-flight. The freeze side will grab that rwsem for writing, excluding any new writers from happening and waiting for existing writes to finish. But io_uring unconditionally uses kiocb_start_write(), which will block if someone is currently attempting to freeze the mount point. This causes a deadlock where freeze is waiting for previous writes to complete, but the previous writes cannot complete, as the task that is supposed to complete them is blocked waiting on starting a new write. This results in the following stuck trace showing that dependency with the write blocked starting a new write: task:fio state:D stack:0 pid:886 tgid:886 ppid:876 Call trace: __switch_to+0x1d8/0x348 __schedule+0x8e8/0x2248 schedule+0x110/0x3f0 percpu_rwsem_wait+0x1e8/0x3f8 __percpu_down_read+0xe8/0x500 io_write+0xbb8/0xff8 io_issue_sqe+0x10c/0x1020 io_submit_sqes+0x614/0x2110 __arm64_sys_io_uring_enter+0x524/0x1038 invoke_syscall+0x74/0x268 el0_svc_common.constprop.0+0x160/0x238 do_el0_svc+0x44/0x60 el0_svc+0x44/0xb0 el0t_64_sync_handler+0x118/0x128 el0t_64_sync+0x168/0x170 INFO: task fsfreeze:7364 blocked for more than 15 seconds. Not tainted 6.12.0-rc5-00063-g76aaf945701c #7963 with the attempting freezer stuck trying to grab the rwsem: task:fsfreeze state:D stack:0 pid:7364 tgid:7364 ppid:995 Call trace: __switch_to+0x1d8/0x348 __schedule+0x8e8/0x2248 schedule+0x110/0x3f0 percpu_down_write+0x2b0/0x680 freeze_super+0x248/0x8a8 do_vfs_ioctl+0x149c/0x1b18 __arm64_sys_ioctl+0xd0/0x1a0 invoke_syscall+0x74/0x268 el0_svc_common.constprop.0+0x160/0x238 do_el0_svc+0x44/0x60 el0_svc+0x44/0xb0 el0t_64_sync_handler+0x118/0x128 el0t_64_sync+0x168/0x170 Fix this by having the io_uring side honor IOCB_NOWAIT, and only attempt a blocking grab of the super block rwsem if it isn't set. For normal issue where IOCB_NOWAIT would always be set, this returns -EAGAIN which will have io_uring core issue a blocking attempt of the write. That will in turn also get completions run, ensuring forward progress. Since freezing requires CAP_SYS_ADMIN in the first place, this isn't something that can be triggered by a regular user.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:9kernel5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-64k5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-64k-core5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-64k-debug5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-64k-debug-core5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-64k-debug-devel5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-64k-debug-devel-matched5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-64k-debug-modules5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-64k-debug-modules-core5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-64k-debug-modules-extra5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-64k-devel5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-64k-devel-matched5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-64k-modules5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-64k-modules-core5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-64k-modules-extra5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-abi-stablelists5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-core5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-cross-headers5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-debug5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-debug-core5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-debug-devel5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-debug-devel-matched5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-debug-modules5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-debug-modules-core5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-debug-modules-extra5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-debug-uki-virt5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-devel5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-devel-matched5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-doc5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-headers5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-modules5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-modules-core5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-modules-extra5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt-64k5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt-64k-core5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt-64k-debug5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt-64k-debug-core5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt-64k-debug-devel5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt-64k-debug-modules5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt-64k-debug-modules-core5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt-64k-debug-modules-extra5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt-64k-devel5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt-64k-modules5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt-64k-modules-core5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt-64k-modules-extra5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt-core5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt-debug5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt-debug-core5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt-debug-devel5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt-debug-modules5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt-debug-modules-core5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt-debug-modules-extra5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt-devel5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt-modules5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt-modules-core5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt-modules-extra5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-tools5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-tools-libs5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-tools-libs-devel5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-uki-virt5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-uki-virt-addons5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-zfcpdump5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-zfcpdump-core5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-zfcpdump-devel5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-zfcpdump-devel-matched5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-zfcpdump-modules5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-zfcpdump-modules-core5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-zfcpdump-modules-extra5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9libperf5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9perf5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9python3-perf5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9rtla5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9rv5.14.0-611.5.1.el9_7ALSA-2025:20518
Debian:12linux6.1.119-1DEBIAN-CVE-2024-53052
Debian:13linux6.11.7-1DEBIAN-CVE-2024-53052
Debian:14linux6.11.7-1DEBIAN-CVE-2024-53052
Rocky Linux:9kernel0:5.14.0-611.5.1.el9_7RLSA-2025:20518
Ubuntu:22.04:LTSlinux5.15.0-133.144UBUNTU-CVE-2024-53052
Ubuntu:24.04:LTSlinux6.8.0-58.60UBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-allwinner-5.19no fix listedUBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-aws5.15.0-1078.85UBUNTU-CVE-2024-53052
Ubuntu:24.04:LTSlinux-aws6.8.0-1027.29UBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-aws-5.19no fix listedUBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-aws-6.2no fix listedUBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-aws-6.5no fix listedUBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-aws-6.86.8.0-1027.29~22.04.1UBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-azure5.15.0-1081.90UBUNTU-CVE-2024-53052
Ubuntu:24.04:LTSlinux-azure6.8.0-1027.32UBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-azure-5.19no fix listedUBUNTU-CVE-2024-53052
Ubuntu:24.04:LTSlinux-azure-6.116.11.0-1012.12~24.04.1UBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-azure-6.2no fix listedUBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-azure-6.5no fix listedUBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-azure-6.86.8.0-1027.32~22.04.1UBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-azure-fde5.15.0-1081.90.1UBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-azure-fde-5.19no fix listedUBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-azure-fde-6.2no fix listedUBUNTU-CVE-2024-53052
Ubuntu:24.04:LTSlinux-azure-nvidia6.8.0-1014.15UBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-gcp5.15.0-1077.86UBUNTU-CVE-2024-53052
Ubuntu:24.04:LTSlinux-gcp6.8.0-1028.30UBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-gcp-5.19no fix listedUBUNTU-CVE-2024-53052
Ubuntu:24.04:LTSlinux-gcp-6.116.11.0-1011.11~24.04.1UBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-gcp-6.2no fix listedUBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-gcp-6.5no fix listedUBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-gcp-6.86.8.0-1028.30~22.04.1UBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-gke5.15.0-1075.81UBUNTU-CVE-2024-53052
Ubuntu:24.04:LTSlinux-gke6.8.0-1023.27UBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-gkeop5.15.0-1060.68UBUNTU-CVE-2024-53052
Ubuntu:24.04:LTSlinux-gkeop6.8.0-1010.12UBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-hwe-5.19no fix listedUBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-hwe-6.2no fix listedUBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-hwe-6.5no fix listedUBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-hwe-6.86.8.0-58.60~22.04.1UBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-ibm5.15.0-1070.73UBUNTU-CVE-2024-53052
Ubuntu:24.04:LTSlinux-ibm6.8.0-1024.24UBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-ibm-6.86.8.0-1024.24~22.04.1UBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-intel-iotg5.15.0-1073.79UBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-kvm5.15.0-1076.81UBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-lowlatency5.15.0-133.143UBUNTU-CVE-2024-53052
Ubuntu:24.04:LTSlinux-lowlatency6.8.0-58.60.1UBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-lowlatency-hwe-5.19no fix listedUBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.2no fix listedUBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.5no fix listedUBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.86.8.0-58.60.1~22.04.1UBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-nvidia5.15.0-1072.73UBUNTU-CVE-2024-53052
Ubuntu:24.04:LTSlinux-nvidia6.8.0-1026.29UBUNTU-CVE-2024-53052
Ubuntu:24.04:LTSlinux-nvidia-6.116.11.0-1007.7UBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-nvidia-6.2no fix listedUBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-nvidia-6.5no fix listedUBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-nvidia-6.86.8.0-1026.29~22.04.1UBUNTU-CVE-2024-53052
Ubuntu:24.04:LTSlinux-nvidia-lowlatency6.8.0-1026.29.1UBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-nvidia-tegra5.15.0-1033.33UBUNTU-CVE-2024-53052
Ubuntu:24.04:LTSlinux-nvidia-tegra6.8.0-1008.8UBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-nvidia-tegra-igx5.15.0-1021.21UBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-oem-5.17no fix listedUBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-oem-6.0no fix listedUBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-oem-6.1no fix listedUBUNTU-CVE-2024-53052
Ubuntu:24.04:LTSlinux-oem-6.116.11.0-1015.15UBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-oem-6.5no fix listedUBUNTU-CVE-2024-53052
Ubuntu:24.04:LTSlinux-oem-6.86.8.0-1026.26UBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-oracle5.15.0-1075.81UBUNTU-CVE-2024-53052
Ubuntu:24.04:LTSlinux-oracle6.8.0-1024.25UBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-oracle-6.5no fix listedUBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-oracle-6.86.8.0-1024.25~22.04.1UBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-raspi5.15.0-1072.75UBUNTU-CVE-2024-53052
Ubuntu:24.04:LTSlinux-raspi6.8.0-1028.32UBUNTU-CVE-2024-53052
Ubuntu:24.04:LTSlinux-raspi-realtimeno fix listedUBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-realtimeno fix listedUBUNTU-CVE-2024-53052
Ubuntu:24.04:LTSlinux-realtimeno fix listedUBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-riscvno fix listedUBUNTU-CVE-2024-53052
Ubuntu:24.04:LTSlinux-riscv6.8.0-58.60.1UBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-riscv-5.19no fix listedUBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-riscv-6.5no fix listedUBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-riscv-6.86.8.0-58.60.1~22.04.1UBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-starfive-5.19no fix listedUBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-starfive-6.2no fix listedUBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-starfive-6.5no fix listedUBUNTU-CVE-2024-53052
Ubuntu:24.04:LTSlinux-xilinx6.8.0-1017.18UBUNTU-CVE-2024-53052
Ubuntu:22.04:LTSlinux-xilinx-zynqmp5.15.0-1044.48UBUNTU-CVE-2024-53052

Affected products (as reported)

VendorProductVersions
Linux Linux 2b188cc1bb857a9d4701ae59aa7768b5124e262e – before 485d9232112b17f389b29497ff41b97b3189546b2b188cc1bb857a9d4701ae59aa7768b5124e262e – before 4e24041ba86d50aaa4c792ae2c88ed01b3d962432b188cc1bb857a9d4701ae59aa7768b5124e262e – before 9e8debb8e51354b201db494689198078ec2c1e752b188cc1bb857a9d4701ae59aa7768b5124e262e – before 003d2996964c03dfd34860500428f4cdf1f5879e2b188cc1bb857a9d4701ae59aa7768b5124e262e – before 26b8c48f369b7591f5679e0b90612f4862a329292b188cc1bb857a9d4701ae59aa7768b5124e262e – before 1d60d74e852647255bd8e76f5a22dc42531e4389
Linux Linux 5.1

Weakness: CWE-667 · Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H

References