预构建容器: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