CVE-2026-139197

ceph: fix writeback_count leak when a bounce page allocation fails

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

ceph: fix writeback_count leak when a bounce page allocation fails

ceph_process_folio_batch() calls is_write_congestion_happened(), which
increments fsc->writeback_count, before calling
move_dirty_folio_in_page_array(). If the fscrypt bounce page allocation
there fails, the folio is redirtied and never makes it into the page
array, but the count is never dropped.

write_congested is only cleared when a decrement falls below
CONGESTION_OFF_THRESH, so the leaked counts set congestion early and
eventually leave write_congested set for good. Every WB_SYNC_NONE
writeback then returns 0 and background writeback stops entirely.

Bump the count only once the folio is in the page array.

Analysis

AI-generated

Technical impact

A logic flaw in the Linux kernel ceph module causes the writeback counter to be incremented when a bounce page allocation is attempted, but the counter is never decremented if that allocation fails. The remaining counter causes the writeback congestion flag to remain permanently set, resulting in all subsequent WB_SYNC_NONE writebacks returning immediately and effectively stopping background writeback. This flaw demonstrates improper initialization (CWE-665) and information leakage from uninitialized memory (CWE-388).

Affected Systems

The vulnerability affects any Linux kernel build that contains the ceph module code path where this counter is manipulated. No specific version range is supplied, so any kernel prior to the fix is potentially impacted. The issue is observed when ceph services are running and writeback operations occur.

Risk and Exploitability

The CVSS score is not disclosed and the EPSS score is unavailable, but kernel developers describe it as a denial of service condition. The flaw is local to the host running the affected kernel and requires an event that causes a bounce page allocation to fail, such as memory contention or intentional kernel manipulation. It is not listed in the CISA KEV catalog and no public exploit has been reported, so the likelihood of exploitation is limited, though the impact on affected systems is significant if the counter leak persists.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a Linux kernel release that includes the ceph writeback counter fix.
  • If ceph services are running, restart them after the kernel upgrade to load the corrected module.
  • Verify that background writeback resumes by inspecting kernel logs for bounce allocation errors and ensuring the writeback counter does not remain spuriously high.

Generated by OpenCVE AI on December 1, 2026 at 21:02 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-388
CWE-665
Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Weaknesses CWE-772
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-388
CWE-665
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ceph: fix writeback_count leak when a bounce page allocation fails ceph_process_folio_batch() calls is_write_congestion_happened(), which increments fsc->writeback_count, before calling move_dirty_folio_in_page_array(). If the fscrypt bounce page allocation there fails, the folio is redirtied and never makes it into the page array, but the count is never dropped. write_congested is only cleared when a decrement falls below CONGESTION_OFF_THRESH, so the leaked counts set congestion early and eventually leave write_congested set for good. Every WB_SYNC_NONE writeback then returns 0 and background writeback stops entirely. Bump the count only once the folio is in the page array.
Title ceph: fix writeback_count leak when a bounce page allocation fails
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-772

    Missing Release of Resource after Effective Lifetime

Sources

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