🇰🇷 한글 설명
리눅스 커널의 netfs 구성 요소에서 write-through 모드 사용 시 발생할 수 있는 데드락(교착 상태) 취약점이 해결되었습니다. netfs_advance_writethrough() 함수가 folio를 항상 잠금 해제하지 않거나 dirty 상태로 표시하지 않아 시스템이 멈출 수 있는 문제가 있었습니다.
💡 쉬운 설명
컴퓨터의 데이터 저장 방식 중 하나에서 작업 순서가 꼬여 시스템이 아무것도 못 하고 멈춰버리는 현상이 발견되었습니다. 이 문제는 특정 상황에서 데이터 쓰기 작업이 서로를 기다리며 무한 대기에 빠지는 것을 의미합니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
netfs: Fix potential deadlock in write-through mode
Fix netfs_advance_writethrough() to always unlock the supplied folio and to
mark it dirty if it isn't yet written to the end. Unfortunately, it can't
be marked for writeback until the folio is done with as that may cause a
deadlock against mmapped reads and writes.
Even though it has been marked dirty, premature writeback can't occur as
the caller is holding both inode->i_rwsem (which will prevent concurrent
truncation, fallocation, DIO and other writes) and ictx->wb_lock (which
will cause flushing to wait and writeback to skip or wait).
Note that this may be easier to deal with once the queuing of folios is
split from the generation of subrequests.
📍 영향받는 시스템
Linux kernel (netfs 구성 요소가 포함된 버전)
⚔️ 공격 벡터
로컬 시스템에서 특정 파일 시스템 작업(write-through 모드 활용)을 유도하여 시스템 데드락 유발
🛡️ 대응 방법
리눅스 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인