CVE-2020-8557Kubernetes node disk Denial of Service by writing to container /etc/hosts
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.
What to do
Fixed builds are available from Alpine, Debian, Go: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | kubernetes | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | kubernetes | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | kubernetes | Fix pending | ||
| Debian 14 | kubernetes | Fixed | 1.18.5-1 | DEBIAN-CVE-2020-8557 |
| Debian 13 | kubernetes | Fixed | 1.18.5-1 | DEBIAN-CVE-2020-8557 |
| Debian 12 | kubernetes | Fixed | 1.18.5-1 | DEBIAN-CVE-2020-8557 |
| Alpine Linux 3.24 | k3s | Fixed | 1.18.6.1-r0 | ALPINE-CVE-2020-8557 |
| Alpine Linux 3.23 | k3s | Fixed | 1.18.6.1-r0 | ALPINE-CVE-2020-8557 |
| Alpine Linux 3.22 | k3s | Fixed | 1.18.6.1-r0 | ALPINE-CVE-2020-8557 |
| Alpine Linux 3.21 | k3s | Fixed | 1.18.6.1-r0 | ALPINE-CVE-2020-8557 |
| Alpine Linux 3.20 | k3s | Fixed | 1.18.6.1-r0 | ALPINE-CVE-2020-8557 |
| Alpine Linux 3.19 | k3s | Fixed | 1.18.6.1-r0 | ALPINE-CVE-2020-8557 |
| Alpine Linux 3.18 | k3s | Fixed | 1.18.6.1-r0 | ALPINE-CVE-2020-8557 |
| Alpine Linux 3.17 | k3s | Fixed | 1.18.6.1-r0 | ALPINE-CVE-2020-8557 |
| Alpine Linux 3.16 | k3s | Fixed | 1.18.6.1-r0 | ALPINE-CVE-2020-8557 |
| Alpine Linux 3.15 | k3s | Fixed | 1.18.6.1-r0 | ALPINE-CVE-2020-8557 |
| Alpine Linux 3.14 | k3s | Fixed | 1.18.6.1-r0 | ALPINE-CVE-2020-8557 |
| Alpine Linux 3.13 | k3s | Fixed | 1.18.6.1-r0 | ALPINE-CVE-2020-8557 |
| Go library | k8s.io/kubernetes | Fixed | 1.16.13 | GO-2024-2753 |
| Go library | k8s.io/kubernetes/pkg/kubelet | Fixed | 1.16.13 | GHSA-55qj-gj3x-jq9r |
What the vendor says
As published in the CVE record by kubernetes, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Kubernetes: affected: 1.15, 1.14, 1.13, 1.12, 1.11, 1.10; fixed in
1.18.6,1.17.9,1.16.13
References
- https://github.com/kubernetes/kubernetes/issues/93032
- https://groups.google.com/g/kubernetes-security-announce/c/cB_JUsYEKyY/m/vVSO61AhBwAJ
- https://security.netapp.com/advisory/ntap-20200821-0002/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.