CVE-2025-21721
- 공개
- 2025년 2월 27일
- 수정
- 2026년 6월 17일
- 조회
- 0
- 상태
- Modified
개요
이 취약점이 무엇인지
In the Linux kernel, the following vulnerability has been resolved:
nilfs2: handle errors that nilfs_prepare_chunk() may return
Patch series "nilfs2: fix issues with rename operations".
This series fixes BUG_ON check failures reported by syzbot around rename operations, and a minor behavioral issue where the mtime of a child directory changes when it is renamed instead of moved.
This patch (of 2):
The directory manipulation routines nilfs_set_link() and nilfs_delete_entry() rewrite the directory entry in the folio/page previously read by nilfs_find_entry(), so error handling is omitted on the assumption that nilfs_prepare_chunk(), which prepares the buffer for rewriting, will always succeed for these. And if an error is returned, it triggers the legacy BUG_ON() checks in each routine.
This assumption is wrong, as proven by syzbot: the buffer layer called by nilfs_prepare_chunk() may call nilfs_get_block() if necessary, which may fail due to metadata corruption or other reasons. This has been there all along, but improved sanity checks and error handling may have made it more reproducible in fuzzing tests.
Fix this issue by adding missing error paths in nilfs_set_link(), nilfs_delete_entry(), and their caller nilfs_rename().
실제 악용 사례 · 아직 확인된 사례가 없어요
CISA의 KEV 카탈로그(실제 공격에 악용된 취약점 목록)에 아직 올라와 있지 않아요. 다만 ‘앞으로도 안전하다’는 뜻은 아니니 심각도와 EPSS를 함께 확인하세요.
패치 현황
어떤 버전이 위험하고, 몇 버전으로 올리면 되는지
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| linux_kernellinux | 2.6.30 | ≤ | 취약 | < | 5.4.291 | 5.4.291이상 |
| 5.5 | ≤ | 취약 | < | 5.10.235 | 5.10.235이상 | |
| 5.11 | ≤ | 취약 | < | 5.15.179 | 5.15.179이상 | |
| 5.16 | ≤ | 취약 | < | 6.1.131 | 6.1.131이상 | |
| 6.2 | ≤ | 취약 | < | 6.6.80 | 6.6.80이상 | |
| 6.7 | ≤ | 취약 | < | 6.12.13 | 6.12.13이상 | |
| 6.13 | ≤ | 취약 | < | 6.13.2 | 6.13.2이상 | |
NVD 분석 기준. 시작과 끝 사이 버전이 취약해요. ‘이 버전 이상으로’는 끝이 ‘<’로 적힌 경우에만 알 수 있어요.
할당 기관(CNA)이 적은 버전 10줄도 보기
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| LinuxLinux | 이 버전만 | 취약 | = | 2.6.30 | 벤더 공지 확인 | |
| 최초 버전 | ≤ | 영향 없음 | < | 2.6.30 | — | |
| 5.4.291 | ≤ | 영향 없음 | ≤ | 5.4.* | — | |
| 5.10.235 | ≤ | 영향 없음 | ≤ | 5.10.* | — | |
| 5.15.179 | ≤ | 영향 없음 | ≤ | 5.15.* | — | |
| 6.1.131 | ≤ | 영향 없음 | ≤ | 6.1.* | — | |
| 6.6.80 | ≤ | 영향 없음 | ≤ | 6.6.* | — | |
| 6.12.13 | ≤ | 영향 없음 | ≤ | 6.12.* | — | |
| 6.13.2 | ≤ | 영향 없음 | ≤ | 6.13.* | — | |
| 6.14 | ≤ | 영향 없음 | ≤ | 최신 버전 | — | |
참고 링크
NVD에 등록된 외부 자료예요. 익스플로잇·벤더 공지·패치 순으로 먼저 보여줘요.
패치8
- git.kernel.org/stable/c/1ee2d454baa361d2964e3e2f2cca9ee3f769d93c
- git.kernel.org/stable/c/481136234dfe96c7f92770829bec6111c7c5f5dd
- git.kernel.org/stable/c/607dc724b162f4452dc768865e578c1a509a1c8c
- git.kernel.org/stable/c/7891ac3b0a5c56f7148af507306308ab841cdc31
- git.kernel.org/stable/c/b38c6c260c2415c7f0968871305e7a093daabb4c