🇰🇷 한글 설명
Linux 커널의 statmount_string() 함수에서 UIDMAP 및 GIDMAP 처리 시 출력 오프셋 포인터(offp)가 초기화되지 않는 취약점이 발견되었습니다. 이로 인해 초기화되지 않은 포인터를 참조(uninitialized dereference)하게 되어 시스템 불안정성이나 보안 문제가 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터가 정보를 기록할 때 기록할 위치를 가리키는 '손가락'이 어디를 향해야 할지 정해지지 않은 상태로 작동하는 오류입니다. 이로 인해 엉뚱한 메모리 위치를 건드려 시스템이 멈추거나 오류가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
fs: Fix uninitialized 'offp' in statmount_string()
In statmount_string(), most flags assign an output offset pointer (offp)
which is later updated with the string offset. However, the
STATMOUNT_MNT_UIDMAP and STATMOUNT_MNT_GIDMAP cases directly set the
struct fields instead of using offp. This leaves offp uninitialized,
leading to a possible uninitialized dereference when *offp is updated.
Fix it by assigning offp for UIDMAP and GIDMAP as well, keeping the code
path consistent.
📍 영향받는 시스템
UIDMAP 또는 GIDMAP 플래그를 사용하는 Linux 커널 버전
⚔️ 공격 벡터
특정 마운트 플래그를 사용하는 시스템 호출을 통해 초기화되지 않은 메모리 참조 유도
🛡️ 대응 방법
해당 취약점이 수정된 최신 Linux 커널 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 취약점이 패치된 최신 릴리스 버전인지 확인