CVE-2026-139198
ceph: wait for pending fscache write in write_folio_nounlock()
Check your servers for CVE-2026-139198
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-139198 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.16%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 5.98% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 1702e79734104d711a84ff55bd6a93c21947bc01, before 50144d879dd560f8159bd2693c27117682831cea affected from 1702e79734104d711a84ff55bd6a93c21947bc01, before ae64bc161e68feb6b83a331db45af372e02f3470 affected from 1702e79734104d711a84ff55bd6a93c21947bc01, before c335168835626e75adb726a35b82d0c50abe16d1 affected from 1702e79734104d711a84ff55bd6a93c21947bc01, before 3f7655f0d9186656c6f1cbc012a39c866d4aaabf
Other versions: unaffected
|
| Linux |
affected 5.17 unaffected before 5.17 unaffected from 6.12.120 up to and including 6.12.* unaffected from 6.18.65 up to and including 6.18.* unaffected from 7.3.6 up to and including 7.3.* unaffected 7.4-rc1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-139198 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-139198
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-139198
trivy image --scanners vuln IMAGE | grep CVE-2026-139198
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/50144d879dd560f8159bd2693c27117682831cea git.kernel.org
- https://git.kernel.org/stable/c/ae64bc161e68feb6b83a331db45af372e02f3470 git.kernel.org
- https://git.kernel.org/stable/c/c335168835626e75adb726a35b82d0c50abe16d1 git.kernel.org
- https://git.kernel.org/stable/c/3f7655f0d9186656c6f1cbc012a39c866d4aaabf git.kernel.org
Source: the record CVE-2026-139198 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse