CVE-2026-139198: ceph: wait for pending fscache write in write_folio_nounlock()

Published Nov 30, 2026
·
Updated

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

ceph: wait for pending fscache write in writefolionounlock()

writefolionounlock() marks the folio with PGprivate2 via cephsetpagefscache() and starts an async write to the cache via cephfscachewritetocache(). PGprivate2 is only cleared once that write completes.

If the OSD write fails, the error paths return without waiting for the cache write. On retry, cephfindincompatible() would wait for writeback, but not for PGprivate2, before calling writefolionounlock() again, which would trip the VMBUGONFOLIO() in foliostartprivate2().

Wait for any pending cache write before starting writeback on the folio. Do so before bumping the writeback congestion count and allocating the possibly mempool-backed OSD request, so that a thread sleeping on the cache I/O does not hold either while it waits. Add cephfoliowaitfscache(), a wrapper for foliowaitprivate2(), and use it.

Affected Software

7 affected componentsFixes available
Linux Linux kernel
linux/kernel>=5.17.0<6.12.120
6.12.120
linux/kernel>=6.13.0<6.18.65
6.18.65
linux/kernel>=6.19.0<7.3.6
7.3.6
debian/linux*
debian/linux*
debian/linux<7.3.6-1
7.3.6-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.120
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.65
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.6
  4. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 7.3.6-1
  5. Compensating control

    In the Ceph kernel client, add ceph_folio_wait_fscache() as a wrapper for folio_wait_private_2() and use it to wait for pending cache writes before starting writeback and before bumping the writeback congestion count.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:32 PM
Data Sourced
via MITRE·01:32 PM
Description
Data Sourced
via OSV·01:32 PM
DescriptionAffected Software
Data Sourced
via NVD·02:18 PM
Description

Frequently Asked Questions

1

Under what conditions can this issue be triggered?

The failure path requires a Ceph OSD write to fail while an asynchronous FS-Cache write for the same folio is still pending. A subsequent retry of writeback on that folio can then reach the VM_BUG_ON_FOLIO() check.

2

What configurations are exposed?

Systems using the Linux kernel Ceph client with FS-Cache activity are implicated, because the fault involves an asynchronous cache write tracked with PG_private_2. The provided information does not identify whether FS-Cache is enabled by default.

3

What does the fix change?

The fix waits for any pending FS-Cache write on the folio before starting writeback again. It performs that wait before increasing writeback congestion accounting or allocating a potentially mempool-backed OSD request.

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