AZL-116947: CVE-2026-139198 affecting package kernel 6.6.161.1-1
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
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In Ceph, add ceph_folio_wait_fscache() as a wrapper for folio_wait_private_2(), and wait for any pending cache write before starting writeback on the folio, before bumping the writeback congestion count.
Event History
Frequently Asked Questions
Which workloads are most likely to encounter this issue?
The affected path is Ceph writeback using fscache. The failure sequence requires an asynchronous cache write to still be pending when an OSD write fails and the folio is retried.
What symptom could indicate that this condition was reached?
A retry can call write_folio_nounlock() while PG_private_2 remains set on the folio, triggering VM_BUG_ON_FOLIO() in folio_start_private_2().
What does the resolved change do?
It waits for any pending fscache write before beginning writeback on the folio. The wait occurs before increasing the writeback congestion count or allocating a potentially mempool-backed OSD request.