CVE-2024-57942: netfs: Fix ceph copy to cache on write-begin

Published Jan 21, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

netfs: Fix ceph copy to cache on write-begin

At the end of netfsunlockreadfolio() 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 PGprivate2 set) and then unlocked, the folioqueue struct has the entry pointing to the folio cleared. This presents a problem for netfspgpriv2writetothecache(), which is used to write folios marked with PGprivate2 to the cache as it expects to be able to trawl the folioqueue list thereafter to find the relevant folios, leading to a hang.

Fix this by not clearing the folioqueue 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 Software

8 affected components
Linux Linux kernel
Linux Linux kernel>=6.12<6.12.10
Linux Linux kernel=6.13-rc1
Linux Linux kernel=6.13-rc2
Linux Linux kernel=6.13-rc3
Linux Linux kernel=6.13-rc4
Linux Linux kernel=6.13-rc5
Linux Linux kernel=6.13-rc6

Event History

Jan 21, 2025
CVE Published
via MITRE·12:18 PM
Data Sourced
via MITRE·12:18 PM
Description
Data Sourced
via Red Hat·01:03 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·01:15 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-57942?

The severity of CVE-2024-57942 has not been explicitly reported, but it addresses vulnerabilities in the Linux kernel's netfs subsystem.

2

How do I fix CVE-2024-57942?

To fix CVE-2024-57942, you should update your Linux kernel to the latest stable version provided by your distribution.

3

What systems are affected by CVE-2024-57942?

CVE-2024-57942 affects systems running vulnerable versions of the Linux kernel that utilize the netfs framework.

4

Is CVE-2024-57942 exploitable remotely?

There is currently no information indicating that CVE-2024-57942 is remotely exploitable, as it relates to the handling of data internally in the kernel.

5

When was CVE-2024-57942 announced?

CVE-2024-57942 was resolved in recent updates, but the exact announcement date is not specified in the provided information.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203