fix: add dnf repo guards to ROCm Dockerfiles to prevent package downgrades #1500
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 223 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.324
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1500"
general
weight: 0.35
sutaakar
Problem
The ROCm training image Dockerfiles run
dnf installcommands without--disablerepo/--enablerepoguards. The AMD ROCm SDK repos are configured withpriority=50targeting RHEL 9.4 packages, which causes DNF's dependency solver to downgrade system packages — includingutil-linux-core— from the UBI9 base image's patched versions to older AMD-repo versions.This overrides CVE fixes delivered via the base image:
util-linux-coredowngraded from2.37.4-28.el9_9(fixed) to2.37.4-25.el9(vulnerable)The CUDA Dockerfiles already use proper repo isolation and are unaffected.
Fix
Add
--disablerepo="" --enablerepo="..."guards to alldnf installcommands in both ROCm Dockerfiles, matching the isolation pattern already used in the CUDA Dockerfiles:amdgpu,ROCm-6.4.3,ubi-9-baseos-rpms,ubi-9-appstream-rpmsubi-9-baseos-rpms,ubi-9-appstream-rpmsonlyThis ensures system packages always come from UBI repos while ROCm packages come from AMD repos, preventing unintended downgrades.
Files changed
images/runtime/training/py312-rocm64-torch290/Dockerfile.konfluximages/runtime/training/py312-rocm64-torch280/Dockerfile.konfluxVerification
Before this fix, the ROCm images had:
The CUDA images (already guarded) had:
Both share the identical base image (
ubi9/python-312), confirming the ROCm SDK install is the source of the downgrade.---
AI-generated. Review for accuracy.*
@sutaakar requested from Slack
Chai persona:
Kubeflow Trainer