[Medium] Patch rust for CVE-2026-47143 - #18232
Conversation
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
- 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
ee70bcf to
f96c54f
Compare
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
|
Triggered Buddy build to verify license warnings : https://dev.azure.com/mariner-org/mariner/_build/results?buildId=1171428&view=results |
- Restore changelog release-number order (1.90.0-1 before 1.86.0-10) - Note the CVE-2026-25541.patch update in the changelog - Fix CVE-2026-25541.patch: add trailing newline and symmetric checksum no-newline marker (silences 'patch unexpectedly ends in middle of line') - Fix rust-doc license warnings: move bundled SPDX license texts out of the doc tree into the license dir, and add license_file_exceptions.json entries for the HTML doc assets
dcaa8c5 to
d81160f
Compare
49eed2b to
d81160f
Compare
Buddy Build has passed. |
kgodara912
left a comment
There was a problem hiding this comment.
In the previous rust CVEs, we used to update multiple other dependent packages. Could you please check once if that is no longer true? Please take a look at other rust PRs. Though it may be the case that we don't need update but just confirm once.
| vendor/capstone-sys-0.17.0/capstone/arch/X86/X86DisassemblerDecoder.c | 4 ++-- | ||
| 1 file changed, 2 insertions(+), 2 deletions(-) | ||
|
|
||
| diff --git a/vendor/capstone-sys-0.17.0/capstone/arch/X86/X86DisassemblerDecoder.c b/vendor/capstone-sys-0.17.0/capstone/arch/X86/X86DisassemblerDecoder.c |
There was a problem hiding this comment.
This crate also has vendor/capstone-sys-0.17.0/.cargo-checksum.json checksum file which has the X86DisassemblerDecoder.c file checksum present. So, if this module is compiled in future, then the compilation will fail as checksum doesn't match. Though it is fine to keep the fix, there is no harm, but it should update the checksum file of the module for future compilation. Likely our current spec never compiles the file currently.
There was a problem hiding this comment.
Updated the patch to also fix the X86DisassemblerDecoder.c checksum in vendor/capstone-sys-0.17.0/.cargo-checksum.json, so it stays buildable if compiled later.
Hi kgodara912 I've checked on this. No dependent packages need updates. capstone-sys is only used by Miri (not built here), and the bytes CVE is already patched separately in kata-containers, netavark, rpm-ostree, and rust-afterburn. |
kgodara912
left a comment
There was a problem hiding this comment.
Patch matches with upstream reference except checksum. The create itself doesn't seem to be compiling currently. Buddy build is successful. LGTM.
This reverts commit 63c1f29.
This reverts commit c6a46b7.
This reverts commit 288e0cc.

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
rustforCVE-2026-47143.capstone-syspackage in Rust 1.90.0.vendor/capstone-sys-0.17.0/capstone/arch/X86/X86DisassemblerDecoder.c.This PR also includes two follow-up changes to the same
rustspec:CVE-2026-25541.patch: narrowed to only the vendoredbytes-1.10.1crate (the version actually built), dropping the unusedbytes-1.4.0,1.7.1,1.8.0, and1.10.0hunks.rust-doclicense-check warnings: relocated the rustdoc-bundled license texts (webfont /static.fileslicenses and the SPDX bundle) to%license, and removed auto-generated*bsd*API/platform doc pages whose names trip the license-name heuristic.Change Log
SPECS/rust/CVE-2026-47143.patchSPECS/rust/rust.specSPECS/rust/CVE-2026-25541.patchDoes this affect the toolchain?
NO
Links to CVEs
Test Methodology
RUN_CHECK=y.rustpatches apply sequentially with zero fuzz.rust-docfile tree: the bundled license texts are tagged%licenseand the flagged*bsd*pages are removed, leaving no license-name matches under the doc directory.