
Linux 커널 메모리 손상 취약점 CVE-2020-14386용 재현기로, Kubernetes 포드로 배포되어 충돌 또는 재부팅을 트리거하여 노드 취약점을 테스트합니다.
사전 빌드된 컨테이너: registry.svc.ci.openshift.org/coreos/cve-2020-14386
특정 노드에 대해 테스트하려면 다음과 같이 하면 됩니다:
apiVersion: v1
kind: Pod
metadata:
name: cve-2020-14386
spec:
restartPolicy: Never
nodeName: <yournode>
containers:
- name: cve-2020-14386
image: registry.svc.ci.openshift.org/coreos/cve-2020-14386
imagePullPolicy: Always
yournode를 검증하려는 특정 노드로 바꾼 후, 위의 내용을 사용하여 kubectl create -f pod.yaml을 실행하세요.
커널이 취약한 경우 노드가 충돌하거나 재부팅될 수 있습니다. 예를 들어, kubectl get node/<nodename>을 사용하여 노드가 NotReady 상태가 되고 재부팅되는지 확인하세요.
노드가 취약하지 않으면 kubectl logs pod/cve-2020-14386는 다음과 같은 내용을 표시합니다:
Running reproducer for CVE-2020-14386 in 5s - this may crash the node
Reproducer exited successfully - node probably not vulnerable