Category: Patching and MaintenanceUpdated 2026-10-18

Livepatch

Livepatch (short for live kernel patching) is the Linux kernel's facility for replacing vulnerable functions in a running kernel, and the vendor tooling built on it: Canonical Livepatch Service on Ubuntu and kpatch on RHEL-family systems. It closes selected kernel vulnerabilities without a reboot, but it does not replace package updates or scheduled reboots.

What Livepatch is and how its three pieces fit

The word "livepatch" covers three related things. The first is the upstream facility in the Linux kernel. The kernel documentation describes it as redirecting calls from a vulnerable function to a fixed one, built on ftrace, with each task switched over only when that is safe. The second is Canonical Livepatch Service, delivered through Ubuntu Pro. Canonical says it targets critical and high severity kernel vulnerabilities that can be patched safely in memory. The third is kpatch, which Red Hat's documentation calls the only live patching utility it supports for its RPM modules, shipped as kpatch-patch packages.

All three share one boundary: they change selected kernel functions and nothing else. Canonical notes that userspace libraries such as OpenSSL or glibc are not covered, so they still arrive through unattended-upgrades or a normal package update. The idea behind all of it is explained on the kernel live patching page; this page is about the tools.

How to enable Livepatch and check its status

On Ubuntu, Canonical's Pro client guide says Livepatch is enabled by default after you attach Ubuntu Pro, and that enabling it by hand installs the canonical-livepatch snap. On RHEL-family systems, Red Hat's guide installs the kpatch-dnf plugin, subscribes all installed kernels to live patches, and installs the patch for the running kernel.

# Ubuntu (the token comes from the Ubuntu Pro dashboard)
sudo pro attach TOKEN
sudo pro enable livepatch
pro status
sudo canonical-livepatch status --verbose

# RHEL family
sudo dnf install kpatch-dnf
sudo dnf kpatch auto
sudo dnf install "kpatch-patch = $(uname -r)"
kpatch list

In the Canonical output, the kernel state line says whether your kernel series is covered, and the patch state line says whether patches are applied or none exist yet. Problems are logged by the snap service: journalctl -f -u snap.canonical-livepatch.canonical-livepatchd.

Limits and gotchas

Where Livepatch fits in hardening

Treat Livepatch as a stopgap inside patch management, not a way out of it. Canonical states that it is not a replacement for rebooting and recommends scheduled reboots to clear accumulated state. A sound order is: automate package updates, let Livepatch cover the gap for high and critical kernel fixes, then install the new kernel and reboot in your patch window. After a reboot, confirm the running kernel matches the installed one.

Use exploitation data to decide how fast to move. A kernel flaw that is already being used against servers is an n-day exploit in practice, and the CISA KEV guide explains how to rank such fixes. Alert when canonical-livepatch status reports an error state, as covered in the monitoring guide. The full routine, including verification, is in the server patch management guide, and the baseline checks are in the VPS security checklist.

Related terms: Kernel live patching, Patch management, unattended-upgrades, Patch window, N-day exploit.

Frequently asked questions

What is Livepatch?

Livepatch is a way to fix selected vulnerabilities in a running Linux kernel without rebooting. The name covers the upstream kernel facility, Canonical Livepatch Service on Ubuntu and kpatch on RHEL-family systems.

What is the difference between Canonical Livepatch and kpatch?

Canonical Livepatch is delivered through Ubuntu Pro and managed with the pro and canonical-livepatch commands. kpatch is Red Hat's supported tool, installed through kpatch-dnf and kpatch-patch packages and inspected with kpatch list.

Is Canonical Livepatch free?

Canonical says Livepatch requires Ubuntu Pro and that the free tier covers up to 5 machines for personal use or evaluation. Check Canonical's terms before relying on it for a business server.

How do I check that Livepatch is working?

On Ubuntu run pro status and sudo canonical-livepatch status, and read the kernel state and patch state lines. On RHEL-family systems run kpatch list to see loaded and installed patch modules.

Does Livepatch mean I never have to reboot or update packages?

No. Canonical says it is not a replacement for rebooting, and it does not patch userspace libraries such as OpenSSL or glibc. Keep installing normal updates and reboot in a scheduled patch window.

Want to see where your own server stands?

Run the free, read-only server check, or open the Security Lab and watch the detect, contain, recover, verify loop in action.

Get your free server checkOpen the Security Lab