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 agent sends the release from /etc/os-release (for example debian 11 or ubuntu 20.04). The service
compares it with the end-of-life dates that Trivy ships for each distribution and release. This check runs on
the service, so a release that reaches its end date shows up the next day without a change on the server.
Why it matters
After the end date, the distribution stops publishing security updates for the release. New vulnerabilities
in the kernel, OpenSSL, OpenSSH or any other package stay open, and apt upgrade, dnf upgrade or
apk upgrade report that everything is current.
How to fix it
Confirm the release first:
cat /etc/os-release
Then pick one of two ways. The end-of-life guide has the dates per release.
- New server. Install a supported release on a new server, move the service and its data, and switch over. The old server stays as a fallback until the new one runs.
- Upgrade in place, after a backup or snapshot:
Debian
Upgrade one release at a time (11 to 12, then 12 to 13) and follow the upgrade chapter of 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
Between LTS releases, do-release-upgrade offers the next LTS once its first point release is out.
RHEL, Rocky Linux and AlmaLinux
RHEL uses Leapp (leapp preupgrade, then leapp upgrade) for one major release at a time. For Rocky Linux and
AlmaLinux, the ELevate project of AlmaLinux provides Leapp with the 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
- Ubuntu with Ubuntu Pro. An LTS release with Expanded Security Maintenance (
esm-infra) gets security updates for five more years. Trivy keeps a separate, later date for these releases and uses it when it seesesm-infraenabled. Check withpro status. - 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 is left out of the digest and the counts until it changes; then it shows again.
Sources
- Trivy v0.75.0: Debian end-of-life dates and Ubuntu dates with ESM
- Trivy: Ubuntu ESM detection — 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 —
do-release-upgrade, LTS upgrades after the first point release - AlmaLinux ELevate