🔍 CVE-2026-68086

0.0
CVSS Score
UNKNOWN
2026-08-10
2026-08-10 12:17
✅ 완료

🇰🇷 한글 설명

Linux 커널의 khugepaged에서 파일 THP(Transparent Huge Pages)를 병합할 때, 기존에 쓰기 작업으로 인해 생성된 더티 폴리오(dirty folios)를 제대로 처리하지 못하는 취약점입니다. 이로 인해 특정 엣지 케이스에서 파일의 변경된 데이터가 저장되지 않고 유실될 수 있습니다.

💡 쉬운 설명

컴퓨터가 파일을 효율적으로 관리하기 위해 데이터를 묶는 과정에서, 아직 저장되지 않은 중요한 데이터가 실수로 삭제될 수 있는 문제입니다. 이로 인해 사용자가 저장한 파일 내용이 사라지는 데이터 손실이 발생할 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: mm/khugepaged: write all dirty file folios when collapsing [There is no upstream commit, as this code was removed by upstream commit 044925f9b565 ("mm: fs: remove filemap_nr_thps*() functions and their users")] As-is, khugepaged and writable-file opening exclude each other. A file cannot be open writeable and have THPs (because the filesystem is not aware of them). khugepaged will never collapse file pages for files that are opened writeable. On an open(O_RDWR/O_WRONLY), the page cache for that particular file is dropped. This is fine because nothing could've been dirtied. However, there is an edge-case: collapse_file() might not be able to coexist with concurrent writers, but it can coexist with dirty folios (from previous writers). Therefore, the following can happen: open(file, O_RDWR) write(file) close(file) madvise(file_mapping, MADV_COLLAPSE, some non-dirty range) open(file, O_RDWR) nr_thps > 0 truncate_inode_pages() /* THPs are cleared out, but so are the dirty folios */ When this edge-case happens, there is data loss, as the dirty folios are fully discarded. Fix it by fully writing back the page cache (and waiting) when collapsing file THPs. Doing so provides the guarantee that no dirty folio will be observed while there are active THPs. To fully ensure this is safe, the invalidate_lock needs to be held while doing the writeout, so that do_dentry_open()'s page cache truncation excludes this write-and-wait. As a side effect, move the nr_thps counter bumping outside the i_pages lock. This is correct since the counter itself is an atomic_t and the producer <-> consumer correctness is provided by a full memory barrier: smp_mb() in collapse_file()/memory barrier implied by full ordering in get_write_access() -> atomic_inc_unless_negative().

📍 영향받는 시스템

Linux Kernel (khugepaged 관련 기능이 활성화된 버전)

⚔️ 공격 벡터

특정 파일 쓰기, 닫기, madvise(MADV_COLLAPSE) 호출 및 다시 열기 과정을 정밀하게 수행하여 데이터 유실 유도

🛡️ 대응 방법

Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 khugepaged의 writeback 로직 수정 사항을 반영해야 합니다.

🔧 검증 코드

출력된 커널 버전을 확인하여 해당 취약점이 수정된 최신 패치 버전인지 확인합니다.

Shell / Script
uname -r

💻 영향받는 소프트웨어

Linux Kernel