🇰🇷 한글 설명
Linux 커널의 f2fs 파일 시스템에서 f2fs_sbi_show() 함수가 sb_lock을 보유하지 않은 채 extension_list를 읽는 취약점이 발견되었습니다. 이로 인해 sysfs를 통한 동시 수정 작업 시 데이터 불일치가 발생하여 경계 외 메모리 접근(out-of-bounds access)이나 잘못된 데이터 표시가 발생할 수 있습니다.
💡 쉬운 설명
파일 시스템 정보를 읽는 도중에 다른 프로그램이 정보를 동시에 수정하면 데이터가 꼬일 수 있는 문제입니다. 이 과정에서 시스템이 잘못된 메모리 영역을 읽으려다 오류가 발생할 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
f2fs: protect extension_list reading with sb_lock in f2fs_sbi_show()
In f2fs_sbi_show(), the extension_list, extension_count and
hot_ext_count are read without holding sbi->sb_lock. If a concurrent
sysfs store modifies the extension list via f2fs_update_extension_list(),
the show path may read inconsistent count and array contents, potentially
leading to out-of-bounds access or displaying stale data.
Fix this by holding sb_lock around the entire extension list read
and format operation.
📍 영향받는 시스템
Linux kernel (f2fs 파일 시스템을 사용하는 시스템)
⚔️ 공격 벡터
로컬 사용자가 sysfs를 통해 f2fs 확장 리스트를 동시에 수정하여 레이스 컨디션 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 sb_lock 적용 확인
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인