🇰🇷 한글 설명
Linux 커널의 sysfs 코어에서 i_uid/i_gid가 제대로 초기화되지 않는 취약점으로, set_ownership() 함수 실패 시 기본값이 설정되지 않아 권한 상승이 가능합니다. net_ctl_set_ownership()이 동일한 기본값을 사용하지 않아 발생.
💡 쉬운 설명
Linux 시스템의 파일/디렉토리 소유자 정보가 잘못 설정되는 버그입니다. 로컬 공격자가 이를 악용하면 권한이 필요한 작업을 수행할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
sysctl: always initialize i_uid/i_gid
Always initialize i_uid/i_gid inside the sysfs core so set_ownership()
can safely skip setting them.
Commit 5ec27ec735ba ("fs/proc/proc_sysctl.c: fix the default values of
i_uid/i_gid on /proc/sys inodes.") added defaults for i_uid/i_gid when
set_ownership() was not implemented. It also missed adjusting
net_ctl_set_ownership() to use the same default values in case the
computation of a better value failed.
📍 영향받는 시스템
Linux kernel 전 버전 (특히 5.10+ 영향 가능, 배포판별로 상이)
⚔️ 공격 벡터
로컬 접근을 통해 /proc/sys의 권한 미설정 파일을 이용한 로컬 권한 상승
🛡️ 대응 방법
Linux 커널 패치가 포함된 최신 버전으로 업데이트 (배포판 패키지 업데이트 권장)
🔧 검증 코드
/proc/sys의 소유자 UID/GID를 확인하여 root가 아닌 경우 취약함. 커널 버전으로도 패치 여부 확인 가능
stat /proc/sys 2>/dev/null | grep Uid || uname -r