Skip to content

[High] Patch python3 for CVE-2025-4138, CVE-2025-4330, CVE-2025-4517, CVE-2025-4516, CVE-2024-12718, CVE-2025-4435, CVE-2023-5752, and CVE-2023-45803 #13994

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

Conversation

v-smalavathu
Copy link
Contributor

@v-smalavathu v-smalavathu commented Jun 11, 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-4138, CVE-2025-4330, CVE-2025-4517, CVE-2025-4516, CVE-2024-12718, CVE-2025-4435, CVE-2023-5752, and CVE-2023-45803

Change Log
  • new file: SPECS/python3/CVE-2023-45803.patch
  • new file: SPECS/python3/CVE-2023-5752.patch
  • new file: SPECS/python3/CVE-2025-4138.patch
  • new file: SPECS/python3/CVE-2025-4516.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?

YES

Associated issues
  • #xxxx
Links to CVEs
Test Methodology
Test Methodology

…and CVE-2025-4517

Signed-off-by: Sreenivasulu Malavathula <v-smalavathu@microsoft.com>
@v-smalavathu v-smalavathu requested a review from a team as a code owner June 11, 2025 23:48
@microsoft-github-policy-service microsoft-github-policy-service bot added Packaging fasttrack/2.0 PRs Destined for Azure Linux 2.0 labels Jun 11, 2025
@v-smalavathu
Copy link
Contributor Author

v-smalavathu commented Jun 12, 2025

Hi,
Here, the Patch Summary:

  1. The Patch available from Astrolab is Python3 Version 3.12.x-y and above.

  2. Found similar Patch available for back porting Python3 Version `3.9.x-y' that required for this branch 2.0.
    The link is https://github.com/python/cpython/pull/135084/commits

  3. This link has multiple commits (8), All required for this CVE. The final patch files (11) required for this CVE is as shown this link https://github.com/python/cpython/pull/135084/files

@v-smalavathu v-smalavathu marked this pull request as draft June 12, 2025 03:37
@Kanishk-Bansal
Copy link
Contributor

Kindly incorporate #13894 changes also in this PR

@v-smalavathu v-smalavathu force-pushed the v-smalavathu/python3/CVE-2025-4138_2-python3 branch from e73dfab to 066e720 Compare June 13, 2025 01:43
@v-smalavathu v-smalavathu changed the title [High] Patch python3 for CVE-2024-12718, CVE-2025-4138, CVE-2025-4330, CVE-2025-4435 and CVE-2025-4517 [High] Patch python3 for CVE-2025-4138, CVE-2025-4330, CVE-2025-4517, CVE-2025-4516, CVE-2024-12718, CVE-2025-4435, CVE-2023-5752, and CVE-2023-45803 Jun 13, 2025
@v-smalavathu
Copy link
Contributor Author

v-smalavathu commented Jun 13, 2025

Kindly incorporate #13894 changes also in this PR

Yes, Incorporated PR #13894 (CVE-2025-4516) changes and
PR #13740 (CVE-2023-5752 and CVE-2023-45803) changes to this PR.
-Thanks

@v-smalavathu v-smalavathu marked this pull request as ready for review June 13, 2025 04:26
@v-smalavathu v-smalavathu marked this pull request as draft June 13, 2025 04:37
@v-smalavathu v-smalavathu force-pushed the v-smalavathu/python3/CVE-2025-4138_2-python3 branch from a81d8c2 to 90d2500 Compare June 13, 2025 23:13
Signed-off-by: Sreenivasulu Malavathula <v-smalavathu@microsoft.com>
@v-smalavathu v-smalavathu force-pushed the v-smalavathu/python3/CVE-2025-4138_2-python3 branch from 90d2500 to b148095 Compare June 13, 2025 23:21
@v-smalavathu v-smalavathu marked this pull request as ready for review June 17, 2025 14:28
@sameluch
Copy link
Contributor

/azurepipelines run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

@sameluch sameluch left a comment

Choose a reason for hiding this comment

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

LGTM, PR check failed for known pip install issue and kernel-mshv failure (confirmed unrelated)

@jslobodzian jslobodzian merged commit 62f1650 into microsoft:fasttrack/2.0 Jun 17, 2025
19 of 22 checks passed
CBL-Mariner-Bot pushed a commit that referenced this pull request Jun 17, 2025
…VE-2025-4516, CVE-2024-12718, CVE-2025-4435, CVE-2023-5752, and CVE-2023-45803 (#13994)

Signed-off-by: Sreenivasulu Malavathula <v-smalavathu@microsoft.com>
(cherry picked from commit 62f1650)
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