Bug 61292688 : Fix patch for CVE-2026-24747#16124
Merged
jslobodzian merged 3 commits intofasttrack/2.0from Mar 11, 2026
Merged
Conversation
cf8a0d8 to
3c92b77
Compare
Signed-off-by: Kanishk Bansal <kanbansal@microsoft.com>
3c92b77 to
ed426f5
Compare
Signed-off-by: Kanishk Bansal <kanbansal@microsoft.com>
315fbc3 to
2b0e858
Compare
Contributor
Author
Contributor
Author
|
The golden container test for |
jslobodzian
approved these changes
Mar 11, 2026
CBL-Mariner-Bot
pushed a commit
that referenced
this pull request
Mar 11, 2026
Signed-off-by: Kanishk Bansal <kanbansal@microsoft.com> Co-authored-by: Kanishk Bansal <kanbansal@microsoft.com> Co-authored-by: jslobodzian <joslobo@microsoft.com> (cherry picked from commit 06ef712)
Collaborator
|
Auto cherry-pick results: Auto cherry-pick pipeline run -> https://dev.azure.com/mariner-org/mariner/_build/results?buildId=1066936&view=results |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Merge Checklist
All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)
*-staticsubpackages, etc.) have had theirReleasetag incremented../cgmanifest.json,./toolkit/scripts/toolchain/cgmanifest.json,.github/workflows/cgmanifest.json)./LICENSES-AND-NOTICES/SPECS/data/licenses.json,./LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md,./LICENSES-AND-NOTICES/SPECS/LICENSE-EXCEPTIONS.PHOTON)*.signatures.jsonfilessudo make go-tidy-allandsudo make go-test-coveragepassSummary
What does the PR accomplish, why was it needed?
ADO Bug - https://microsoft.visualstudio.com/OS/_workitems/edit/61292688
Root cause: The CVE-2026-24747.patch (introduced in 2.0.0-13) added from typing_extensions import override to torch/optim/swa_utils.py. However, the system ships python-typing-extensions 4.2.0, and the override decorator was only added in version 4.4.0.
Fix applied:
Removed from typing_extensions import override import and both @OverRide decorators from the patch. The @OverRide decorator is purely a static type-checking hint (PEP 698) with zero runtime effect — it doesn't change behavior at all.
The CVE fix itself (implementing state_dict/load_state_dict for SWALR and using _set_anneal_func) is fully preserved — only the unnecessary type annotation decorators were removed.
Change Log
Does this affect the toolchain?
NO
Associated issues
Links to CVEs
Test Methodology