Skip to content

Commit ae2d2d4

Browse files
runzhenCopilot
andcommitted
fix(security): patch gpgv/libssl3t64 CVEs in aks-gpu-cuda-lts image
IcM 862176737 flagged HIGH severity CVEs in gpgv and libssl3t64 for mcr.microsoft.com/aks/aks-gpu-cuda-lts:580.159.04-202606292144301 (ubuntu 24.04 base). Neither the builder nor final stage ran 'apt upgrade', so the base image's stale gpgv/libssl3t64 packages were carried through unpatched into the shipped image. Add 'apt upgrade -y' in the builder stage and an explicit apt-get update && apt-get upgrade in the final stage before copying artifacts, so the shipped image picks up the latest Ubuntu security patches for these packages. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent a150b7d commit ae2d2d4

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎Dockerfile‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ ARG distro=24.04
22

33
FROM mcr.microsoft.com/mirror/docker/library/ubuntu:${distro} as gpu
44

5-
RUN apt update && apt install -y curl xz-utils gnupg2 ca-certificates gettext-base --no-install-recommends
5+
RUN apt update && apt upgrade -y && apt install -y curl xz-utils gnupg2 ca-certificates gettext-base --no-install-recommends && rm -rf /var/lib/apt/lists/*
66

77
ARG DRIVER_VERSION
88
ARG DRIVER_URL
@@ -24,6 +24,10 @@ RUN bash download.sh
2424

2525
FROM mcr.microsoft.com/mirror/docker/library/ubuntu:${distro}
2626

27+
# Pull in the latest Ubuntu security patches (e.g. gpgv, libssl3t64) on top of
28+
# the base image so shipped VHD images don't carry stale, vulnerable packages.
29+
RUN apt-get update && apt-get upgrade -y && rm -rf /var/lib/apt/lists/*
30+
2731
COPY --from=gpu /opt/gpu/ /opt/gpu/
2832
COPY entrypoint.sh /entrypoint.sh
2933
COPY install.sh /opt/actions/install.sh

0 commit comments

Comments
 (0)