Skip to content

Update dnf5 to 5.1.17 for CVE-2024-1929, CVE-2024-1930, CVE-2024-2746 [High] #13606

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

Kanishk-Bansal
Copy link
Contributor

Merge Checklist

All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)

  • The toolchain has been rebuilt successfully (or no changes were made to it)
  • The toolchain/worker package manifests are up-to-date
  • Any updated packages successfully build (or no packages were changed)
  • Packages depending on static components modified in this PR (Golang, *-static subpackages, etc.) have had their Release tag incremented.
  • Package tests (%check section) have been verified with RUN_CHECK=y for existing SPEC files, or added to new SPEC files
  • All package sources are available
  • cgmanifest files are up-to-date and sorted (./cgmanifest.json, ./toolkit/scripts/toolchain/cgmanifest.json, .github/workflows/cgmanifest.json)
  • LICENSE-MAP files are up-to-date (./LICENSES-AND-NOTICES/SPECS/data/licenses.json, ./LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md, ./LICENSES-AND-NOTICES/SPECS/LICENSE-EXCEPTIONS.PHOTON)
  • All source files have up-to-date hashes in the *.signatures.json files
  • sudo make go-tidy-all and sudo make go-test-coverage pass
  • Documentation has been updated to match any changes to the build system
  • Ready to merge

Summary

What does the PR accomplish, why was it needed?

Change Log
Does this affect the toolchain?

NO

Associated issues
  • #xxxx
Links to CVEs
Test Methodology

…[High]

Signed-off-by: Kanishk-Bansal <kbkanishk975@gmail.com>
@Kanishk-Bansal Kanishk-Bansal requested a review from a team as a code owner April 28, 2025 09:21
@microsoft-github-policy-service microsoft-github-policy-service bot added Packaging fasttrack/3.0 PRs Destined for Azure Linux 3.0 labels Apr 28, 2025
@Kanishk-Bansal
Copy link
Contributor Author

@Kanishk-Bansal Kanishk-Bansal requested a review from a team April 28, 2025 10:34
@Kanishk-Bansal
Copy link
Contributor Author

flux on arm64 is a known failure.

@anphel31 anphel31 added the CVEFixReadyForMaintainerReview When a CVE fix has been reviewed by release manager and is ready for stable maintainer review label Apr 28, 2025
@jslobodzian jslobodzian requested a review from sameluch April 28, 2025 18:42
@sameluch
Copy link
Contributor

@Kanishk-Bansal is there a reason why we are choosing not to patch these CVEs and upgrade instead?

Looking through the patches, they seem pretty small and inert when compared to the jump from 5.1.11 -> 5.1.17 when looking at the compare.
CVE-2024-1929: rpm-software-management/dnf5@6e51bf2
CVE-2024-2746: rpm-software-management/dnf5@07c5770

CVE-2024-1930: rpm-software-management/dnf5@c090ffe

dnf5 more recently made a change to their versioning to have truer to form patch releases starting with 5.2.0.0 for better granularity on things like this. Though unfortunately we are a bit stuck for now...

@@ -177,6 +177,7 @@ It supports RPM packages, modulemd modules, and comps groups & environments.

%files
%{_bindir}/dnf5
%{_bindir}/dnf-automatic
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a new plugin that dnf5 added in 5.1.13 which we likely don't want on by default and should be packaged separately (as we do with dnf and tdnf). In the upstream repo, there is an included spec file which we would want to align with for any new features added to keep packages consistent as we have in the past.
See change here: rpm-software-management/dnf5@9cf4ebd#diff-3764aa091c8d6fcbde25e8587620de2d599df9a8a2897c372975ecfa4d6b4980
Spec file here: https://github.com/rpm-software-management/dnf5/blob/5.1.17/dnf5.spec

@Kanishk-Bansal
Copy link
Contributor Author

Kanishk-Bansal commented Apr 30, 2025

Hey @sameluch, after seeing that the upgrade is having substantial changes, I have raised a PR with Patches, Take a look at it, #13646

@Kanishk-Bansal
Copy link
Contributor Author

closing in favour of #13646

@anphel31 anphel31 removed the CVEFixReadyForMaintainerReview When a CVE fix has been reviewed by release manager and is ready for stable maintainer review label May 1, 2025
@Kanishk-Bansal Kanishk-Bansal deleted the kanbansal/upgrade/dnf5/3.0 branch May 12, 2025 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fasttrack/3.0 PRs Destined for Azure Linux 3.0 Packaging security
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants