Skip to content

Commit 65e472d

Browse files
committed
Patch anthoscli and NVIDIA efa_metrics
1 parent e1eb9f1 commit 65e472d

2 files changed

Lines changed: 34 additions & 0 deletions

File tree

  • containers/pytorch/inference

containers/pytorch/inference/cpu/2.7.1/transformers/4.57.3/py311/Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,23 @@ RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.
3131
apt-get clean autoremove --yes && \
3232
rm -rf /var/lib/{apt,dpkg,cache,log}
3333

34+
# NOTE: anthoscli is not required for the intended use of gcloud SDK within this
35+
# context, hence we're safe to remove it, preventing the following CVEs:
36+
# - CVE-2025-68121
37+
# - CVE-2026-27143
38+
# - CVE-2026-33186
39+
# Which are originated due to the bundled Go version in the pre-compiled anthoscli
40+
RUN rm -rf /usr/lib/google-cloud-sdk/bin/anthoscli
41+
42+
# NOTE: nic_sampler is not required for inference workloads, and is removed to
43+
# prevent CVEs originating from the bundled Go version used to compile it
44+
# - CVE-2025-22871
45+
# - CVE-2026-33186
46+
# - CVE-2024-24790
47+
# - CVE-2026-27143
48+
# - CVE-2025-68121
49+
RUN rm -f /opt/nvidia/nsight-compute/2025.1.1/host/target-linux-x64/plugins/efa_metrics/nic_sampler
50+
3451
# NOTE: Inference Endpoints API writes the Hugging Face Hub repository in
3552
# `/repository` hence it should allow any user to read from it
3653
RUN mkdir -p /repository && chmod 755 /repository

containers/pytorch/inference/gpu/2.7.1/transformers/4.57.3/py311/Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,23 @@ RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.
4343
apt-get clean autoremove --yes && \
4444
rm -rf /var/lib/{apt,dpkg,cache,log}
4545

46+
# NOTE: anthoscli is not required for the intended use of gcloud SDK within this
47+
# context, hence we're safe to remove it, preventing the following CVEs:
48+
# - CVE-2025-68121
49+
# - CVE-2026-27143
50+
# - CVE-2026-33186
51+
# Which are originated due to the bundled Go version in the pre-compiled anthoscli
52+
RUN rm -rf /usr/lib/google-cloud-sdk/bin/anthoscli
53+
54+
# NOTE: nic_sampler is not required for inference workloads, and is removed to
55+
# prevent CVEs originating from the bundled Go version used to compile it
56+
# - CVE-2025-22871
57+
# - CVE-2026-33186
58+
# - CVE-2024-24790
59+
# - CVE-2026-27143
60+
# - CVE-2025-68121
61+
RUN rm -f /opt/nvidia/nsight-compute/2025.1.1/host/target-linux-x64/plugins/efa_metrics/nic_sampler
62+
4663
# NOTE: Inference Endpoints API writes the Hugging Face Hub repository in
4764
# `/repository` hence it should allow any user to read from it
4865
RUN mkdir -p /repository && chmod 755 /repository

0 commit comments

Comments
 (0)