← Back to Pull requests

fix: add dnf repo guards to ROCm Dockerfiles to prevent package downgrades #1500

Closed
unknown closed this pull request without merging on Nov 27, 2026 11:39 UTC
View on GitHub
unknown unknown commented on Nov 13, 2026 12:56 UTC
Author

Problem

The ROCm training image Dockerfiles run dnf install commands without --disablerepo/--enablerepo guards. The AMD ROCm SDK repos are configured with priority=50 targeting RHEL 9.4 packages, which causes DNF's dependency solver to downgrade system packages — including util-linux-core — from the UBI9 base image's patched versions to older AMD-repo versions.

This overrides CVE fixes delivered via the base image:

  • CVE-2026-53613: util-linux-core downgraded from 2.37.4-28.el9_9 (fixed) to 2.37.4-25.el9 (vulnerable)
  • The CUDA Dockerfiles already use proper repo isolation and are unaffected.

    Fix

    Add --disablerepo="" --enablerepo="..." guards to all dnf install commands in both ROCm Dockerfiles, matching the isolation pattern already used in the CUDA Dockerfiles:

  • ROCm SDK packages → enabled: amdgpu, ROCm-6.4.3, ubi-9-baseos-rpms, ubi-9-appstream-rpms

  • Build tools (cmake, git, gcc, make, python3-devel) → enabled: ubi-9-baseos-rpms, ubi-9-appstream-rpms only
  • This 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.konflux

  • images/runtime/training/py312-rocm64-torch280/Dockerfile.konflux
  • Verification

    Before this fix, the ROCm images had:

    util-linux-core-2.37.4-25.el9  (vulnerable, from AMD dependency chain)
    

    The CUDA images (already guarded) had:
    util-linux-core-2.37.4-28.el9_9  (fixed, from UBI9 base)
    

    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

    Diff: 223 lines (+167 / -56) across 2 files Reviewer: sutaakar Review duration: 20083m
    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
    0.37
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 36.8% (MEDIUM) · Higher = larger blast radius
    36.8%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 14.5% · Safe to merge
    14.5%