TechBuzzPro

OpenSSH 10.4 Security Fixes: What They Mean

· 6 min read · Apps & Browsers

In this article
  1. What Actually Changed in OpenSSH 10.4
  2. Background: Why OpenSSH Updates Matter
  3. How the Fixes Work (and What They Don’t Fix)
  4. How to Update (and Verify You’re Safe)
  5. Common Problems and Misconceptions
  6. Comparing OpenSSH 10.4 to Earlier Versions
  7. Safety and Best Practices
  8. Frequently Asked Questions

OpenSSH 10.4 patches several security vulnerabilities, including a memory safety issue in the SSH agent and a denial-of-service flaw in the server, but for most users the practical impact is minimal: update your packages and carry on. The release also adds a few quality-of-life features, but the headline is that the most serious issues are closed before they become widespread exploits.

in t | Finish time | min | 50 | 0
in d | Distance | km | 10 | 0
out pace | Average pace | min/km | t / d | 2
out speed | Average speed | km/h | d / (t / 60) | 2

What Actually Changed in OpenSSH 10.4

OpenSSH 10.4 is a maintenance release, not a major overhaul. The changelog lists a handful of fixes and small improvements. The most important are:

  • Memory safety fix in ssh-agent: A use-after-free in the agent’s PKCS#11 handling could, in theory, allow a local attacker to execute code. This is the kind of bug that security researchers watch for, but exploiting it requires local access and specific conditions.
  • Server denial-of-service fix: A malformed packet could cause the sshd server to crash. This is a robustness issue, not a remote code execution, but a crashing SSH server is still a problem for availability.
  • Small feature additions: The release adds a few minor options, like a new Match criteria in sshd_config and a tweak to how the ssh client handles some host key algorithms.

None of these are the kind of “patch now or be hacked” emergency that occasionally hits OpenSSL or other core libraries. But that doesn’t mean you should ignore them.

Background: Why OpenSSH Updates Matter

OpenSSH is the de facto standard for secure remote access on Linux, macOS, and many network devices. It’s also used as a secure file transfer protocol (SFTP) and as a building block for other tools like Git over SSH. Because it sits on the edge of your network, it’s a prime target for attackers. A vulnerability in OpenSSH can be a gateway to a server, and because the software is so widely deployed, even a “minor” bug can have a big blast radius.

The project’s security track record is strong, but not perfect. In 2024, a serious vulnerability (CVE-2024-6387, nicknamed “regreSSHion”) allowed remote code execution in some configurations. That was a stark reminder that OpenSSH is not immune to critical flaws. So when a new version arrives, it’s worth paying attention to what’s fixed.

How the Fixes Work (and What They Don’t Fix)

The memory safety fix in ssh-agent is a classic use-after-free. The agent, which holds your private keys in memory, had a code path where it could free a block of memory and then still use it. An attacker who could influence that path might be able to corrupt memory and potentially execute code. The fix likely adds a proper reference count or reorders the cleanup logic. For a typical user, this is only exploitable if an attacker already has local access to your machine, which usually means they’ve already won.

The server DoS fix is simpler: a malformed packet could cause sshd to exit. That’s a denial of service, not a compromise. An attacker could repeatedly crash your SSH service, making your server unreachable. The fix probably adds input validation or error handling to gracefully reject the bad packet.

It’s worth noting what OpenSSH 10.4 does not change. It doesn’t alter the default key exchange algorithms, nor does it change the default ciphers. If you’ve been relying on older algorithms for compatibility, those still work. The release is about hardening, not about breaking changes.

How to Update (and Verify You’re Safe)

Updating OpenSSH is usually a package manager operation. On most Linux distributions, you can run:

  • Debian/Ubuntu: sudo apt update && sudo apt upgrade openssh-client openssh-server
  • RHEL/Fedora: sudo dnf update openssh
  • Alpine: sudo apk upgrade openssh
  • macOS: If you use Homebrew, brew upgrade openssh. Otherwise, you’re at the mercy of Apple’s system updates.

After updating, verify the version with ssh -V. You should see something like OpenSSH_10.4 (the exact version string may vary). If you’re running a system that doesn’t have a 10.4 package yet, check your distribution’s security advisories. Some distros backport security fixes to older versions, so you might be safe even without the 10.4 version number.

Common Problems and Misconceptions

A common misconception is that OpenSSH updates are only for server administrators. That’s false. The ssh client is also affected, and the agent fix is client-side. Even if you only use SSH to connect to other machines, you should update.

Another issue: some users see “OpenSSH_10.4” and assume it’s a major version with breaking changes. It’s not. The versioning scheme is date-based, not semantic. 10.4 is just the fourth release of 2025. There are no new defaults that will break your existing configs.

One real problem that can occur after an update is that the SSH server may need to be restarted to pick up the new binary. On systemd systems, sudo systemctl restart sshd (or ssh on some distros) will do it. If you forget, the old process keeps running, and you’re still vulnerable.

Comparing OpenSSH 10.4 to Earlier Versions

If you’re coming from OpenSSH 9.x, the jump to 10.x already happened earlier in 2025. Version 10.0 introduced the post-quantum hybrid key exchange (ML-KEM) and switched the default signature algorithm to a post-quantum option. 10.4 builds on that, but doesn’t add any new quantum-resistant algorithms. It’s a stabilization release.

For those on older versions like 8.x, the differences are larger. You’ll get the quantum-resistant algorithms, improved key handling, and a host of other changes. But for most users, the practical difference is invisible. SSH just works.

Safety and Best Practices

Beyond updating, here are a few things you can do to keep your SSH setup secure:

  • Use key-based authentication instead of passwords. Keys are far harder to brute-force.
  • Disable password authentication on servers if you can. Set PasswordAuthentication no in sshd_config.
  • Keep your private keys safe and consider using a hardware token or a passphrase-protected key.
  • Monitor your auth logs for unusual activity. Fail2ban or similar tools can help.

These are general best practices, not specific to 10.4, but they’re worth repeating because no software update can fix bad configuration.

Frequently Asked Questions

Is OpenSSH 10.4 a critical update?

No, but it’s recommended. The fixed vulnerabilities are not being actively exploited in the wild at the time of release, but they could be later. Updating is a low-effort, high-reward action.

Do I need to change my sshd_config after updating?

No. OpenSSH 10.4 does not change any default configuration options. Your existing config will work as before.

Will OpenSSH 10.4 break my old scripts that use SSH?

Very unlikely. The release is backwards compatible. The only potential issue is if you’ve disabled new algorithms explicitly; those settings still work.

How do I know if I’m vulnerable to the agent bug?

If you haven’t updated and you use ssh-agent with PKCS#11 tokens (like smart cards), you’re potentially vulnerable. The exploit requires local access, so it’s not a remote threat.

What if my distribution doesn’t have OpenSSH 10.4 yet?

Check your distribution’s security advisories. They may have backported the fixes to an older version. If not, you can compile from source, but that’s usually unnecessary for most users.

Is there anything new for Windows users?

OpenSSH is included in Windows 10 and 11, but Microsoft ships its own builds. The 10.4 release is from the OpenBSD project; Windows users should wait for Microsoft to update their version. The same security fixes will eventually appear.