🇰🇷 한글 설명
Linux 커널의 NFS 구현에서 folio 크기가 아닌 요청 크기를 기준으로 불안정한 쓰기(unstable writes)를 계산하여 발생하는 취약점입니다. 하나의 folio가 여러 개의 하위 요청으로 분할될 경우, 각 요청마다 전체 folio의 페이지 수를 중복 계산하여 시스템의 쓰기백(writeback) 계정이 실제보다 과도하게 부풀려집니다. 이로 인해 시스템의 dirty 임계값이 초과되어 모든 버퍼드 라이터가 강제로 속도 제한(hard-throttle) 상태에 빠질 수 있습니다.
💡 쉬운 설명
데이터를 저장할 때 실제 크기보다 훨씬 더 많은 양을 저장 중이라고 시스템이 착각하게 만드는 오류입니다. 이 오류 때문에 컴퓨터가 데이터 저장 속도를 비정상적으로 늦춰서 전체적인 성능이 급격히 떨어질 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
NFS: Charge unstable writes by request size, not folio size
nfs_folio_mark_unstable() and nfs_folio_clear_commit() charge and
uncharge NR_WRITEBACK/WB_WRITEBACK by folio_nr_pages(folio) once per
*request* added to or removed from a commit list. This is correct only
when a folio has a single associated request. When pg_test splits a
folio into N sub-folio requests (e.g. pNFS flexfiles striping with a
stripe unit smaller than the folio size, or plain wsize-limited
splitting), each of the N requests independently charges the whole
folio's page count, inflating the accounting by a factor of N per
folio. With large folios and small stripe units this reaches multiple
orders of magnitude: a 2 MiB folio split into 512 4 KiB requests can
charge up to 512x its real size, pushing global dirty+writeback
accounting past the system's dirty threshold and forcing every
buffered writer on the host into the hard-throttle path, including
unrelated in-kernel NFS server threads sharing the box.
Charge each request only for the pages it actually covers.
📍 영향받는 시스템
Linux kernel (NFS client/server components using folios)
⚔️ 공격 벡터
특정 설정(pNFS flexfiles striping 등)을 통해 folio를 작은 단위로 분할하는 대량의 NFS 쓰기 요청을 발생시켜 시스템 성능 저하 유도
🛡️ 대응 방법
해당 취약점이 수정된 최신 버전의 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 패치가 적용된 최신 릴리스 버전인지 확인