🇰🇷 한글 설명
Linux 커널의 intel-speed-select 도구에서 PID 파일 생성 시 심볼릭 링크를 통한 파일 덮어쓰기 취약점이 발견되었습니다. 공격자가 /tmp 경로에 미리 심볼릭 링크를 생성해 두면, 루트 권한으로 실행되는 데몬이 공격자가 지정한 임의의 파일에 데이터를 기록하게 만들 수 있습니다.
💡 쉬운 설명
컴퓨터 프로그램이 실행될 때 기록하는 임시 파일 경로를 가로채서, 중요한 시스템 파일을 망가뜨릴 수 있는 보안 약점입니다. 공격자가 가짜 길을 만들어 두면 프로그램이 엉뚱한 곳에 중요한 정보를 적게 됩니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
tools/power/x86/intel-speed-select: Harden daemon pidfile open
Avoid symlink-based pidfile clobbering by opening the pidfile with
O_NOFOLLOW and validating it with fstat() before locking/writing.
The daemon currently uses a fixed pidfile path under /tmp. A local
unprivileged user can pre-create a symlink at that path and cause a
root-run daemon instance to write into an attacker-chosen file.
📍 영향받는 시스템
Linux kernel (intel-speed-select 도구가 포함된 버전)
⚔️ 공격 벡터
로컬 권한을 가진 사용자가 /tmp 디렉토리에 특정 파일로 연결되는 심볼릭 링크를 미리 생성하여 공격
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 O_NOFOLLOW 옵션이 적용된 수정된 코드를 반영해야 함
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 해결된 최신 패치 버전인지 확인