🇰🇷 한글 설명
Linux 커널의 EROFS 파일 시스템에서 inode xattr 초기화 중 metabuf 누수가 발생하는 취약점입니다. 특정 오류 경로에서 metabuf를 해제하지 않아 folio 참조가 누수될 수 있으며, 이를 수정하기 위해 정리 로직을 통합했습니다.
💡 쉬운 설명
파일 시스템을 사용하는 과정에서 메모리가 제대로 반환되지 않고 계속 쌓이는 문제가 있습니다. 이 문제가 지속되면 시스템의 메모리가 부족해질 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
erofs: fix metabuf leak in inode xattr initialization
commit bb88e8da0025 ("erofs: use meta buffers for xattr operations")
converted xattr operations to use on-stack erofs_buf instances.
erofs_init_inode_xattrs() uses such a metabuf while reading the inline
xattr header and shared xattr id array.
Some error paths after erofs_read_metabuf() leave through out_unlock
without dropping the metabuf, so the folio reference can leak.
Consolidate the cleanup at out_unlock. erofs_put_metabuf() is a
no-op if no folio has been acquired, and this keeps all paths after
taking EROFS_I_BL_XATTR_BIT covered by a single cleanup site.
📍 영향받는 시스템
EROFS 파일 시스템을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
특수하게 조작된 EROFS 파일 시스템 이미지를 마운트하여 메모리 누수를 유발
🛡️ 대응 방법
커널 패치(commit bb88e8da0025 포함)를 적용하여 최신 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인