Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[23.11] openssh: add backported security fix patches #323765

Merged

Conversation

emilazy
Copy link
Member

@emilazy emilazy commented Jul 1, 2024

Fixes a critical security bug allowing remote code execution as root: https://www.openssh.com/txt/release-9.8

This may be CVE-2024-6387 (currently embargoed): https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-6387

Thanks to upstream and Sam James for the backport: gentoo/gentoo@1633ef4

Description of changes

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

Fixes a critical security bug allowing remote code execution as root:
<https://www.openssh.com/txt/release-9.8>

This may be CVE-2024-6387 (currently embargoed):
<https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-6387>

Thanks to upstream and Sam James <[email protected]> for the backport:
<gentoo/gentoo@1633ef4>
@leona-ya leona-ya merged commit 763fc33 into NixOS:release-23.11 Jul 1, 2024
5 of 6 checks passed
@leona-ya
Copy link
Member

leona-ya commented Jul 1, 2024

23.11 still updated as discussed in https://matrix.to/#/!ZRgXNaHrdpGqwUnGnj:nixos.org/$nE6nJgr-mS-QJ9BuD54hdziP6dTvAdMCZN6rU433FFU?via=nixos.org&via=matrix.org&via=nixos.dev

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/security-advisory-openssh-cve-2024-6387-regresshion-update-your-servers-asap/48220/19

jonasnick added a commit to jonasnick/nix-bitcoin that referenced this pull request Jul 4, 2024
Fixes SSH unauthenticated RCE (CVE-2024-6387) via
NixOS/nixpkgs#323765.
@emilazy emilazy deleted the openssh-security-backport-23.11 branch August 26, 2024 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants