Skip to content

[AutoPR- Security] Patch rest for CVE-2026-16615 [MEDIUM] - #18139

Draft
azurelinux-security wants to merge 2 commits into
microsoft:3.0-devfrom
azurelinux-security:azure-autosec/rest/3.0/1168500
Draft

[AutoPR- Security] Patch rest for CVE-2026-16615 [MEDIUM]#18139
azurelinux-security wants to merge 2 commits into
microsoft:3.0-devfrom
azurelinux-security:azure-autosec/rest/3.0/1168500

Conversation

@azurelinux-security

@azurelinux-security azurelinux-security commented Jul 27, 2026

Copy link
Copy Markdown

Auto Patch rest for CVE-2026-16615.

Autosec pipeline run -> https://dev.azure.com/mariner-org/mariner/_build/results?buildId=1168500&view=results

CVE-2026-16615 : Single Patch Backporter Pipeline Run -> https://dev.azure.com/mariner-org/mariner/_build/results?buildId=1168503&view=results

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?

YES/NO

Associated issues
  • N/A
Links to CVEs
Test Methodology

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@microsoft-github-policy-service microsoft-github-policy-service Bot added Packaging 3.0-dev PRs Destined for AzureLinux 3.0 labels Jul 27, 2026
@Kanishk-Bansal
Kanishk-Bansal marked this pull request as ready for review July 27, 2026 07:15
@Kanishk-Bansal
Kanishk-Bansal requested a review from a team as a code owner July 27, 2026 07:15
@Kanishk-Bansal
Kanishk-Bansal marked this pull request as draft July 27, 2026 09:43
@v-swapsahu

v-swapsahu commented Jul 28, 2026

Copy link
Copy Markdown

Patch Analysis:

Backported: Yes
The patch aligns with the upstream fix, with only minor backport adaptation.

Fix Summary
CVE-2026-16615 is addressed by replacing the insecure GRand-based random string generator with a cryptographically secure one, across three files:

image

Spec File Change
rest.spec: Changes %autosetup to %autosetup -p1 to fix patch application failure in %prep .

Backport completeness
I do not see any missing upstream backport work in this AutoPR.

@akhila-guruju

Copy link
Copy Markdown

Patch Analysis:
Backported: Yes
AI patch matches with upstream patch. Slight variation around some of the patched lines. Patch fixes weak random number generation in PKCE implementation by replacing the insecure GRand/g_rand_* PRNG with a cryptographically secure random source

Additional upstream build fix typo also fixed in this patch.
Ref: https://gitlab.gnome.org/GNOME/librest/-/commit/10fdf11d7d109f6b37ef9cff475a6be6fe76fd20

image
  • Buddy Build
  • patch applied during the build (check rpm.log)
  • patch include an upstream reference
  • PR has security tag

Verdict: AI patch LGTM.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants