Skip to content

[staging-26.05] cargo: add patches for CVE-2026-5222 and CVE-2026-5223 - #524640

Merged
alyssais merged 1 commit into
NixOS:staging-26.05from
whispersofthedawn:ps/cargo
May 27, 2026
Merged

[staging-26.05] cargo: add patches for CVE-2026-5222 and CVE-2026-5223#524640
alyssais merged 1 commit into
NixOS:staging-26.05from
whispersofthedawn:ps/cargo

Conversation

@whispersofthedawn

@whispersofthedawn whispersofthedawn commented May 27, 2026

Copy link
Copy Markdown
Contributor

My understanding is that the release branches do not upgrade their Rust versions, so we should patch these issues on 26.05. There won't be another staging-next-25.11 cycle, and the issues don't seem of high enough severity to disrupt the current one, so I don't think we need to bother with this on 25.11.

Please let me know if there's a different/better place to apply this patch; I wasn't sure if I should do it in rust/cargo.nix, rust/1_95.nix, or elsewhere.

Upstream pull request: rust-lang/cargo#17031

Fixes: CVE-2026-5222, https://blog.rust-lang.org/2026/05/25/cve-2026-5222/
Fixes: CVE-2026-5223, https://blog.rust-lang.org/2026/05/25/cve-2026-5223/
Not-cherry-picked-because: master will get these fixes via the rust 1.96 upgrade on 2026-05-28

Things done

Upstream pull request: rust-lang/cargo#17031

Fixes: CVE-2026-5222, https://blog.rust-lang.org/2026/05/25/cve-2026-5222/
Fixes: CVE-2026-5223, https://blog.rust-lang.org/2026/05/25/cve-2026-5223/
Not-cherry-picked-because: master will get these fixes via the rust 1.96 upgrade on 2026-05-28

@nixpkgs-commit-check nixpkgs-commit-check Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This report is automatically generated by the PR / Check / cherry-pick CI workflow.

Some of the commits in this PR require the author's and reviewer's attention.

If you need to merge this PR despite the warnings, please dismiss this review shortly before merging.

Important

5f1133b is not a cherry-pick, because: master will get these fixes via the rust 1.96 upgrade on 2026-05-28. Please review this commit manually.

Hint: The full diffs are also available in the runner logs with slightly better highlighting.

@nixpkgs-ci
nixpkgs-ci Bot requested review from a team, Mic92, alyssais and winterqt May 27, 2026 00:11
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. 10.rebuild-nixos-tests This PR causes rebuilds for all NixOS tests and should normally target the staging branches. 6.topic: rust General-purpose programming language emphasizing performance, type safety, and concurrency. 4.workflow: backport This targets a stable branch labels May 27, 2026
@alyssais
alyssais merged commit 2264c70 into NixOS:staging-26.05 May 27, 2026
35 checks passed
@whispersofthedawn
whispersofthedawn deleted the ps/cargo branch May 27, 2026 11:45
@samueldr-at-cyberus samueldr-at-cyberus mentioned this pull request Jun 8, 2026
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.workflow: backport This targets a stable branch 6.topic: rust General-purpose programming language emphasizing performance, type safety, and concurrency. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. 10.rebuild-nixos-tests This PR causes rebuilds for all NixOS tests and should normally target the staging branches.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants