🇰🇷 한글 설명
Linux 커널의 EROFS 파일 시스템에서 압축되지 않은 pcluster의 확장 길이(extent length)를 검증하지 않아 발생하는 취약점입니다. 이로 인해 메모리 사용 후 해제(Use-After-Free) 오류가 발생할 수 있습니다.
💡 쉬운 설명
파일 시스템이 데이터를 읽을 때 실제 데이터 길이보다 더 긴 길이를 읽으려고 시도하여 시스템 오류를 일으킬 수 있는 문제입니다. 이로 인해 컴퓨터의 메모리 관리 체계가 망가져 시스템이 멈추거나 보안 문제가 생길 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
erofs: validate the extent length for uncompressed pclusters
syzkaller reported a KASAN use-after-free:
https://syzkaller.appspot.com/bug?extid=2ae90e873e97f1faf6f2
The referenced fuzzed image actually has two issues:
- m_pa == 0 as a non-inlined pcluster;
- The logical length is longer than its physical length.
The first issue has already been addressed. This patch addresses
the second issue by checking the extent length validity.
📍 영향받는 시스템
EROFS 파일 시스템을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
조작된 EROFS 파일 시스템 이미지를 마운트하여 메모리 오류 유도
🛡️ 대응 방법
EROFS의 확장 길이 검증 패치가 적용된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인