Vulnerability · Published Jan 21, 2025 · Assigned by Linux
CVE-2024-57941netfs: Fix the (non-)cancellation of copy when cache is temporarily disabled
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 7% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
In the Linux kernel, the following vulnerability has been resolved: netfs: Fix the (non-)cancellation of copy when cache is temporarily disabled When the caching for a cookie is temporarily disabled (e.g. due to a DIO write on that file), future copying to the cache for that file is disabled until all fds open on that file are closed. However, if netfslib is using the deprecated PG_private_2 method (such as is currently used by ceph), and decides it wants to copy to the cache, netfs_advance_write() will just bail at the first check seeing that the cache stream is unavailable, and indicate that it dealt with all the content. This means that we have no subrequests to provide notifications to drive the state machine or even to pin the request and the request just gets discarded, leaving the folios with PG_private_2 set. Fix this by jumping directly to cancel the request if the cache is not available. That way, we don't remove mark3 from the folio_queue list and netfs_pgpriv2_cancel() will clean up the folios. This was found by running the generic/013 xfstest against ceph with an active cache and the "-o fsc" option passed to ceph. That would usually hang
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:10 | kernel | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-64k | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-64k-core | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-64k-debug | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-64k-debug-core | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-64k-debug-devel | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-64k-debug-devel-matched | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-64k-debug-modules | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-64k-debug-modules-core | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-64k-debug-modules-extra | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-64k-devel | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-64k-devel-matched | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-64k-modules | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-64k-modules-core | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-64k-modules-extra | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-abi-stablelists | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-core | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-cross-headers | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-debug | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-debug-core | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-debug-devel | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-debug-devel-matched | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-debug-modules | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-debug-modules-core | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-debug-modules-extra | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-debug-uki-virt | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-devel | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-devel-matched | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-doc | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-headers | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-modules | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-modules-core | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-modules-extra | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-modules-extra-matched | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-rt | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-rt-64k | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-rt-64k-core | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-rt-64k-debug | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-rt-64k-debug-core | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-rt-64k-debug-devel | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-rt-64k-debug-modules | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-rt-64k-debug-modules-core | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-rt-64k-debug-modules-extra | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-rt-64k-devel | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-rt-64k-modules | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-rt-64k-modules-core | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-rt-64k-modules-extra | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-rt-core | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-rt-debug | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-rt-debug-core | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-rt-debug-devel | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-rt-debug-modules | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-rt-debug-modules-core | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-rt-debug-modules-extra | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-rt-devel | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-rt-modules | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-rt-modules-core | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-rt-modules-extra | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-tools | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-tools-libs | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-tools-libs-devel | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-uki-virt | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-uki-virt-addons | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-zfcpdump | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-zfcpdump-core | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-zfcpdump-devel | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-zfcpdump-devel-matched | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-zfcpdump-modules | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-zfcpdump-modules-core | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | kernel-zfcpdump-modules-extra | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | libperf | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | perf | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | python3-perf | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | rtla | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| AlmaLinux:10 | rv | 6.12.0-124.8.1.el10_1 | ALSA-2025:20095 |
| Debian:13 | linux | 6.12.10-1 | DEBIAN-CVE-2024-57941 |
| Debian:14 | linux | 6.12.10-1 | DEBIAN-CVE-2024-57941 |
| Rocky Linux:10 | kernel | 0:6.12.0-124.8.1.el10_1 | RLSA-2025:20095 |
| Ubuntu:22.04:LTS | linux-allwinner-5.19 | no fix listed | UBUNTU-CVE-2024-57941 |
| Ubuntu:22.04:LTS | linux-aws-5.19 | no fix listed | UBUNTU-CVE-2024-57941 |
| Ubuntu:22.04:LTS | linux-aws-6.2 | no fix listed | UBUNTU-CVE-2024-57941 |
| Ubuntu:22.04:LTS | linux-aws-6.5 | no fix listed | UBUNTU-CVE-2024-57941 |
| Ubuntu:22.04:LTS | linux-azure-5.19 | no fix listed | UBUNTU-CVE-2024-57941 |
| Ubuntu:22.04:LTS | linux-azure-6.2 | no fix listed | UBUNTU-CVE-2024-57941 |
| Ubuntu:22.04:LTS | linux-azure-6.5 | no fix listed | UBUNTU-CVE-2024-57941 |
| Ubuntu:22.04:LTS | linux-azure-fde-5.19 | no fix listed | UBUNTU-CVE-2024-57941 |
| Ubuntu:22.04:LTS | linux-azure-fde-6.2 | no fix listed | UBUNTU-CVE-2024-57941 |
| Ubuntu:22.04:LTS | linux-gcp-5.19 | no fix listed | UBUNTU-CVE-2024-57941 |
| Ubuntu:22.04:LTS | linux-gcp-6.2 | no fix listed | UBUNTU-CVE-2024-57941 |
| Ubuntu:22.04:LTS | linux-gcp-6.5 | no fix listed | UBUNTU-CVE-2024-57941 |
| Ubuntu:22.04:LTS | linux-hwe-5.19 | no fix listed | UBUNTU-CVE-2024-57941 |
| Ubuntu:22.04:LTS | linux-hwe-6.2 | no fix listed | UBUNTU-CVE-2024-57941 |
| Ubuntu:22.04:LTS | linux-hwe-6.5 | no fix listed | UBUNTU-CVE-2024-57941 |
| Ubuntu:22.04:LTS | linux-intel-iot-realtime | no fix listed | UBUNTU-CVE-2024-57941 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-5.19 | no fix listed | UBUNTU-CVE-2024-57941 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.2 | no fix listed | UBUNTU-CVE-2024-57941 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.5 | no fix listed | UBUNTU-CVE-2024-57941 |
| Ubuntu:22.04:LTS | linux-nvidia-6.2 | no fix listed | UBUNTU-CVE-2024-57941 |
| Ubuntu:22.04:LTS | linux-nvidia-6.5 | no fix listed | UBUNTU-CVE-2024-57941 |
| Ubuntu:22.04:LTS | linux-oem-5.17 | no fix listed | UBUNTU-CVE-2024-57941 |
| Ubuntu:22.04:LTS | linux-oem-6.0 | no fix listed | UBUNTU-CVE-2024-57941 |
| Ubuntu:22.04:LTS | linux-oem-6.1 | no fix listed | UBUNTU-CVE-2024-57941 |
| Ubuntu:22.04:LTS | linux-oem-6.5 | no fix listed | UBUNTU-CVE-2024-57941 |
| Ubuntu:22.04:LTS | linux-oracle-6.5 | no fix listed | UBUNTU-CVE-2024-57941 |
| Ubuntu:24.04:LTS | linux-raspi-realtime | no fix listed | UBUNTU-CVE-2024-57941 |
| Ubuntu:22.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2024-57941 |
| Ubuntu:22.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2024-57941 |
| Ubuntu:22.04:LTS | linux-riscv-5.19 | no fix listed | UBUNTU-CVE-2024-57941 |
| Ubuntu:22.04:LTS | linux-riscv-6.5 | no fix listed | UBUNTU-CVE-2024-57941 |
| Ubuntu:22.04:LTS | linux-starfive-5.19 | no fix listed | UBUNTU-CVE-2024-57941 |
| Ubuntu:22.04:LTS | linux-starfive-6.2 | no fix listed | UBUNTU-CVE-2024-57941 |
| Ubuntu:22.04:LTS | linux-starfive-6.5 | no fix listed | UBUNTU-CVE-2024-57941 |