The operating system is past its end of life
- Check
host.os_eol- Severity
- high
- Runs
- on our side, with the data of the report
- Looks at
- OS release against end-of-life dates (Trivy data)
What the check looks at
The release in /etc/os-release (for example debian 11 or ubuntu 20.04), which the agent sends, against
the end-of-life dates that Trivy ships for each distribution and release. The check runs on our side, so a
release that reaches its end date fails the next day without a change on the server.
Risk
After the end date, new vulnerabilities in the kernel, OpenSSL, OpenSSH or any other package stay open, while
apt upgrade, dnf upgrade or apk upgrade report that everything is current.
How to fix it
Confirm the release first:
cat /etc/os-release
The end-of-life guide has the dates per release. Either install a supported release on a new server, move the service and its data, and keep the old server as a fallback until the new one runs, or upgrade in place after a backup or a snapshot:
Debian
Upgrade one release at a time (11 to 12, then 12 to 13) and follow the upgrade chapter in the release notes of
the target release. In short: bring the current release up to date, change the codename in the APT sources, then
run sudo apt update, sudo apt upgrade --without-new-pkgs and sudo apt full-upgrade.
Ubuntu
sudo apt update && sudo apt full-upgrade
sudo do-release-upgrade
From one LTS release, do-release-upgrade offers the next LTS once its first point release is out.
RHEL, Rocky Linux and AlmaLinux
RHEL upgrades one major release at a time with Leapp (leapp preupgrade, then leapp upgrade). For Rocky Linux
and AlmaLinux, the ELevate project of AlmaLinux adds the Leapp data these distributions need.
Alpine
Change the branch in /etc/apk/repositories (for example v3.21 to v3.24), then:
sudo apk update
sudo apk upgrade --available
Reboot after a kernel upgrade.
How to check the fix
cat /etc/os-release shows the new release. The next report of the agent clears the check.
When a warning is fine
An Ubuntu LTS release with Ubuntu Pro and Expanded Security Maintenance (esm-infra) gets security updates for
five more years. Trivy has a later end date for these releases and uses it when it sees esm-infra enabled.
pro status shows whether it is.
Paid extended support for RHEL (ELS) or Debian (Freexian ELTS) brings updates from other repositories. The check does not know about such contracts: accept the result on the dashboard while the contract runs, with its end date in the note.
An accepted result stays out of the digest and the counts until it changes.
Sources
- Trivy v0.75.0: Debian end-of-life dates and Ubuntu dates with ESM
- Trivy: Ubuntu ESM detection.
Trivy reads
esm-infrafrom/var/lib/ubuntu-advantage/status.json. - Debian 13 release notes: upgrading from Debian 12
- Ubuntu release cycle (standard support and ESM)
- Ubuntu Server: upgrade your release (LTS upgrades after the first point release)
- AlmaLinux ELevate