LiveActive security incident?Get immediate response
CVE Record

CVE-2026-23157: btrfs: do not strictly require dirty metadata threshold for metadata writepages

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.

UnknownCVSS not scoredNot KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

This Linux kernel btrfs issue can make systems hang when memory-control groups and btrfs metadata writeback disagree about dirty-page limits. The impact described is availability loss, including many blocked processes and a kernel coredump. No source in the bundle reports active exploitation.

Executive priority

Treat as a targeted availability risk, not an emergency code-execution issue. Patch during the next suitable kernel maintenance window, faster for production btrfs hosts running containers or constrained cgroups.

Technical view

btree_writepages() could refuse metadata writeback below btrfs' internal 32 MiB threshold while cgroup dirty throttling required dirty pages to fall below a smaller limit. That deadlock leaves tasks sleeping in balance_dirty_pages(). The fix makes external writeback requests bypass the btrfs threshold.

Likely exposure

Exposure is most relevant on Linux systems using btrfs with cgroup memory limits, especially containerized or constrained workloads. The source says upstream kernels before v6.18 and current LTS kernels were affected, with stable kernel commits referenced as fixes.

Exploitation context

The bundle describes an internal report and root-cause analysis, not public exploitation. KEV is false, and no exploit status is cited. Triggering appears dependent on btrfs metadata dirtying under constrained cgroup dirty limits, producing denial of service rather than code execution.

Researcher notes

The evidence supports a btrfs/cgroup dirty-page deadlock. Severity metadata is missing, CWE is not provided, and the bundle does not define complete distro package ranges. Avoid assuming impact beyond system hang and kernel coredump described by the source.

Mitigation direction

  • Update to a vendor kernel containing the referenced stable btrfs fix.
  • Prioritize btrfs hosts running memory-limited cgroups or container workloads.
  • Check distribution advisories for the exact fixed package version.
  • Monitor affected hosts for repeated dirty-page throttling hangs.
  • If patching is delayed, review vendor guidance for operational workarounds.

Validation and detection

  • Inventory Linux kernel versions on btrfs-backed systems.
  • Confirm whether deployed kernels include one of the referenced stable commits.
  • Identify workloads using cgroup memory limits on btrfs hosts.
  • Review incident logs for hangs involving balance_dirty_pages() or btree_writepages().
  • Verify patched systems no longer match the affected vendor advisory range.
Prepared
Confidence
high
Sources
8

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cve · low confidence lookup

CVE-2026-23157 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Unknown
CVSS
Not scored
Known Exploited
No
Published
Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

0CVSS vectors
3Timeline events
0ADP providers
7Source links

Vulnerability timeline

Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.

  1. CVE reservedCVE Program

    The CVE ID was reserved by the assigning CNA.

  2. CVE publishedCVE Program

    The CVE record was published.

  3. CVE updatedCVE Program

    The CVE record metadata indicates this as the latest update time.

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
LinuxLinux793955bca66c99defdffc857ae6eb7e8431d6bbe, 793955bca66c99defdffc857ae6eb7e8431d6bbe, 793955bca66c99defdffc857ae6eb7e8431d6bbe, 793955bca66c99defdffc857ae6eb7e8431d6bbe, 793955bca66c99defdffc857ae6eb7e8431d6bbe, 793955bca66c99defdffc857ae6eb7e8431d6bbeunaffected
LinuxLinux2.6.29, 0, 5.15.209, 6.1.167, 6.6.130, 6.12.78, 6.18.9, 6.19affected
Weakness

CWE details

No CWE listed

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.