Tools
Log in
English

Learn to codeSecurity check

New kernel installed, no reboot

MediumL05Linux servers

Kernel security fixes apply only after a reboot.

What is the risk

Installing a kernel package does nothing until you reboot. The old kernel keeps running.

If a privilege escalation bug (for example CVE-2024-1086) is still live, one web shell can reach root.

How to check

Linux

uname -r

The kernel running now.

Debian / Ubuntu

ls /boot/vmlinuz-*
cat /var/run/reboot-required 2>/dev/null

If the last line prints anything, a reboot is needed.

RHEL / Rocky / Alma

rpm -q kernel
sudo dnf needs-restarting -r

How to fix

Linux

sudo reboot

Pick a quiet time. After the reboot make sure web and database services start on their own (e.g. systemctl is-enabled nginx).

If rebooting is hard, live patching from your distribution (Ubuntu Livepatch, RHEL kpatch) can apply some kernel fixes without a reboot.

How to prevent it

  • Set a regular reboot day, such as once a month.
  • With two or more servers, reboot them in turn for no downtime.

Check again after fixing

Linux

uname -r

It should match the newest installed kernel.

Run the downloaded check again and make sure this item passes.

Related CVEs

HighCVE-2024-10867.8

Security check home