CVE-2020-8557 Kubernetes node disk Denial of Service by writing to container /etc/hosts
MediumCVSS 5.5
EPSS 0.43%
- Published
- Updated
- Exploit status
- No public exploit known
Description
The Kubernetes kubelet component in versions 1.1-1.16.12, 1.17.0-1.17.8 and 1.18.0-1.18.5 do not account for disk usage by a pod which writes to its own /etc/hosts file. The /etc/hosts file mounted in a pod by kubelet is not included by the kubelet eviction manager when calculating ephemeral storage usage by a pod. If a pod writes a large amount of data to the /etc/hosts file, it could fill the storage space of the node and cause the node to fail.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| k8s.io/kubernetes/pkg/kubelet(Go) | >= 1.1.0, < 1.16.13 | 1.16.13 |
| k8s.io/kubernetes/pkg/kubelet(Go) | >= 1.17.0, < 1.17.9 | 1.17.9 |
| k8s.io/kubernetes/pkg/kubelet(Go) | >= 1.18.0, < 1.18.6 | 1.18.6 |
| Kubernetes(Go) | >= 1.1.0, < 1.16.13 | 1.16.13 |
| Kubernetes(Go) | >= 1.17.0, < 1.17.9 | 1.17.9 |
| Kubernetes(Go) | >= 1.18.0, < 1.18.6 | 1.18.6 |
| debian/kubernetes(Debian:12) | < 1.18.5-1 | 1.18.5-1 |
| debian/kubernetes(Debian:13) | < 1.18.5-1 | 1.18.5-1 |
| debian/kubernetes(Debian:14) | < 1.18.5-1 | 1.18.5-1 |
| Kubernetes | < 1.16.13 | 1.16.13 |
| Kubernetes | >= 1.17.0, < 1.17.9 | 1.17.9 |
| Kubernetes | >= 1.18.0, < 1.18.6 | 1.18.6 |
| alpine/k3s(Alpine:v3.13) | < 1.18.6.1-r0 | 1.18.6.1-r0 |
| alpine/k3s(Alpine:v3.14) | < 1.18.6.1-r0 | 1.18.6.1-r0 |
| alpine/k3s(Alpine:v3.15) | < 1.18.6.1-r0 | 1.18.6.1-r0 |
| alpine/k3s(Alpine:v3.16) | < 1.18.6.1-r0 | 1.18.6.1-r0 |
| alpine/k3s(Alpine:v3.17) | < 1.18.6.1-r0 | 1.18.6.1-r0 |
| alpine/k3s(Alpine:v3.18) | < 1.18.6.1-r0 | 1.18.6.1-r0 |
| alpine/k3s(Alpine:v3.19) | < 1.18.6.1-r0 | 1.18.6.1-r0 |
| alpine/k3s(Alpine:v3.20) | < 1.18.6.1-r0 | 1.18.6.1-r0 |
| alpine/k3s(Alpine:v3.21) | < 1.18.6.1-r0 | 1.18.6.1-r0 |
| alpine/k3s(Alpine:v3.22) | < 1.18.6.1-r0 | 1.18.6.1-r0 |
| alpine/k3s(Alpine:v3.23) | < 1.18.6.1-r0 | 1.18.6.1-r0 |
| alpine/k3s(Alpine:v3.24) | < 1.18.6.1-r0 | 1.18.6.1-r0 |
| Kubernetes | = 1.15 | No fix listed |
Show 17 more
| Product | Affected versions | Fixed in |
|---|---|---|
| Kubernetes | = 1.14 | No fix listed |
| Kubernetes | = 1.13 | No fix listed |
| Kubernetes | = 1.12 | No fix listed |
| Kubernetes | = 1.11 | No fix listed |
| Kubernetes | = 1.10 | No fix listed |
| Kubernetes | = 1.9 | No fix listed |
| Kubernetes | = 1.8 | No fix listed |
| Kubernetes | = 1.7 | No fix listed |
| Kubernetes | = 1.6 | No fix listed |
| Kubernetes | = 1.5 | No fix listed |
| Kubernetes | = 1.4 | No fix listed |
| Kubernetes | = 1.3 | No fix listed |
| Kubernetes | = 1.2 | No fix listed |
| Kubernetes | = 1.1 | No fix listed |
| Kubernetes | >= 1.18, < 1.18.6 | 1.18.6 |
| Kubernetes | >= 1.17, < 1.17.9 | 1.17.9 |
| Kubernetes | >= 1.16, < 1.16.13 | 1.16.13 |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com issue-tracking patch third-party-advisory
- github.com patch
- github.com patch
- github.com patch
- github.com patch
- github.com vendor-advisory
- github.com product
- [Security Advisory] CVE-2020-8557: Node disk DOS by writing to container /etc/hosts mailing-list third-party-advisory
- pkg.go.dev
- security.netapp.com third-party-advisory
- Debian Security Tracker CVE-2020-8557 vendor-advisory
- security.alpinelinux.org vendor-advisory