Skip to content

libssh2: patch CVE-2026-58050 and CVE-2026-58051 - #543937

Merged
vcunat merged 2 commits into
NixOS:stagingfrom
whispersofthedawn:p/libssh2
Jul 27, 2026
Merged

vcunat merged 2 commits into
NixOS:stagingfrom
whispersofthedawn:p/libssh2

Conversation

@whispersofthedawn

@whispersofthedawn whispersofthedawn commented Jul 20, 2026 •

Copy link
Copy Markdown
Contributor

Closes #537002. Closes #537001.

patch source: libssh2/libssh2#1925 (comment). looked over both diffs, they seem very reasonable. pulled from JuliaPackaging/Yggdrasil since we (a) cannot use fetchpatch and (b) the latter patch does not cleanly apply to 1.11.1, the version we have, as some functions were renamed.

it would be really nice to have an upstream release…

Fixes: CVE-2026-58050, CVE-2026-58051

Things done

@whispersofthedawn
whispersofthedawn changed the base branch from master to staging July 20, 2026 18:45
@whispersofthedawn whispersofthedawn added 1.severity: security Issues which raise a security issue, or PRs that fix one backport staging-26.05 Backport PR automatically labels Jul 20, 2026
@nixpkgs-ci nixpkgs-ci Bot closed this Jul 20, 2026
@nixpkgs-ci nixpkgs-ci Bot reopened this Jul 20, 2026
@nixpkgs-ci
nixpkgs-ci Bot requested a review from SuperSandro2000 July 20, 2026 18:55
@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. labels Jul 20, 2026

@SuperSandro2000 SuperSandro2000 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you please take me out of meta.maintainers? Thanks

@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". labels Jul 25, 2026
@LeSuisse LeSuisse linked an issue Jul 25, 2026 that may be closed by this pull request
@vcunat
vcunat added this pull request to the merge queue Jul 27, 2026
Merged via the queue into NixOS:staging with commit ab3328f Jul 27, 2026
27 checks passed
@nixpkgs-ci

nixpkgs-ci Bot commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Backport failed for staging-26.05, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin staging-26.05
git worktree add -d .worktree/backport-543937-to-staging-26.05 origin/staging-26.05
cd .worktree/backport-543937-to-staging-26.05
git switch --create backport-543937-to-staging-26.05
git cherry-pick -x 572bf8abb5d7a93705ecdf2834f0bd7d675c7e95 19c05bc5b549b436bd25fcd136d3af9d0bc964dc

@whispersofthedawn
whispersofthedawn deleted the p/libssh2 branch July 27, 2026 14:53
@whispersofthedawn whispersofthedawn added 8.has: port to stable This PR already has a backport to the stable release. and removed 8.has: failed backport labels Jul 27, 2026
whispersofthedawn added a commit to whispersofthedawn/nixpkgs that referenced this pull request Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.severity: security Issues which raise a security issue, or PRs that fix one 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". 8.has: port to stable This PR already has a backport to the stable release. 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. 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. backport staging-26.05 Backport PR automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

libssh2 - Free of Uninitialized Pointer in publickey List Cleanup

3 participants