A vulnerability scan comes back with a red line: the OpenSSL on your server is an old upstream version, and the report lists a CVE fixed upstream in a newer release. You run openssl version, see the same old number, and start planning an upgrade. Then the distro says the package is already patched. Both can be true at once, and the way to settle it is to read the package changelog, not the version string.
This question comes up often at the support desk. A customer's compliance scan flags a server running a fully updated RHEL-family system or Ubuntu LTS, and the customer wants to know why the patch did not work. To answer properly, it helps to know where each version number comes from and what a scanner actually looked at.
Where the version string actually comes from
When you run openssl version, the command does not ask the package manager anything. It prints a text constant that was compiled into libcrypto when the library was built. Upstream OpenSSL sets that constant from its own source tree, and it only changes when upstream cuts a new release.
Enterprise and LTS distributions work differently from upstream. RHEL, Debian, and Ubuntu pick one upstream OpenSSL release at the start of a release cycle and keep it for the life of that release. When a security fix appears upstream, the distro maintainers take the specific patch, apply it to their older source tree, rebuild, and ship it. This is called backporting. The library's code changes, but the compiled-in version text stays the same, because the maintainers did not move to the new upstream release. They moved the fix into the old one.
What does change is the package version, and each packaging system has a separate field for it:
- RPM packages use name-version-release. The version part tracks upstream, and the release part (the bit after the last hyphen) increments each time the distro rebuilds with new patches.
- Debian packages use upstream_version-debian_revision. Ubuntu appends its own suffix to that revision, such as
ubuntufollowed by a counter, and security updates bump that suffix.
So the upstream number tells you the base the distro started from. The release or revision field tells you how many patches have landed on top of it. A scanner that reads only the first part cannot see the second.
How scanners reach the wrong conclusion
Scanners collect version information in roughly two ways, and the failure mode depends on which one you are looking at.
Unauthenticated scanners probe the server from outside. They look at whatever a service exposes, for example an HTTP Server header that includes OpenSSL/ followed by a version, if the web server is configured to send that much detail. That banner is built from the same compiled-in constant, so it shows the upstream base version. The scanner then compares it to the upstream advisory, sees an older number, and flags the CVE. It has no access to the package database, so it cannot know about backports.
Authenticated scanners log in and query the package database. When they use the distro's own vulnerability data (vendor advisories or OVAL feeds), they compare the full package version including the release field, and they usually get the right answer. When they fall back to comparing only the upstream part against upstream advisories, they produce the same false positive as the banner check.
This is the same pattern that shows up with kernels and PHP builds. If you have already read why uname -r is not enough to prove a kernel fix or why a patched PHP package can still report the old version, the OpenSSL case works the same way.
Checking the changelog for a specific CVE
The package changelog is where maintainers record what each rebuild changed. Security entries usually name the CVE ID, which makes this a search problem. Start by getting the exact CVE ID from the scan report, then search for it in the installed package's changelog.
On RHEL, AlmaLinux, Rocky, and other RPM-based systems, the changelog is stored in the RPM database alongside the installed package. The shared libraries live in openssl-libs, and that package carries the same changelog as openssl because both come from one source package. Replace the placeholder with the real CVE ID:
# Show the full installed package versions (version and release)
rpm -q openssl openssl-libs
# Search the installed package's changelog for the CVE ID
rpm -q --changelog openssl-libs | grep -i 'CVE-YYYY-NNNNN'
If grep prints a line, that rebuild includes the fix the maintainers associated with that CVE. If it prints nothing, the CVE is not mentioned. That alone does not prove you are vulnerable, for reasons covered in the next section.
On Debian and Ubuntu, the library package name depends on the release. You may see libssl1.1, libssl3, or libssl3t64. Check the name first, then search either the online changelog or the copy installed on disk:
# Find the installed OpenSSL packages and their full versions
dpkg -l | grep -E 'openssl|libssl'
# Fetch the changelog for the installed version (needs network access)
apt changelog openssl | grep -i 'CVE-YYYY-NNNNN'
# Or search the local copy, if /usr/share/doc was not stripped
zgrep -i 'CVE-YYYY-NNNNN' /usr/share/doc/libssl3/changelog.Debian.gz
The local file reflects the package that is actually installed, which is what you want. apt changelog fetches from the distribution's servers, so it can fail on offline hosts or on systems that use a private mirror. Minimal and container images often delete /usr/share/doc, in which case the online version is the only option.
Why the vendor tracker has the final word
A changelog match is good evidence, but it is not complete coverage. Some CVEs never appear in a distro changelog because they do not apply to that build. The vulnerable code might be in a feature the distro compiles out, or in a version branch the distro never shipped. In those cases there is nothing to patch, and the vendor marks the CVE as not affected instead of writing a changelog entry.
The opposite also happens. A fix can be listed under a different upstream reference, or the maintainers may decide a low-severity issue will not be fixed in an older release at all. A missing grep hit cannot tell these cases apart.
That is why the second step is to look up the CVE in the vendor's own security tracker: the Red Hat CVE pages for RHEL-family systems, the Debian security tracker, or the Ubuntu CVE tracker. Each one lists the CVE's status per release (fixed, not affected, needed, deferred, will not fix) and, when it is fixed, the exact package version that contains the fix. Compare that version to what rpm -q or dpkg -l showed. If your installed release or revision is equal to or newer than the fixed version, the fix is on disk. Rebuilt distributions such as AlmaLinux and Rocky publish their own errata, so check theirs as well as Red Hat's.
For the scan report, a short note usually satisfies an auditor: the CVE ID, the vendor tracker status, the fixed package version, the installed package version, and the matching changelog line if there is one. Many scanners also let you mark a finding as a backport false positive once you have that evidence.
Patched on disk is not the same as patched in memory
There is one more gap, and it catches people even after the changelog checks out. Installing a new package replaces the library file on disk. It does not change what is already running.
When a process starts, the dynamic linker opens libssl.so and libcrypto.so and maps them into the process's memory. The package manager installs the update by writing the new file and renaming it over the old path. The rename gives the path a new file (a new inode), but any process that mapped the old file keeps it. The kernel will not free the old file's contents while something still maps them. Nginx, Apache, Postfix, sshd, PHP-FPM, and long-running application servers will keep running the unpatched code until they restart. The HollowByte write-up makes the same point: services that loaded OpenSSL before the update keep using the old in-memory copy until you restart them or reboot, and the FreeBSD errata notice gives the same restart-or-reboot instruction.
You can see this directly in /proc. Each process's memory map lists the files it has mapped, and a file that was replaced on disk shows the (deleted) marker:
# List processes still mapping a replaced libssl or libcrypto (read-only)
sudo grep -lE '(libssl|libcrypto).*\(deleted\)' /proc/[0-9]*/maps 2>/dev/null
# RHEL family: list services that need a restart
sudo needs-restarting -s
# Debian/Ubuntu: list affected services without restarting anything
sudo needrestart -r l
Each path printed by the first command contains a process ID. Use ps -p <PID> -o pid,comm to see which service it belongs to. needs-restarting and needrestart may need to be installed first, and their flags have changed across versions, so check --help on your system. Restarting services drops active connections, so plan it in a maintenance window for anything customer-facing.
A restart only covers programs that use the system library. Software that bundles its own OpenSSL, such as some vendor binaries, statically linked tools, and container images, gets no benefit from the host's package update. You need to track those separately.
When a scanner flags OpenSSL, treat the version string as a hint about the base release. To decide whether the server is affected, get the exact CVE ID, compare the full installed package version against the fixed version in the vendor tracker, and use the changelog grep as supporting evidence. Then confirm that no running process still maps the old library. If all three checks pass, the finding is a backport false positive and you have the evidence to document it. If any of them fails, you have a real fix or restart to schedule.