🇰🇷 한글 설명
Linux 커널의 AFS 파일 시스템에서 심볼릭 링크와 마운트 포인트에 대해 AS_RELEASE_ALWAYS 설정이 잘못 적용되는 취약점이 발견되었습니다. 이로 인해 메모리 관리 과정에서 buffer_heads가 없는 경우 잘못된 포인터를 참조하여 시스템 오류를 유발할 수 있습니다.
💡 쉬운 설명
파일 시스템의 특정 연결 통로(심볼릭 링크 등)를 처리할 때, 컴퓨터가 존재하지 않는 메모리 주소를 참조하려고 시도하는 오류입니다. 이 오류가 발생하면 시스템이 갑자기 멈추거나 충돌할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
afs: Remove setting of AS_RELEASE_ALWAYS for symlinks and mountpoints
Regular AFS files correctly use afs_file_aops which have release_folio
set as netfs_release_folio, so AS_RELEASE_ALWAYS is valid for them
when fscache is enabled (set via afs_vnode_set_cache()).
Symlinks and mountpoints in AFS use afs_dir_aops, which does not provide
a release_folio callback. However, afs_apply_status() unconditionally
calls mapping_set_release_always() for these.
In such case when memory management code attempts to release folios,
filemap_release_folio() checks folio_needs_release() which
returns true due to AS_RELEASE_ALWAYS being set. Since there is no
release_folio callback, it falls through to try_to_free_buffers(),
which at present expects buffer_heads to be not null. For symlinks
and mountpoints without buffer_heads, this causes pointer dereference.
[dh: Added more bits that were missed]
📍 영향받는 시스템
Linux kernel (AFS 파일 시스템을 사용하는 버전)
⚔️ 공격 벡터
로컬 공격자가 특수하게 조작된 AFS 심볼릭 링크 또는 마운트 포인트를 생성하여 메모리 참조 오류 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 최신 패치 버전인지 확인하십시오.