CVE-2026-139198

ceph: wait for pending fscache write in write_folio_nounlock()

Published Nov 30, 2026 CVSS 3.1 · 7 High EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

ceph: wait for pending fscache write in write_folio_nounlock()

write_folio_nounlock() marks the folio with PG_private_2 via
ceph_set_page_fscache() and starts an async write to the cache via
ceph_fscache_write_to_cache(). PG_private_2 is only cleared once that
write completes.

If the OSD write fails, the error paths return without waiting for the
cache write. On retry, ceph_find_incompatible() would wait for
writeback, but not for PG_private_2, before calling
write_folio_nounlock() again, which would trip the VM_BUG_ON_FOLIO() in
folio_start_private_2().

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 ceph_folio_wait_fscache(), a wrapper for folio_wait_private_2(), and
use it.

Analysis

AI-generated

Technical impact

write_folio_nounlock() is part of the Ceph filesystem implementation in the Linux kernel. The function initiates an asynchronous cache write that is monitored via a private flag. When an object storage daemon (OSD) write fails, the error paths return without waiting for the cache write to complete. A subsequent retry causes ceph_find_incompatible() to call write_folio_nounlock() again while the private flag remains set, leading a VM_BUG_ON to fire in folio_start_private_2(). This race condition forces a kernel panic and effectively denies service to the affected node.

Affected Systems

The flaw exists within the generic Linux kernel Ceph integration. Any Linux distribution shipping a kernel version that predates the patch commit fixing this issue is affected. The exact kernel versions are not enumerated in the advisory, but all releases before the inclusion of the ceph_folio_wait_fscache patch carry the vulnerability.

Risk and Exploitability

The obstruction of cache writes and the resulting kernel crash represent a severe integrity and availability failure. The CVSS score of 7.0 classifies this vulnerability as High, indicating a substantial impact on system stability. Because the bug is triggered by a race condition in kernel execution paths, the exploitation barrier is inferred to be low for an attacker with sufficient privilege to trigger Ceph re‑writes or who can force OSD retries. The EPSS score is < 1% and the issue is not listed in CISA’s KEV catalog, suggesting that no publicly documented exploits are known; however, the severity of a kernel panic warrants immediate action.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that contains the ceph_folio_wait_fscache patch.
  • Disable or limit Ceph fscache write operations, or reduce OSD retry attempts, to minimize the chance of the race condition occurring.
  • Continuously monitor the affected nodes until the kernel update is applied or an official workaround is released.

Generated by OpenCVE AI on December 2, 2026 at 12:42 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-754
CWE-790
Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Weaknesses CWE-754
CWE-790
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ceph: wait for pending fscache write in write_folio_nounlock() write_folio_nounlock() marks the folio with PG_private_2 via ceph_set_page_fscache() and starts an async write to the cache via ceph_fscache_write_to_cache(). PG_private_2 is only cleared once that write completes. If the OSD write fails, the error paths return without waiting for the cache write. On retry, ceph_find_incompatible() would wait for writeback, but not for PG_private_2, before calling write_folio_nounlock() again, which would trip the VM_BUG_ON_FOLIO() in folio_start_private_2(). 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 ceph_folio_wait_fscache(), a wrapper for folio_wait_private_2(), and use it.
Title ceph: wait for pending fscache write in write_folio_nounlock()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Dec 1, 2026, 5:41 AM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Dec 1, 2026, 6:17 AM
Severity
Moderate
Public date
Nov 30, 2026, 1:32 PM