{"id":"CVE-2026-139198","aliases":["CVE-2026-139198"],"related":[],"kind":"vulnerability","state":"published","title":"ceph: wait for pending fscache write in write_folio_nounlock()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nceph: wait for pending fscache write in write_folio_nounlock()\n\nwrite_folio_nounlock() marks the folio with PG_private_2 via\nceph_set_page_fscache() and starts an async write to the cache via\nceph_fscache_write_to_cache(). PG_private_2 is only cleared once that\nwrite completes.\n\nIf the OSD write fails, the error paths return without waiting for the\ncache write. On retry, ceph_find_incompatible() would wait for\nwriteback, but not for PG_private_2, before calling\nwrite_folio_nounlock() again, which would trip the VM_BUG_ON_FOLIO() in\nfolio_start_private_2().\n\nWait for any pending cache write before starting writeback on the\nfolio. Do so before bumping the writeback congestion count and\nallocating the possibly mempool-backed OSD request, so that a thread\nsleeping on the cache I/O does not hold either while it waits.\nAdd ceph_folio_wait_fscache(), a wrapper for folio_wait_private_2(), and\nuse it.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nceph: wait for pending fscache write in write_folio_nounlock()\n\nwrite_folio_nounlock() marks the folio with PG_private_2 via\nceph_set_page_fscache() and starts an async write to the cache via\nceph_fscache_write_to_cache(). PG_private_2 is only cleared once that\nwrite completes.\n\nIf the OSD write fails, the error paths return without waiting for the\ncache write. On retry, ceph_find_incompatible() would wait for\nwriteback, but not for PG_private_2, before calling\nwrite_folio_nounlock() again, which would trip the VM_BUG_ON_FOLIO() in\nfolio_start_private_2().\n\nWait for any pending cache write before starting writeback on the\nfolio. Do so before bumping the writeback congestion count and\nallocating the possibly mempool-backed OSD request, so that a thread\nsleeping on the cache I/O does not hold either while it waits.\nAdd ceph_folio_wait_fscache(), a wrapper for folio_wait_private_2(), and\nuse it.","source":"cvelist"}],"published":"2026-11-30T13:32:29.198Z","modified":"2026-12-01T06:17:38.697Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"1702e79734104d711a84ff55bd6a93c21947bc01","fixed":"50144d879dd560f8159bd2693c27117682831cea","status":"affected"},{"type":"git","introduced":"1702e79734104d711a84ff55bd6a93c21947bc01","fixed":"ae64bc161e68feb6b83a331db45af372e02f3470","status":"affected"},{"type":"git","introduced":"1702e79734104d711a84ff55bd6a93c21947bc01","fixed":"c335168835626e75adb726a35b82d0c50abe16d1","status":"affected"},{"type":"git","introduced":"1702e79734104d711a84ff55bd6a93c21947bc01","fixed":"3f7655f0d9186656c6f1cbc012a39c866d4aaabf","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.17","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.17","status":"unaffected"},{"type":"semver","introduced":"6.12.120","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/50144d879dd560f8159bd2693c27117682831cea","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ae64bc161e68feb6b83a331db45af372e02f3470","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c335168835626e75adb726a35b82d0c50abe16d1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3f7655f0d9186656c6f1cbc012a39c866d4aaabf","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139198","url":"https://www.cve.org/CVERecord?id=CVE-2026-139198","licence":"CVE Terms of Use","modified":"2026-12-01T05:41:45.903Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139198","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139198","licence":"Public domain","modified":"2026-12-01T06:17:38.697Z"}],"updatedAt":"2026-12-01T06:32:24.510Z","epss":{"score":0.00165,"percentile":0.05984,"date":"2026-12-01T12:00:22.000Z"}}