Check and Patch OpenSSL CVEs on Ubuntu Without Breaking HTTPS

Updated on Nov 29, 2026
Mila H
5 MINS READ
Table of Contents
Ubuntu OpenSSL CVE Patch

To patch an OpenSSL CVE on Ubuntu, you must find your release and compare your installed package with the fixed version in the Ubuntu notice. Then, update only the OpenSSL packages, restart the services that still use the old library, and test HTTPS from outside. This guide covers the Ubuntu OpenSSL CVE patch process step by step.

Ubuntu OpenSSL Advisory Example

The example is Ubuntu notice USN-8847-1, published September 29, 2026. Ubuntu may publish newer notices, so always check the notice list before you patch.

USN-8847-1 fixes several OpenSSL issues on Ubuntu 26.04 LTS, 24.04 LTS, and 22.04 LTS. Two of the CVEs are CVE-2026-35189 and CVE-2026-84782.

You must reboot after a standard update to make all the changes take effect.

Ubuntu release Package Fixed version
24.04 LTS (noble) libssl3t64 3.0.13-0ubuntu3.16
22.04 LTS (jammy) libssl3 3.0.2-0ubuntu1.30
26.04 LTS (resolute) libssl3t64 3.5.5-1ubuntu3.6

For Ubuntu 26.04, there is a newer notice, which is USN-8861-1. It lists libssl3t64 3.5.5-1ubuntu3.7 and fixes two QUIC service-crash issues. Always use the newest fixed version for your release.

Ubuntu 20.04 and older need Ubuntu Pro to get these fixes. They are listed in USN-8847-2, and the package version ends with "esm".

Now that you know your fixed version, follow the steps below to update, restart, and test.

Step 1: Check Your Release and Version

First, you must find which Ubuntu release and OpenSSL package version you are running. To do this, run the commands below:

Bash
lsb_release -dsdpkg-query -W -f='${Package} ${Version}\n' openssl libssl3 libssl3t64 2>/dev/nullopenssl version

Example output for Ubuntu 24.04:

Ubuntu 24.04.x LTSlibssl3t64 3.0.13-0ubuntu3.15openssl 3.0.13-0ubuntu3.15OpenSSL 3.0.13 30 Jan 2024

Compare your installed version with the fixed version in the table. In this example, 3.0.13-0ubuntu3.15 is older than 3.0.13-0ubuntu3.16, so this server is not patched.

To check this yourself, run the following command. It prints "Needs update" if your version is older than the fixed one:

Bash
dpkg --compare-versions 3.0.13-0ubuntu3.15 lt 3.0.13-0ubuntu3.16 && echo "Needs update"

Step 2: Why OpenSSL Version Can Be Misleading

openssl version shows the upstream number, such as 3.0.13. Ubuntu keeps this number the same and adds security fixes into it. This is called a backport. The fix shows up in the last part of the package version (-0ubuntu3.16).

So OpenSSL 3.0.13 can be patched or not patched. Scanners that only read the upstream number usually give false alarms. Always check the full package version.

To see which CVEs your installed package fixes, check the package changelog:

Bash
apt changelog openssl | grep -m5 "CVE-2026"

Step 3: Update Only What Is Needed

Now update only the OpenSSL packages. This keeps the change small and lowers the risk of breaking something. First, take a backup or snapshot and run the commands below:

Bash
sudo apt updateapt list --upgradable 2>/dev/null | grep -i -E "openssl|libssl"sudo apt install --only-upgrade openssl libssl3t64

Note: On Ubuntu 22.04, use libssl3 instead of libssl3t64.

Run this command to confirm the new package version is installed:

Bash
dpkg-query -W -f='${Package} ${Version}\n' openssl libssl3t64

You should see 3.0.13-0ubuntu3.16 or newer on 24.04.

Tips: If you need a safe place to test this, a Linux VPS with full root access is a good option.

Step 4: Find Services Still Using the Old Library

An update replaces files on disk. A running service keeps the old library in memory until you restart it. Run these commands to list services that still use the old library, check the kernel, and see if a reboot is needed:

Bash
sudo apt install needrestartsudo needrestart -r lsudo needrestart -kls /var/run/reboot-required 2>/dev/null

Use the following command to find running processes that still use the old OpenSSL library. It shows each process as a /proc/<PID>/maps path. Run ps -p <PID> -o comm= to see the process name.

Bash
sudo grep -l 'libssl.*(deleted)' /proc/[0-9]*/maps 2>/dev/null

Common affected services are nginx, apache2, postfix, dovecot, sshd, haproxy and database servers.

Step 5: Restart or Reboot Safely

At this point, you must test the config, then restart the services one by one so you can catch problems early:

Bash
sudo nginx -t && sudo systemctl restart nginxsudo apachectl configtest && sudo systemctl restart apache2sudo systemctl restart postfix

A reload may not be enough. The main process can keep the old library in memory, so use a restart.

If you restart sshd, keep your current session open. Test a new login before you close it.

A reboot is the safest and recommended choice. If the server is busy, pick a time with low traffic. Kernel hotpatching can fix some kernel issues without a reboot. It cannot update the OpenSSL library already loaded in memory.

Step 6: Verify the Patch and HTTPS

Finally, check that the patch worked and your site still loads over HTTPS. 

Run these commands to check that no service needs a restart and that the new OpenSSL version is installed:

Bash
sudo needrestart -r ldpkg-query -W -f='${Package} ${Version}\n' openssl libssl3t64

Then, run an HTTPS smoke test from another machine with your domain:

Bash
curl -sSI https://example.com | head -n 5echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null | grep -E "Protocol|Cipher|Verify return code"

Here is an example output:

HTTP/2 200server: nginxNew, TLSv1.3, Cipher is TLS_AES_256_GCM_SHA384Verify return code: 0 (ok)

Look for these results: HTTP 200 (or your normal redirect), TLS 1.3 or 1.2, and Verify return code: 0 (ok). Also, check your app logs for TLS errors.

Check OpenSSL Vulnerability on Ubuntu: Quick Checklist

Use this short checklist each time Ubuntu publishes a new OpenSSL notice:

  • Match your release to the Ubuntu notice.
  • Compare the full package version, not openssl version.
  • Update only the OpenSSL packages.
  • Restart the listed services, or reboot.
  • Test HTTPS from outside.
  • Save the before and after package output as proof.

Tips: If you cannot test the fix or finish it safely, check which PerLod managed server support covers. Patching and incident fixes are not included by default.

Conclusion

For a safe OpenSSL fix, you must match your Ubuntu release, update the package, restart the services that use the old library, and test HTTPS from outside. Trust the full Ubuntu package version, not the number from openssl version.