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

openssh: Fix pre-authentication remote code execution in sshd. #328

Merged
merged 1 commit into from
Jul 3, 2024

Conversation

ericbsd
Copy link
Member

@ericbsd ericbsd commented Jul 2, 2024

Reported by: Qualys Threat Research Unit (TRU)
Approved by: so
Security: FreeBSD-SA-24:04.openssh
Security: CVE-2024-6387

(cherry picked from commit 2abea9df01655633aabbb9bf3204c90722001202) (cherry picked from commit 25cf430cd551158135ef6f0c1aadf273ff3430c9)

Summary by Sourcery

This pull request addresses a critical security vulnerability in sshd that allowed for pre-authentication remote code execution. The fix involves disabling a logging function that could be exploited. Additionally, the FreeBSD-specific version identifier in the OpenSSH version header has been updated.

  • Bug Fixes:
    • Fixed a pre-authentication remote code execution vulnerability in sshd by disabling a potentially dangerous logging function.
  • Enhancements:
    • Updated the FreeBSD-specific version identifier in the OpenSSH version header.

Reported by:	Qualys Threat Research Unit (TRU)
Approved by:	so
Security:	FreeBSD-SA-24:04.openssh
Security:	CVE-2024-6387

(cherry picked from commit 2abea9df01655633aabbb9bf3204c90722001202)
(cherry picked from commit 25cf430cd551158135ef6f0c1aadf273ff3430c9)
@ericbsd ericbsd requested review from a team July 2, 2024 21:58
@ericbsd ericbsd self-assigned this Jul 2, 2024
Copy link

sourcery-ai bot commented Jul 2, 2024

Reviewer's Guide by Sourcery

This pull request addresses a critical security vulnerability (CVE-2024-6387) in the OpenSSH implementation. The changes include commenting out the code responsible for logging fatal errors in the sshsigdie function to prevent potential remote code execution. Additionally, the version number in version.h has been updated to reflect the new release.

File-Level Changes

Files Changes
crypto/openssh/log.c
crypto/openssh/version.h
Fixed a pre-authentication remote code execution vulnerability by disabling fatal error logging and updated the version number.

Tips
  • Trigger a new Sourcery review by commenting @sourcery-ai review on the pull request.
  • Continue your discussion with Sourcery by replying directly to review comments.
  • You can change your review settings at any time by accessing your dashboard:
    • Enable or disable the Sourcery-generated pull request summary or reviewer's guide;
    • Change the review language;
  • You can always contact us if you have any questions or feedback.

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @ericbsd - I've reviewed your changes and they look great!

Here's what I looked at during the review
  • 🟡 General issues: 1 issue found
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

crypto/openssh/log.c Show resolved Hide resolved
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@ericbsd ericbsd merged commit a22e557 into stable/14 Jul 3, 2024
4 checks passed
@ericbsd ericbsd deleted the CVE-2024-6387 branch July 3, 2024 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants