🔍 CVE-2017-5669

7.8
CVSS Score
HIGH
2017-02-24
2026-05-13 00:24
✅ 완료

🇰🇷 한글 설명

Linux 커널 4.9.12 이하의 ipc/shm.c 파일의 do_shmat 함수에 취약점이 존재하며, 이는 특정 반올림 연산으로 계산된 주소를 제한하지 않아 로컬 사용자가 페이지 제로를 매핑할 수 있게 한다. 공격자는 세밀하게 조작된 shmget 및 shmat 시스템 호출을 통해 mmap 시스템 호출의 보호 메커니즘을 우회할 수 있다.

💡 쉬운 설명

리눅스 커널의 공유 메모리(shmat) 함수에서 특정 메모리 영역에 대한 접근 제한이 제대로 작동하지 않는 문제가 있다. 권한을 가진 로컬 사용자가 이를 악용하여 보호된 메모리 영역에 접근할 수 있다.

🇺🇸 원문 (English)

The do_shmat function in ipc/shm.c in the Linux kernel through 4.9.12 does not restrict the address calculated by a certain rounding operation, which allows local users to map page zero, and consequently bypass a protection mechanism that exists for the mmap system call, by making crafted shmget and shmat system calls in a privileged context.

📍 영향받는 시스템

Linux kernel versions up to and including 4.9.12

⚔️ 공격 벡터

Local privileged user exploiting crafted shmget/shmat system calls to map page zero and bypass mmap protections

🛡️ 대응 방법

Upgrade Linux kernel to version 4.9.13 or later

🔧 검증 코드

PATCHED가 출력되면 패치됨, VULNERABLE이 출력되면 해당 시스템은 CVE-2017-5669에 취약함을 의미한다.

Shell / Script
uname -r | awk -F. '{if($1>4 || ($1==4 && $2>9) || ($1==4 && $2==9 && $3>=13)) print "PATCHED"; else print "VULNERABLE"}'

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

💻 영향받는 소프트웨어

Linux Kernel