CVE-2026-23157
- 공개
- 2026년 2월 15일
- 수정
- 2026년 11월 6일
- 조회
- 0
- 상태
- Modified
개요
이 취약점이 무엇인지
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.
실제 악용 사례 · 아직 확인된 사례가 없어요
CISA의 KEV 카탈로그(실제 공격에 악용된 취약점 목록)에 아직 올라와 있지 않아요. 다만 ‘앞으로도 안전하다’는 뜻은 아니니 심각도와 EPSS를 함께 확인하세요.
패치 현황
어떤 버전이 위험하고, 몇 버전으로 올리면 되는지
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| linux_kernellinux | 2.6.29 | ≤ | 취약 | < | 6.18.9 | 6.18.9이상 |
| 이 버전만 | 취약 | = | 6.19 rc1 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.19 rc2 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.19 rc3 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.19 rc4 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.19 rc5 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.19 rc6 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.19 rc7 | 벤더 공지 확인 | ||
NVD 분석 기준. 시작과 끝 사이 버전이 취약해요. ‘이 버전 이상으로’는 끝이 ‘<’로 적힌 경우에만 알 수 있어요.
할당 기관(CNA)이 적은 버전 8줄도 보기
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| LinuxLinux | 이 버전만 | 취약 | = | 2.6.29 | 벤더 공지 확인 | |
| 최초 버전 | ≤ | 영향 없음 | < | 2.6.29 | — | |
| 5.15.209 | ≤ | 영향 없음 | ≤ | 5.15.* | — | |
| 6.1.167 | ≤ | 영향 없음 | ≤ | 6.1.* | — | |
| 6.6.130 | ≤ | 영향 없음 | ≤ | 6.6.* | — | |
| 6.12.78 | ≤ | 영향 없음 | ≤ | 6.12.* | — | |
| 6.18.9 | ≤ | 영향 없음 | ≤ | 6.18.* | — | |
| 6.19 | ≤ | 영향 없음 | ≤ | 최신 버전 | — | |
참고 링크
NVD에 등록된 외부 자료예요. 익스플로잇·벤더 공지·패치 순으로 먼저 보여줘요.
패치2
기타5
- git.kernel.org/stable/c/0c3666ec188640c20e254011e7adf4464c32ee58
- git.kernel.org/stable/c/4357e02cafabe01c2d737ceb4c4c6382fc2ee10a
- git.kernel.org/stable/c/6a8b6242eaa1dd7a0de2d6de6420d10ffe68db90
- git.kernel.org/stable/c/bb9be3f713652e330df00f3724c18c7a5469e7ac
- cert-portal.siemens.com/productcert/html/ssa-784472.html