[Medium] Patch rust for CVE-2026-25541, CVE-2026-25727, CVE-2025-58160, CVE-2026-27171#15877
Merged
kgodara912 merged 5 commits intomicrosoft:mainfrom Mar 13, 2026
Merged
Conversation
Contributor
KavyaSree2610
approved these changes
Feb 19, 2026
kgodara912
requested changes
Feb 25, 2026
Contributor
kgodara912
left a comment
There was a problem hiding this comment.
Could you please recheck one patch? Other two patches look fine and matches with upstream reference.
SPECS/rust/CVE-2026-25541.patch
Outdated
| @@ -0,0 +1,342 @@ | |||
| From d0293b0e35838123c51ca5dfdf468ecafee4398f Mon Sep 17 00:00:00 2001 | |||
Contributor
There was a problem hiding this comment.
This patch has poor indentation and multiple things which are not present in upstream patch for both the references. Could you please check once the other backports of this CVE and see if we could improve this backported patch. We can keep test cases if they are working as expected.
Contributor
Author
There was a problem hiding this comment.
Fixed and updated.
Contributor
|
Buddy build after recent corrections. |
Contributor
Author
|
Buddy build passed. |
kgodara912
approved these changes
Mar 13, 2026
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
Patch rust for CVE-2025-58160, CVE-2026-25541, CVE-2026-25727
patch modified: No
patch modified: Yes
Backported manually to support upstream logic in
bytes_mut.rsand added testcases for backported code in filetest_bytes.rsfrom upstream.Astrolabe reference: tokio-rs/bytes@d0293b0
patch modified: No
patch modified: No
Change Log
Does this affect the toolchain?
NO
Links to CVEs
Test Methodology