🇰🇷 한글 설명
Linux 커널의 Ceph 파일 시스템에서 fscrypt_encrypt_pagecache_blocks() 오류 발생 시 발생하는 크래시 취약점입니다. 리팩토링 과정에서 오류 코드가 항상 0(성공)으로 반환되도록 잘못 설계되어, 오류가 무시되고 페이지 배열에 NULL 엔트리가 남게 되어 커널 크래시를 유발할 수 있습니다.
💡 쉬운 설명
컴퓨터의 데이터 저장 방식(Ceph)을 개선하는 과정에서 실수로 오류를 감지하지 못하는 버그가 생겼습니다. 이로 인해 시스템이 오류를 무시하고 잘못된 데이터를 처리하다가 갑자기 멈추거나 꺼질 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ceph: fix crash after fscrypt_encrypt_pagecache_blocks() error
The function move_dirty_folio_in_page_array() was created by commit
ce80b76dd327 ("ceph: introduce ceph_process_folio_batch() method") by
moving code from ceph_writepages_start() to this function.
This new function is supposed to return an error code which is checked
by the caller (now ceph_process_folio_batch()), and on error, the
caller invokes redirty_page_for_writepage() and then breaks from the
loop.
However, the refactoring commit has gone wrong, and it by accident, it
always returns 0 (= success) because it first NULLs the pointer and
then returns PTR_ERR(NULL) which is always 0. This means errors are
silently ignored, leaving NULL entries in the page array, which may
later crash the kernel.
The simple solution is to call PTR_ERR() before clearing the pointer.
📍 영향받는 시스템
Linux Kernel (Ceph 파일 시스템을 사용하는 버전)
⚔️ 공격 벡터
로컬 공격자가 특정 파일 시스템 오류를 유도하여 커널 크래시(DoS)를 발생시킴
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인