{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "1702e79734104d711a84ff55bd6a93c21947bc01"
            },
            {
              "fixed": "50144d879dd560f8159bd2693c27117682831cea"
            },
            {
              "fixed": "ae64bc161e68feb6b83a331db45af372e02f3470"
            },
            {
              "fixed": "c335168835626e75adb726a35b82d0c50abe16d1"
            },
            {
              "fixed": "3f7655f0d9186656c6f1cbc012a39c866d4aaabf"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "5.17.0"
            },
            {
              "fixed": "6.12.120"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.65"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.6"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139198.json"
  },
  "details": "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.",
  "id": "CVE-2026-139198",
  "modified": "2026-11-30T14:45:19.766619261Z",
  "published": "2026-11-30T13:32:29.198Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/3f7655f0d9186656c6f1cbc012a39c866d4aaabf"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/50144d879dd560f8159bd2693c27117682831cea"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/ae64bc161e68feb6b83a331db45af372e02f3470"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c335168835626e75adb726a35b82d0c50abe16d1"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139198.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139198"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "ceph: wait for pending fscache write in write_folio_nounlock()"
}