🇰🇷 한글 설명
Linux 커널의 ocfs2 파일시스템에서 reflink preserve 정리 작업 중 발생하는 버그로, xattr 배열 항목 정리 시 포인터가 올바르게 이동하지 않고 xh_count가 1일 때 첫 번째 항목이 정리되지 않습니다. 이전 버그 수정(commit c06c303832ec)도 모든 케이스를 처리하지 못했으며, 이로 인해 메모리 누수나 데이터 구조 손상이 발생할 수 있습니다.
💡 쉬운 설명
Linux 파일 시스템에서 파일을 복사할 때 파일의 속성 정보 정리가 불완전하게 되는 문제입니다. 일부 정보가 메모리에 남아있어 메모리 누수나 시스템 불안정성을 초래할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ocfs2: fix reflink preserve cleanup issue
commit c06c303832ec ("ocfs2: fix xattr array entry __counted_by error")
doesn't handle all cases and the cleanup job for preserved xattr entries
still has bug:
- the 'last' pointer should be shifted by one unit after cleanup
an array entry.
- current code logic doesn't cleanup the first entry when xh_count is 1.
Note, commit c06c303832ec is also a bug fix for 0fe9b66c65f3.
📍 영향받는 시스템
ocfs2 파일시스템을 사용하는 Linux 커널 (commit c06c303832ec 이후 버전)
⚔️ 공격 벡터
로컬 사용자가 ocfs2 파일시스템에서 reflink 작업을 수행하여 메모리 부패 또는 정보 유출 유발 가능
🛡️ 대응 방법
Linux 커널 패치 업데이트 (ocfs2 reflink cleanup 버그 수정 버전 설치)
🔧 검증 코드
커널 버전을 확인하고 보안 패치가 적용된 버전 이상인지 확인합니다. ocfs2 사용 중인 경우 modinfo ocfs2로 모듈 버전도 확인하세요.
cat /proc/version | head -1