New kernel installed, no reboot
MediumL05Linux serversKernel 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 -rThe kernel running now.
Debian / Ubuntu
ls /boot/vmlinuz-*
cat /var/run/reboot-required 2>/dev/nullIf the last line prints anything, a reboot is needed.
RHEL / Rocky / Alma
rpm -q kernel
sudo dnf needs-restarting -rHow to fix
Linux
sudo rebootPick 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 -rIt should match the newest installed kernel.
Run the downloaded check again and make sure this item passes.