CVE-2025-22015
- 공개
- 2025년 4월 8일
- 수정
- 2026년 11월 10일
- 조회
- 0
- 상태
- Modified
개요
이 취약점이 무엇인지
In the Linux kernel, the following vulnerability has been resolved:
mm/migrate: fix shmem xarray update during migration
A shmem folio can be either in page cache or in swap cache, but not at the same time. Namely, once it is in swap cache, folio->mapping should be NULL, and the folio is no longer in a shmem mapping.
In __folio_migrate_mapping(), to determine the number of xarray entries to update, folio_test_swapbacked() is used, but that conflates shmem in page cache case and shmem in swap cache case. It leads to xarray multi-index entry corruption, since it turns a sibling entry to a normal entry during xas_store() (see [1] for a userspace reproduction). Fix it by only using folio_test_swapcache() to determine whether xarray is storing swap cache entries or not to choose the right number of xarray entries to update.
[1] https://lore.kernel.org/linux-mm/[email protected]/
Note: In __split_huge_page(), folio_test_anon() && folio_test_swapcache() is used to get swap_cache address space, but that ignores the shmem folio in swap cache case. It could lead to NULL pointer dereferencing when a in-swap-cache shmem folio is split at __xa_store(), since !folio_test_anon() is true and folio->mapping is NULL. But fortunately, its caller split_huge_page_to_list_to_order() bails out early with EBUSY when folio->mapping is NULL. So no need to take care of it here.
실제 악용 사례 · 아직 확인된 사례가 없어요
CISA의 KEV 카탈로그(실제 공격에 악용된 취약점 목록)에 아직 올라와 있지 않아요. 다만 ‘앞으로도 안전하다’는 뜻은 아니니 심각도와 EPSS를 함께 확인하세요.
패치 현황
어떤 버전이 위험하고, 몇 버전으로 올리면 되는지
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| linux_kernellinux | 6.1.71 | ≤ | 취약 | < | 6.1.132 | 6.1.132이상 |
| 6.6.10 | ≤ | 취약 | < | 6.6.85 | 6.6.85이상 | |
| 6.7.1 | ≤ | 취약 | < | 6.12.21 | 6.12.21이상 | |
| 6.13 | ≤ | 취약 | < | 6.13.9 | 6.13.9이상 | |
| 이 버전만 | 취약 | = | 6.7 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.7 rc8 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.14 rc1 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.14 rc2 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.14 rc3 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.14 rc4 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.14 rc5 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.14 rc6 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.14 rc7 | 벤더 공지 확인 | ||
NVD 분석 기준. 시작과 끝 사이 버전이 취약해요. ‘이 버전 이상으로’는 끝이 ‘<’로 적힌 경우에만 알 수 있어요.
할당 기관(CNA)이 적은 버전 9줄도 보기
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| LinuxLinux | 6.1.71 | ≤ | 취약 | < | 6.1.132 | 6.1.132이상 |
| 6.6.10 | ≤ | 취약 | < | 6.6.85 | 6.6.85이상 | |
| 이 버전만 | 취약 | = | 6.7 | 벤더 공지 확인 | ||
| 최초 버전 | ≤ | 영향 없음 | < | 6.7 | — | |
| 6.1.132 | ≤ | 영향 없음 | ≤ | 6.1.* | — | |
| 6.6.85 | ≤ | 영향 없음 | ≤ | 6.6.* | — | |
| 6.12.21 | ≤ | 영향 없음 | ≤ | 6.12.* | — | |
| 6.13.9 | ≤ | 영향 없음 | ≤ | 6.13.* | — | |
| 6.14 | ≤ | 영향 없음 | ≤ | 최신 버전 | — | |
참고 링크
NVD에 등록된 외부 자료예요. 익스플로잇·벤더 공지·패치 순으로 먼저 보여줘요.
패치5
- git.kernel.org/stable/c/29124ae980e2860f0eec7355949d3d3292ee81da
- git.kernel.org/stable/c/49100c0b070e900f87c8fac3be9b9ef8a30fa673
- git.kernel.org/stable/c/60cf233b585cdf1f3c5e52d1225606b86acd08b0
- git.kernel.org/stable/c/75cfb92eb63298d717b6b0118f91ba12c4fcfeb5
- git.kernel.org/stable/c/c057ee03f751d6cecf7ee64f52f6545d94082aaa