🇰🇷 한글 설명
Linux 커널의 F2FS 파일 시스템 내 find_in_level 함수에서 dentry folio 참조 누수가 발생하는 취약점입니다. find_in_block() 함수가 오류를 반환할 경우, 할당된 folio를 해제하지 않고 루프를 탈출하여 메모리 누수가 발생합니다.
💡 쉬운 설명
파일 시스템을 사용하는 과정에서 메모리를 사용한 뒤 제대로 돌려주지 않는 버그가 발견되었습니다. 이 문제가 지속되면 시스템의 메모리가 점차 부족해질 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
f2fs: fix dentry folio leak in find_in_level
find_in_level() gets a dentry folio with f2fs_find_data_folio() before
calling find_in_block(). If find_in_block() returns an error, the
function stores the error in res_folio and breaks out of the loop without
dropping the dentry folio.
This leaks the folio reference on the find_in_block() error path. Drop
the dentry folio before returning the error to the caller.
📍 영향받는 시스템
Linux kernel (F2FS 파일 시스템을 사용하는 모든 시스템)
⚔️ 공격 벡터
특정 오류를 유발하는 파일 시스템 작업 수행을 통한 메모리 누수 유도
🛡️ 대응 방법
F2FS 관련 패치가 적용된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이상인지 확인