Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Add doc for CVE-2017-14491 #3534

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions docs/advisories/cve_2017_14491.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# CVE-2017-14491

A vulnerability in dnsmasq, used by kube-dns, requires an upgrade to the kube-dns component.

[More details](https://security.googleblog.com/2017/10/behind-masq-yet-more-dns-and-dhcp.html)

## Fixed in kops versions:

Not yet released. Fixed by @mikesplain in [#3511](https://github.com/kubernetes/kops/pull/3511)

## Hotfix for Kubernetes

The minimal fix is to just update the image for the dnsmasq pod:

```
kubectl set image deployment/kube-dns -n kube-system dnsmasq=gcr.io/google_containers/k8s-dns-dnsmasq-amd64:1.14.5
```


Validate the change was applied to the deployment:
```
kubectl get deployment -n kube-system kube-dns -o jsonpath='{.spec.template.spec.containers[?(@.name == "dnsmasq")].image}'
```

To verify that pods were deployed:
```
kubectl get pods -n kube-system -o custom-columns=NAME:.metadata.name,IMAGE:.spec.containers[*].image -l k8s-app=kube-dns
```


You should see version 1.14.5 for the k8s-dns-dnsmasq-nanny-amd64 pod:

```
NAME IMAGE
kube-dns-1100866048-3lqm0 gcr.io/google_containers/k8s-dns-dnsmasq-nanny-amd64:1.14.5,gcr.io/google_containers/k8s-dns-kube-dns-amd64:1.14.5,gcr.io/google_containers/k8s-dns-sidecar-amd64:1.14.5
kube-dns-1100866048-tjlv2 gcr.io/google_containers/k8s-dns-dnsmasq-nanny-amd64:1.14.5,gcr.io/google_containers/k8s-dns-kube-dns-amd64:1.14.5,gcr.io/google_containers/k8s-dns-sidecar-amd64:1.14.5
```

## Thanks

Thanks to @mikesplain, @chrislovecnm, @snoby, @justinsb, @3h4x