Vulnerabilities

Why your scanner says patched packages are vulnerable

Ubuntu backports security fixes into old version numbers, so version-only scanners raise false alarms. How backports work and how to tell what is really vulnerable.

You run a vulnerability scanner against an Ubuntu 22.04 server. It reports that OpenSSL 3.0.2 is affected by a long list of CVEs, many marked high. You check, and the server has every security update installed. The scanner isn't broken, exactly. It's answering the wrong question.

How Ubuntu patches software

Ubuntu LTS releases promise stability: the versions of core packages don't jump during a release's lifetime. Ubuntu 22.04 shipped with OpenSSL 3.0.2, and it still reports OpenSSL 3.0.2 today. But that package has received many security fixes since release.

Instead of upgrading to a newer upstream version (which could change behaviour), Ubuntu's security team takes the fix for each vulnerability and applies it to the version already shipped. This is called backporting. The upstream version stays the same; the Ubuntu package revision changes. You can see it in the full version string:

$ dpkg -s openssl | grep Version
Version: 3.0.2-0ubuntu1.15

Everything after the hyphen is Ubuntu's revision. Each bump usually means one or more security fixes were backported. The package changelog lists them by CVE number:

$ apt changelog openssl | head -40

Why version-only scanners get it wrong

Many scanners work by comparing the upstream version (3.0.2) with the version where upstream fixed a CVE (say, 3.0.8). Since 3.0.2 is lower than 3.0.8, the scanner flags the package as vulnerable, even though Ubuntu fixed that exact CVE in revision 0ubuntu1.9.

The result is a report full of findings that aren't real. Teams either waste hours proving each one is a false positive, or they learn to ignore the scanner, which is worse, because the real issues hide among the fake ones.

An accurate answer needs three pieces of information for every package:

  1. Where the package came from. A package built by Ubuntu must be judged against Ubuntu's security notices (USNs) and Canonical's CVE tracker, using the full package version. A package from a third-party repository, like Ondřej Surý's PHP builds or NodeSource's Node.js, follows upstream versions and must be compared with upstream releases instead.
  2. Whether a fix exists that you can install. Some fixes are published only for Ubuntu Pro subscribers through Expanded Security Maintenance. If you don't have Pro, those can't be installed with a normal upgrade, and mixing them into the main list makes it impossible to act on.
  3. How much it matters on Ubuntu. Canonical assigns its own priority to each CVE, which can differ from a generic score because of how Ubuntu builds and configures the package.

Checking a finding by hand

If your scanner flags something on Ubuntu, you can verify it:

  • Look up the CVE on Ubuntu's CVE tracker and find your release (for example, jammy for 22.04). It shows the fixed package version, or that the release isn't affected.
  • Compare that with dpkg -s <package>. If your full version is equal or higher, you're patched.
  • Check the source with apt-cache policy <package>. If the installed version comes from a PPA or vendor repository, Ubuntu's tracker doesn't apply; compare with the upstream project's advisories.

That works for one finding. It doesn't scale to hundreds of packages on dozens of servers.

How Uptavio handles it

Uptavio does this matching for every installed package on every server. Ubuntu's own builds are judged by Ubuntu's notices and Canonical's CVE priorities. Third-party builds from sources such as ondrej/php, NodeSource, nginx.org, MariaDB, PostgreSQL, Redis and MySQL are compared with upstream releases. Fixes that need Ubuntu Pro are listed separately, so the main list only contains what you can actually install.

Matching runs on Uptavio's side, not on your servers. Packages are rescanned within minutes of an upgrade, and the whole fleet is rescanned when new notices are published. When a fix is available, the finding comes with the exact upgrade command, and the To do list groups it across every affected server.

The takeaway

On Ubuntu and Debian, a package's upstream version number tells you very little about whether it's vulnerable. Judge Ubuntu packages by Ubuntu's notices and full version strings, judge third-party packages by upstream, and keep Pro-only fixes apart. Then the list you get back is short, real and fixable.


Uptavio checks this for you. Ubuntu-aware vulnerability scanning, outside-in exposure checks, patch and reboot tracking, and a To do list with the exact command for every fix. Free for 2 servers and 5 websites. Start free →

Know what to fix by lunchtime.

Two servers and five websites are free, forever. Every new organization also gets 14 days of Agency. No credit card, no inbound ports, and no keys handed over.