Help Center> Cloud Container Engine> Product Bulletin> Vulnerability Notice> Notice on the Docker Resource Management Vulnerability (CVE-2021-21285)

Notice on the Docker Resource Management Vulnerability (CVE-2021-21285)

Docker is an open-source container engine. It allows you to create a container (a lightweight VM) on the Linux system and achieve automatic installation, deployment, running, and upgrade through configuration files. Docker before versions 19.03.15 and 20.10.3 have a resource management vulnerability that may be exploited by attackers to crash the Docker daemon (dockerd).

Vulnerability Details

Table 1 Vulnerability information

Vulnerability Type

CVE-ID

Discovered

Resource management flaw

CVE-2021-21285

2021-02-02

Threat Severity

Medium

Impact and Risks

  • If an image is maliciously damaged, pulling it may crash the dockerd daemon.
  • If you use HUAWEI CLOUD SWR and your images are obtained from SWR, digest verification will be performed on the image uploaded to the image repository, and the Docker daemon will not be affected.
  • This vulnerability does not affect the running containers.

Trigger Conditions

  1. Manually run docker pull on a node in the cluster to pull a maliciously damaged image.
  2. kubelet automatically pulls a maliciously damaged image defined in the workload template during workload deployment.

Root Cause

The Docker daemon does not verify the digest at the image layer during image pull.

Identification Method

  1. For EulerOS or CentOS nodes, run the following command to check the security package version:
    rpm -qa |grep docker
  2. For a node running on EulerOS or CentOS, if the Docker version is earlier than 18.09.0.100.51.h10.51.h3-1.h15.eulerosv2r7, the Docker package will be affected by this vulnerability.
  3. For nodes that use other OSs, such as Ubuntu, you can run the docker version command to view the Docker version. If the version is earlier than 19.03.15 and 20.10.3, this vulnerability is involved.

Workarounds and Mitigation Measures

Do not use images from unknown sources. You are advised to use HUAWEI CLOUD SoftWare Repository for Container (SWR).

Helpful Links

Go to GitHub for the upgrade patch provided by the vendor.