Skip to content

[Medium] Patch rust for CVE-2026-47143 - #18232

Open
SumitJenaHCL wants to merge 2 commits into
microsoft:3.0-devfrom
SumitJenaHCL:topic_rust-1.90.0-3.0
Open

[Medium] Patch rust for CVE-2026-47143#18232
SumitJenaHCL wants to merge 2 commits into
microsoft:3.0-devfrom
SumitJenaHCL:topic_rust-1.90.0-3.0

Conversation

@SumitJenaHCL

@SumitJenaHCL SumitJenaHCL commented Jul 28, 2026

Copy link
Copy Markdown
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
  • Patch rust for CVE-2026-47143.
  • The CVE affects the vendored capstone-sys package in Rust 1.90.0.
  • Capstone's reduced-X86 decoder can dereference a NULL instruction specification when handling unsupported instruction types.
  • The upstream fix has been backported to vendor/capstone-sys-0.17.0/capstone/arch/X86/X86DisassemblerDecoder.c.
  • Upstream Patch Reference: capstone-engine/capstone@a020137

This PR also includes two follow-up changes to the same rust spec:

  • CVE-2026-25541.patch: narrowed to only the vendored bytes-1.10.1 crate (the version actually built), dropping the unused bytes-1.4.0, 1.7.1, 1.8.0, and 1.10.0 hunks.
  • rust-doc license-check warnings: relocated the rustdoc-bundled license texts (webfont / static.files licenses and the SPDX bundle) to %license, and removed auto-generated *bsd* API/platform doc pages whose names trip the license-name heuristic.
Change Log
  • new file: SPECS/rust/CVE-2026-47143.patch
  • modified: SPECS/rust/rust.spec
  • modified: SPECS/rust/CVE-2026-25541.patch
Does this affect the toolchain?

NO

Links to CVEs
Test Methodology
  • Local package build was successful.
  • Package tests passed with RUN_CHECK=y.
  • All rust patches apply sequentially with zero fuzz.
  • License-check fix validated against the built rust-doc file tree: the bundled license texts are tagged %license and the flagged *bsd* pages are removed, leaving no license-name matches under the doc directory.

@SumitJenaHCL
SumitJenaHCL requested a review from a team as a code owner July 28, 2026 04:08
@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 28, 2026
@SumitJenaHCL
SumitJenaHCL marked this pull request as draft July 28, 2026 04:09
@SumitJenaHCL

SumitJenaHCL commented Jul 28, 2026

Copy link
Copy Markdown
Author

- Narrow CVE-2026-25541.patch to the vendored bytes-1.10.1 crate
- Relocate rustdoc-bundled license texts to %license and drop *bsd* doc pages
@SumitJenaHCL
SumitJenaHCL force-pushed the topic_rust-1.90.0-3.0 branch from ee70bcf to f96c54f Compare July 28, 2026 07:41
@SumitJenaHCL
SumitJenaHCL marked this pull request as ready for review July 28, 2026 08:13
@azure-pipelines

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

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

Labels

3.0-dev PRs Destined for AzureLinux 3.0 Packaging security

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants