NVIDIA Container Toolkit 1.17.7 and earlier contain a time-of-check-to-time-of-use (TOCTOU) race condition when the default configuration is used. Successful exploitation can lead to a container escape that allows an attacker to run arbitrary commands or obtain sensitive information on the host. Fix affected GPU nodes promptly.
For more details about the vulnerability, see the NVIDIA Container Toolkit security bulletin. We recommend that you fix this vulnerability promptly.
Affected scope
This vulnerability affects clusters that run a Kubernetes version earlier than 1.32 and have NVIDIA Container Toolkit 1.17.7 or earlier installed on GPU nodes.
Preventive measures
Until you apply the remediation, we recommend avoiding untrusted container images in your cluster to maintain security and stability.
Use the ACKAllowedRepos policy to restrict your cluster to using container images from trusted repositories only. For instructions, see Enable policy governance. As a best practice, also grant image import permissions only to trusted users, following the principle of least privilege.
Use Notation and Ratify to sign and verify OCI artifacts. This ensures that only trusted images can be deployed in the cluster.
Solutions
Notes
This fix applies only to the cloud node pools of ACK Pro clusters, ACK Basic clusters, ACK dedicated clusters, and ACK Edge clusters, and the managed node pools of ACK Lingjun clusters.
If your cluster is an ACK Lingjun cluster that uses Lingjun node pools, submit a ticket for assistance.
To ensure system stability, apply the fix to nodes in batches.
The remediation process restarts running application pods on the nodes. We recommend that you perform this operation during off-peak hours.
Fixes
New GPU nodes
This method applies only to clusters that run Kubernetes 1.20 or later. If your cluster runs an earlier version, upgrade your cluster.
-
Log on to the ACK console. In the left navigation pane, click Clusters.
-
On the Clusters page, click the name of your cluster. In the left navigation pane, click .
Find the corresponding node pool, click Edit, add the
ack.aliyun.com/nvidia-container-runtime-version=1.17.8label, and then click OK.NoteThis label locks the nvidia-container-toolkit version to 1.17.8 for scaled-out nodes in the node pool. The version is not automatically updated when a new version of nvidia-container-toolkit is released.
To use a new version of nvidia-container-toolkit, you must manually remove this label. Then, scaled-out nodes will use the latest version by default.
Existing GPU nodes
For existing GPU nodes, you can manually apply the fix by running a remediation script. The detailed steps are provided below.