Vulnerability · Published Jan 21, 2025 · Assigned by Linux
CVE-2024-57942netfs: Fix ceph copy to cache on write-begin
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 ceph copy to cache on write-begin At the end of netfs_unlock_read_folio() in which folios are marked appropriately for copying to the cache (either with by being marked dirty and having their private data set or by having PG_private_2 set) and then unlocked, the folio_queue struct has the entry pointing to the folio cleared. This presents a problem for netfs_pgpriv2_write_to_the_cache(), which is used to write folios marked with PG_private_2 to the cache as it expects to be able to trawl the folio_queue list thereafter to find the relevant folios, leading to a hang. Fix this by not clearing the folio_queue entry if we're going to do the deprecated copy-to-cache. The clearance will be done instead as the folios are written to the cache. This can be reproduced by starting cachefiles, mounting a ceph filesystem with "-o fsc" and writing to it.
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-57942 |
| Debian:14 | linux | 6.12.10-1 | DEBIAN-CVE-2024-57942 |
| 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-57942 |
| Ubuntu:22.04:LTS | linux-aws-5.19 | no fix listed | UBUNTU-CVE-2024-57942 |
| Ubuntu:22.04:LTS | linux-aws-6.2 | no fix listed | UBUNTU-CVE-2024-57942 |
| Ubuntu:22.04:LTS | linux-aws-6.5 | no fix listed | UBUNTU-CVE-2024-57942 |
| Ubuntu:22.04:LTS | linux-azure-5.19 | no fix listed | UBUNTU-CVE-2024-57942 |
| Ubuntu:22.04:LTS | linux-azure-6.2 | no fix listed | UBUNTU-CVE-2024-57942 |
| Ubuntu:22.04:LTS | linux-azure-6.5 | no fix listed | UBUNTU-CVE-2024-57942 |
| Ubuntu:22.04:LTS | linux-azure-fde-5.19 | no fix listed | UBUNTU-CVE-2024-57942 |
| Ubuntu:22.04:LTS | linux-azure-fde-6.2 | no fix listed | UBUNTU-CVE-2024-57942 |
| Ubuntu:22.04:LTS | linux-gcp-5.19 | no fix listed | UBUNTU-CVE-2024-57942 |
| Ubuntu:22.04:LTS | linux-gcp-6.2 | no fix listed | UBUNTU-CVE-2024-57942 |
| Ubuntu:22.04:LTS | linux-gcp-6.5 | no fix listed | UBUNTU-CVE-2024-57942 |
| Ubuntu:22.04:LTS | linux-hwe-5.19 | no fix listed | UBUNTU-CVE-2024-57942 |
| Ubuntu:22.04:LTS | linux-hwe-6.2 | no fix listed | UBUNTU-CVE-2024-57942 |
| Ubuntu:22.04:LTS | linux-hwe-6.5 | no fix listed | UBUNTU-CVE-2024-57942 |
| Ubuntu:22.04:LTS | linux-intel-iot-realtime | no fix listed | UBUNTU-CVE-2024-57942 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-5.19 | no fix listed | UBUNTU-CVE-2024-57942 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.2 | no fix listed | UBUNTU-CVE-2024-57942 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.5 | no fix listed | UBUNTU-CVE-2024-57942 |
| Ubuntu:22.04:LTS | linux-nvidia-6.2 | no fix listed | UBUNTU-CVE-2024-57942 |
| Ubuntu:22.04:LTS | linux-nvidia-6.5 | no fix listed | UBUNTU-CVE-2024-57942 |
| Ubuntu:22.04:LTS | linux-oem-5.17 | no fix listed | UBUNTU-CVE-2024-57942 |
| Ubuntu:22.04:LTS | linux-oem-6.0 | no fix listed | UBUNTU-CVE-2024-57942 |
| Ubuntu:22.04:LTS | linux-oem-6.1 | no fix listed | UBUNTU-CVE-2024-57942 |
| Ubuntu:22.04:LTS | linux-oem-6.5 | no fix listed | UBUNTU-CVE-2024-57942 |
| Ubuntu:22.04:LTS | linux-oracle-6.5 | no fix listed | UBUNTU-CVE-2024-57942 |
| Ubuntu:24.04:LTS | linux-raspi-realtime | no fix listed | UBUNTU-CVE-2024-57942 |
| Ubuntu:22.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2024-57942 |
| Ubuntu:22.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2024-57942 |
| Ubuntu:22.04:LTS | linux-riscv-5.19 | no fix listed | UBUNTU-CVE-2024-57942 |
| Ubuntu:22.04:LTS | linux-riscv-6.5 | no fix listed | UBUNTU-CVE-2024-57942 |
| Ubuntu:22.04:LTS | linux-starfive-5.19 | no fix listed | UBUNTU-CVE-2024-57942 |
| Ubuntu:22.04:LTS | linux-starfive-6.2 | no fix listed | UBUNTU-CVE-2024-57942 |
| Ubuntu:22.04:LTS | linux-starfive-6.5 | no fix listed | UBUNTU-CVE-2024-57942 |