Cloudanix VulnDB

CVE-2026-23157

Medium · 5.5

CVSS

5.5

EPSS

0.1%

Published

Feb 14, 2026

CISA due date

—

Cloudanix analysis

Next patch cycle SSVC: Track

A Linux kernel bug can freeze the whole computer during normal file operations when certain memory limits are reached.

Exploitation
Local Privilege
Attacker needs
Low Privilege
Complexity
Low
Impact
Denial Of Service
Component
OS kernel
Class
Denial of service
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Prevents Btrfs btree_writepages from writing back dirty metadata pages below an internal 32MiB threshold, creating a deadlock with cgroup dirty page balancing when dirty pages exceed the cgroup limit but remain under the Btrfs threshold.

Why it matters to the business

Can trigger system hangs or kernel crashes on Btrfs filesystems in memory-constrained cgroups, leading to unplanned downtime and operational disruption across affected Linux deployments.

How an attack unfolds

A workload or attacker dirties Btrfs metadata pages within a low-memory cgroup until dirty pages exceed the cgroup limit (e.g., 16MB) but stay below the 32MiB Btrfs threshold; processes then block indefinitely in balance_dirty_pages while Btrfs refuses writeback, resulting in a hang.

How to fix it

Upgrade the Linux kernel to include commit 629666d20c7dcd740e193ec0631fdff035b1f7d6, which removes the internal dirty threshold for external callers of btree_writepages; apply to all LTS kernels still affected.

How to confirm the fix worked

Confirm kernel source contains commit 629666d20c7dcd740e193ec0631fdff035b1f7d6; reproduce dirty-page scenarios under cgroups and verify writeback occurs without deadlock; monitor balance_dirty_pages behavior post-upgrade.

Typical attack path

  1. Create or identify a cgroup with a low dirty memory limit
  2. Perform Btrfs metadata modifications to accumulate dirty btree pages between the cgroup limit and 32MiB threshold
  3. Observe processes blocking in io_schedule_timeout within balance_dirty_pages
  4. Trigger system-wide hang or forced coredump

How to detect it

Search kernel logs and process traces for repeated io_schedule_timeout calls inside balance_dirty_pages; inspect for Btrfs btree inodes with dirty pages stuck between cgroup limit and 32MiB; correlate with cgroup memory controller events and any resulting kernel coredumps.

  • io_schedule_timeout
  • balance_dirty_pages
  • btree_writepages
  • dirty limit
  • cgroup dirty

What your security team should do

  • Prioritize kernel upgrade on all Btrfs systems within the next maintenance window due to hang risk
  • Audit cgroup configurations that constrain memory on Btrfs volumes
  • Implement monitoring for stuck processes in io_schedule_timeout
  • Test critical workloads under simulated dirty-page pressure after patching

The record

In the Linux kernel, the following vulnerability has been resolved: btrfs: do not strictly require dirty metadata threshold for metadata writepages [BUG] There is an internal report that over 1000 processes are waiting at the io_schedule_timeout() of balance_dirty_pages(), causing a system hang and trigger a kernel coredump. The kernel is v6.4 kernel based, but the root problem still applies to any upstream kernel before v6.18. [CAUSE] From Jan Kara for his wisdom on the dirty page balance behavior first. This cgroup dirty limit was what was actually playing the role here because the cgroup had only a small amount of memory and so the dirty limit for it was something like 16MB. Dirty throttling is responsible for enforcing that nobody can dirty (significantly) more dirty memory than there's dirty limit. Thus when a task is dirtying pages it periodically enters into balance_dirty_pages() and we let it sleep there to slow down the dirtying. When the system is over dirty limit already (either globally or within a cgroup of the running task), we will not let the task exit from balance_dirty_pages() until the number of dirty pages drops below the limit. So in this particular case, as I already mentioned, there was a cgroup with relatively small amount of memory and as a result with dirty limit set at 16MB. A task from that cgroup has dirtied about 28MB worth of pages in btrfs btree inode and these were practically the only dirty pages in that cgroup. So that means the only way to reduce the dirty pages of that cgroup is to writeback the dirty pages of btrfs btree inode, and only after that those processes can exit balance_dirty_pages(). Now back to the btrfs part, btree_writepages() is responsible for writing back dirty btree inode pages. The problem here is, there is a btrfs internal threshold that if the btree inode's dirty bytes are below the 32M threshold, it will not do any writeback. This behavior is to batch as much metadata as possible so we won't write back those tree blocks and then later re-COW them again for another modification. This internal 32MiB is higher than the existing dirty page size (28MiB), meaning no writeback will happen, causing a deadlock between btrfs and cgroup: - Btrfs doesn't want to write back btree inode until more dirty pages - Cgroup/MM doesn't want more dirty pages for btrfs btree inode Thus any process touching that btree inode is put into sleep until the number of dirty pages is reduced. Thanks Jan Kara a lot for the analysis of the root cause. [ENHANCEMENT] Since kernel commit b55102826d7d ("btrfs: set AS_KERNEL_FILE on the btree_inode"), btrfs btree inode pages will only be charged to the root cgroup which should have a much larger limit than btrfs' 32MiB threshold. So it should not affect newer kernels. But for all current LTS kernels, they are all affected by this problem, and backporting the whole AS_KERNEL_FILE may not be a good idea. Even for newer kernels I still think it's a good idea to get rid of the internal threshold at btree_writepages(), since for most cases cgroup/MM has a better view of full system memory usage than btrfs' fixed threshold. For internal callers using btrfs_btree_balance_dirty() since that function is already doing internal threshold check, we don't need to bother them. But for external callers of btree_writepages(), just respect their requests and write back whatever they want, ignoring the internal btrfs threshold to avoid such deadlock on btree inode dirty page balancing.

Affected packages

Ecosystem Package Introduced Fixed
Linux Kernel 2.6.29 6.18.9
SUSE:Linux Enterprise High Availability Extension 15 SP6 kernel-default 0 6.4.0-150600.23.92.1
SUSE:Linux Enterprise Live Patching 15 SP6 kernel-default 0 6.4.0-150600.23.92.1
SUSE:Linux Enterprise Live Patching 15 SP6 kernel-livepatch-SLE15-SP6_Update_21 0 1-150600.13.5.1
SUSE:Linux Enterprise Server 15 SP6-LTSS kernel-64kb 0 6.4.0-150600.23.92.1
SUSE:Linux Enterprise Server 15 SP6-LTSS kernel-default 0 6.4.0-150600.23.92.1
SUSE:Linux Enterprise Server 15 SP6-LTSS kernel-default-base 0 6.4.0-150600.23.92.1.150600.12.42.2
SUSE:Linux Enterprise Server 15 SP6-LTSS kernel-docs 0 6.4.0-150600.23.92.1
SUSE:Linux Enterprise Server 15 SP6-LTSS kernel-obs-build 0 6.4.0-150600.23.92.1
SUSE:Linux Enterprise Server 15 SP6-LTSS kernel-source 0 6.4.0-150600.23.92.1
SUSE:Linux Enterprise Server 15 SP6-LTSS kernel-syms 0 6.4.0-150600.23.92.1
SUSE:Linux Enterprise Server 15 SP6-LTSS kernel-zfcpdump 0 6.4.0-150600.23.92.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP6 kernel-default 0 6.4.0-150600.23.92.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP6 kernel-default-base 0 6.4.0-150600.23.92.1.150600.12.42.2
SUSE:Linux Enterprise Server for SAP Applications 15 SP6 kernel-docs 0 6.4.0-150600.23.92.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP6 kernel-obs-build 0 6.4.0-150600.23.92.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP6 kernel-source 0 6.4.0-150600.23.92.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP6 kernel-syms 0 6.4.0-150600.23.92.1
openSUSE:Leap 15.6 dtb-aarch64 0 6.4.0-150600.23.92.1
openSUSE:Leap 15.6 kernel-64kb 0 6.4.0-150600.23.92.1
openSUSE:Leap 15.6 kernel-debug 0 6.4.0-150600.23.92.1
openSUSE:Leap 15.6 kernel-default 0 6.4.0-150600.23.92.1
openSUSE:Leap 15.6 kernel-default-base 0 6.4.0-150600.23.92.1.150600.12.42.2
openSUSE:Leap 15.6 kernel-docs 0 6.4.0-150600.23.92.1
openSUSE:Leap 15.6 kernel-kvmsmall 0 6.4.0-150600.23.92.1
openSUSE:Leap 15.6 kernel-obs-build 0 6.4.0-150600.23.92.1
openSUSE:Leap 15.6 kernel-obs-qa 0 6.4.0-150600.23.92.1
openSUSE:Leap 15.6 kernel-source 0 6.4.0-150600.23.92.1
openSUSE:Leap 15.6 kernel-syms 0 6.4.0-150600.23.92.1
openSUSE:Leap 15.6 kernel-zfcpdump 0 6.4.0-150600.23.92.1
openSUSE:Leap 16.0 dtb-aarch64 0 6.12.0-160000.27.1
openSUSE:Leap 16.0 kernel-64kb 0 6.12.0-160000.27.1
openSUSE:Leap 16.0 kernel-azure 0 6.12.0-160000.27.1
openSUSE:Leap 16.0 kernel-default 0 6.12.0-160000.27.1
openSUSE:Leap 16.0 kernel-default-base 0 6.12.0-160000.27.1.160000.2.8
openSUSE:Leap 16.0 kernel-docs 0 6.12.0-160000.27.1
openSUSE:Leap 16.0 kernel-kvmsmall 0 6.12.0-160000.27.1
openSUSE:Leap 16.0 kernel-obs-build 0 6.12.0-160000.27.1
openSUSE:Leap 16.0 kernel-obs-qa 0 6.12.0-160000.27.1
openSUSE:Leap 16.0 kernel-rt 0 6.12.0-160000.27.1
openSUSE:Leap 16.0 kernel-source 0 6.12.0-160000.27.1
openSUSE:Leap 16.0 kernel-syms 0 6.12.0-160000.27.1
openSUSE:Leap 16.0 kernel-zfcpdump 0 6.12.0-160000.27.1

Related vulnerabilities