All ArticlesSecurity2026-11-11T16:25:51+08:00

Thinking uname -r Proves You're Patched Against a Kernel LPE? Check the Changelog

After a kernel privilege escalation CVE drops, many admins check uname -r and assume the latest version means they are safe, missing that distro backport patches don't change the version string. The reader will learn to use dpkg or rpm changelogs and /proc/version_signature to confirm whether a specific CVE fix is actually compiled into the running kernel.

A kernel privilege escalation CVE drops. You SSH into the server, run uname -r, see a version string that looks current, and move on. Patched. Done. Except it probably isn't done, because on every major Linux distribution, the version string reported by uname -r almost never changes when a security backport is applied. That mental shortcut — "latest-looking kernel version equals patched" — is one of the most common false assurances in server administration.

Why uname -r Lies to You (By Design)

Distribution vendors like Canonical, Red Hat, SUSE, and Debian do not track upstream kernel releases the way you might expect. They pick a kernel version early in a release cycle — say, 5.15.0 for an Ubuntu LTS or 5.14.0 for a RHEL 9 series — and then they backport individual fixes from newer upstream kernels into that frozen base. The ABI (Application Binary Interface) stays stable so third-party modules and drivers keep working.

When a backported security patch lands, the package version increments (the part after the dash, like 5.15.0-100 becoming 5.15.0-101), but uname -r still says 5.15.0-101-generic or similar. It does not jump to 6.x just because the fix originated from a 6.x upstream commit. If you only glance at the major version and think "this is 5.15, the CVE advisory says it's fixed in 5.16, so I'm vulnerable," you might be wrong — the fix could already be backported into your 5.15.0-101 build. And the reverse is equally dangerous: if you see 5.15.0-100 and assume it includes everything up to that point, you might be missing a patch that only landed in -101.

The version string from uname -r tells you which kernel build is running. It does not tell you which CVE fixes are compiled into that build. Those are two different questions.

The Right Way: Read the Package Changelog

Every distribution's package manager records exactly which patches went into each kernel package version. That changelog is the authoritative source.

Debian and Ubuntu (dpkg)

Find the running kernel's package name, then query its changelog for the CVE identifier you care about:

# Show changelog entries mentioning a specific CVE
dpkg-query -W -f '${Package}\
' 'linux-image-*' | head -5
apt changelog linux-image-$(uname -r) 2>/dev/null | grep -i 'CVE-2024'

The apt changelog command pulls the changelog from the repository. Pipe it through grep with the CVE ID you need to verify. If the CVE appears in an entry whose version is less than or equal to the installed package version, the fix is in your installed package. If the entry version is higher than what you have installed, you still need to update.

You can also check the installed package version directly:

dpkg -l linux-image-$(uname -r) | tail -1

Compare that version against the distribution's security advisory for the specific CVE.

RHEL, CentOS, AlmaLinux, Rocky (rpm)

RPM-based distributions store changelogs inside the package metadata:

rpm -q --changelog kernel-$(uname -r) | grep -i 'CVE-2024'

This prints every changelog entry for the running kernel package that mentions your target CVE. Red Hat also publishes errata pages per CVE that list the exact package version containing the fix — cross-reference the output of rpm -q kernel against that errata.

/proc/version_signature: A Ubuntu-Specific Shortcut

On Ubuntu systems, the file /proc/version_signature contains the upstream kernel version that the running kernel is based on, plus the Ubuntu-specific build number. This can help you quickly determine the exact build without parsing package metadata. On other distributions, this file typically does not exist, so do not rely on it as a universal check.

The standard /proc/version file (no _signature suffix) exists on all Linux systems and includes the GCC version used to compile the kernel and the build timestamp. The timestamp alone can hint at whether a recent rebuild happened, but it is not proof of any specific CVE fix.

The Reboot Gap

Even after installing a patched kernel package, uname -r reports the running kernel, not the installed one. If you updated the package but have not rebooted (or if you are using a VPS where reboots require coordination), the old, vulnerable kernel is still loaded in memory.

Check whether a reboot is pending:

  • Debian/Ubuntu: if the file /var/run/reboot-required exists, a reboot is needed. You can also compare uname -r against the newest installed kernel package.
  • RHEL-family: compare uname -r against rpm -q kernel --last | head -1. If they differ, the newer kernel is installed but not running.

Kernel live patching (Canonical Livepatch, Red Hat kpatch, SUSE kGraft) can apply certain fixes without a reboot. Whether a live patch changes uname output depends on the implementation and the specific patch. On SUSE, for instance, community discussions note that verifying a running live patch requires checking the live patching tooling itself, not uname. The general rule: if you use live patching, check the live patch status tool (canonical-livepatch status, kpatch list, etc.) rather than uname.

What This Means for Hosting and Support

In hosting support, kernel patch verification comes up constantly — during compliance audits, after a public CVE disclosure, or when a customer asks "am I safe?" The instinct to run uname -r and give a quick answer is understandable but insufficient. The correct workflow is:

  1. Identify the CVE and find the distribution's security advisory listing the fixed package version.
  2. Check the installed kernel package version (dpkg -l or rpm -q).
  3. Check the changelog for explicit mention of the CVE.
  4. Confirm the patched kernel is actually running (not just installed), or confirm live patching status.

This same backport-versus-version-string confusion applies beyond kernels. PHP packages on certain distributions, OpenSSL builds, and other core libraries all follow the same pattern — the upstream version number stays frozen while security fixes get backported. If you have dealt with verifying whether a PHP CVE fix landed in a backported package, the kernel situation is the same concept at a lower layer of the stack.

Similarly, the broader lesson — that running a patched version does not retroactively undo damage from before the patch — applies to application-level vulnerabilities just as much as kernel ones.

The Takeaway

Stop using uname -r as proof of kernel patching. It shows the running kernel's build identifier, nothing more. For CVE verification, read the package changelog, match it against the distribution's security advisory, and confirm the patched kernel is actually booted. Takes an extra minute. Beats finding out during an incident that the kernel you trusted was never actually fixed.