Skip to content

Conversation

@v-smalavathu
Copy link
Contributor

@v-smalavathu v-smalavathu commented Mar 7, 2025

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

python3: Patch for CVE-2025-1795

Change Log
  • new file: SPECS/python3/CVE-2025-1795.patch
  • modified: SPECS/python3/python3.spec
  • modified: toolkit/resources/manifests/package/pkggen_core_aarch64.txt
  • modified: toolkit/resources/manifests/package/pkggen_core_x86_64.txt
  • modified: toolkit/resources/manifests/package/toolchain_aarch64.txt
  • modified: toolkit/resources/manifests/package/toolchain_x86_64.txt
Does this affect the toolchain?

NO

Associated issues
  • #xxxx
Links to CVEs
Test Methodology
  • Pipeline build id: xxxx

@v-smalavathu v-smalavathu requested a review from a team as a code owner March 7, 2025 20:40
@microsoft-github-policy-service microsoft-github-policy-service bot added Packaging fasttrack/2.0 PRs Destined for Azure Linux 2.0 labels Mar 7, 2025
Copy link
Contributor

@dmcilvaney dmcilvaney left a comment

Choose a reason for hiding this comment

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

https://github.com/microsoft/azurelinux/tree/2.0/toolkit/resources/manifests/package these manifests also need updating for toolchain packages. The PR check should list the expected changes.

@v-smalavathu v-smalavathu changed the title python3: Patch for CVE-2025-1795 [Low] [Low] Patch python3 for CVE-2025-1795 Mar 14, 2025
@v-smalavathu
Copy link
Contributor Author

https://github.com/microsoft/azurelinux/tree/2.0/toolkit/resources/manifests/package these manifests also need updating for toolchain packages. The PR check should list the expected changes.

I didn't change these manifests though this PR. Just I checked out stable version of toolchain, using the following command

"git checkout -f 2.0-stable -- resources/manifests"
-Thanks

@dmcilvaney
Copy link
Contributor

The manifest files track which packages we use as our toolchain. Python is one of those packages, so the manifests need to match the new version-release in the .spec file.

When you do git checkout -f 2.0-stable -- resources/manifests it resets the toolchain to use the stable release, but since you are working with python (which is part of those manifests), the final PR will need to change those files as well.

@v-smalavathu
Copy link
Contributor Author

The manifest files track which packages we use as our toolchain. Python is one of those packages, so the manifests need to match the new version-release in the .spec file.

When you do git checkout -f 2.0-stable -- resources/manifests it resets the toolchain to use the stable release, but since you are working with python (which is part of those manifests), the final PR will need to change those files as well.

Yes, Fixed,
Uploaded new changes.
-Thanks

Copy link
Contributor

@Kanishk-Bansal Kanishk-Bansal left a comment

Choose a reason for hiding this comment

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

Kindly resolve merge conflicts

@v-smalavathu
Copy link
Contributor Author

fyi

image

Did rebase on this PR.
-Thanks

@Kanishk-Bansal
Copy link
Contributor

/azurepipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@@ -1,5 +1,5 @@
filesystem-1.1-20.cm2.aarch64.rpm
kernel-headers-5.15.176.3-3.cm2.noarch.rpm
kernel-headers-5.15.167.1-1.cm2.noarch.rpm
Copy link
Contributor

Choose a reason for hiding this comment

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

These versions shouldn't be rolled back, merge/rebase may have gone wrong?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated with latest manifest files.

Signed-off-by: Sreenivasulu Malavathula <v-smalavathu@microsoft.com>
@v-smalavathu v-smalavathu force-pushed the v-smalavathu/python3/CVE-2025-1795 branch from 89d10af to 21c0450 Compare March 27, 2025 19:02
@Kanishk-Bansal
Copy link
Contributor

/azurepipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@Kanishk-Bansal
Copy link
Contributor

/azurepipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

@Kanishk-Bansal Kanishk-Bansal left a comment

Choose a reason for hiding this comment

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

  • Buddy Build
  • Patch getting applied during the build in rpm.log : Yes
  • test failures (if any) : NO
  • Upstream Patch Reference is there in the Patch : Yes
  • Has security tag : Yes

@Kanishk-Bansal Kanishk-Bansal self-requested a review April 1, 2025 14:42
@jslobodzian jslobodzian merged commit a5b423f into microsoft:fasttrack/2.0 Apr 9, 2025
10 checks passed
CBL-Mariner-Bot pushed a commit that referenced this pull request Apr 9, 2025
Signed-off-by: Sreenivasulu Malavathula <v-smalavathu@microsoft.com>
Co-authored-by: Kanishk Bansal <103916909+Kanishk-Bansal@users.noreply.github.com>
Co-authored-by: jslobodzian <joslobo@microsoft.com>
(cherry picked from commit a5b423f)
@CBL-Mariner-Bot
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fasttrack/2.0 PRs Destined for Azure Linux 2.0 Packaging security

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants