Keeping processor vulnerability fixes current

Since 2018 a steady stream of processor flaws has been fixed through microcode and kernel updates. Checking your status takes one command.

Which processor flaws should I care about?

All of them that your CPU model is affected by, which the kernel tells you directly. The family began with Spectre and Meltdown in 2018 and has since grown to include MDS, TAA, Retbleed, Downfall, Inception, Zenbleed and others. Each lets a program read data it should not see, through side effects of how modern processors predict and speculate. They are fixed by a mix of processor microcode updates and changes in the operating system kernel.

How do I see my current status?

Read the files under /sys/devices/system/cpu/vulnerabilities. Each line names a flaw and shows Not affected, Mitigation: ... or Vulnerable.

grep -r . /sys/devices/system/cpu/vulnerabilities/ | sed 's#.*/##'
# example lines:
# spectre_v2:Mitigation: Enhanced / Automatic IBRS; IBPB: conditional; ...
# gather_data_sampling:Not affected
# spec_rstack_overflow:Mitigation: Safe RET

Any Vulnerable line deserves attention. A note such as no microcode means the kernel has a fix ready but the processor lacks the updated microcode it relies on.

How do I update the microcode?

Install the microcode package for your processor and keep it updated with the rest of the system. The kernel loads it early at every boot, so a reboot is needed after an update.

SystemAMD processorsIntel processors
Debianamd64-microcode (non-free-firmware)intel-microcode (non-free-firmware)
Ubuntuamd64-microcodeintel-microcode
AlmaLinux, Rocky Linux, Fedoralinux-firmware (AMD microcode files)microcode_ctl

On Debian, make sure non-free-firmware appears in the components of /etc/apt/sources.list.d/debian.sources, which the default installation includes. After a reboot, confirm which revision is loaded:

journalctl -k -b | grep -i microcode
grep -m1 microcode /proc/cpuinfo

Is the kernel side updated automatically?

Yes, through normal kernel updates. Every supported distribution ships mitigations in its kernels and enables them by default. Keep automatic security updates on and reboot regularly; a kernel that has been running for a year lacks every fix published since it booted. Use uname -r and compare it with the newest installed kernel to see whether a reboot is pending.

uname -r
ls -1 /boot/vmlinuz-* | tail -n 2
needs-restarting -r      # Enterprise Linux

Do mitigations slow the server down?

Some do, mostly for workloads with many system calls or context switches, and newer processors pay much less than older ones. Chips designed after the first disclosures, such as the AMD EPYC 9004 and 9005 generations and Intel Xeon 6 in our Enterprise line, fix many flaws in hardware, so the kernel uses cheaper methods. On older Zen 2 or Skylake-era parts, certain mitigations can cost a few percent to double digits on I/O-heavy work.

Can I turn mitigations off on a single-tenant server?

It is possible but rarely worth it. The kernel accepts mitigations=off on the boot line, and on a dedicated machine you are not sharing the processor with strangers, which removes one class of risk. However, your own server still runs code from many sources: web applications, plugins, containers, users with shell access and JavaScript in browsers on desktops. Any of them can try these attacks. Keep mitigations on unless you have measured a real cost on a closed, trusted workload such as an isolated build farm.

What about virtual machines on my server?

Guests depend on the host. If you run Proxmox VE or plain KVM, the host kernel and microcode must be current, and guests need a CPU model that passes the relevant flags, for example the host CPU type or a named model with mitigation flags enabled. Check the status file inside each guest too: a guest that reports Vulnerable while the host is patched usually has a CPU type that hides the needed features.

How do I keep track of new disclosures?

Follow your distribution's security announcements; each new processor flaw arrives there with the kernel and microcode versions that fix it. Debian, Ubuntu and the Enterprise Linux projects all publish mailing lists and feeds for this. When a notice lands, update, reboot, and read the status files again to confirm the new line says Mitigation or Not affected. For the general hardening routine that keeps these updates flowing, see Hardening a new dedicated server, and for what each processor generation fixes in silicon, AMD EPYC, Ryzen and Xeon generations.

Related pages

Hardening a new dedicated server

The first hour on a fresh machine: SSH keys, a firewall, automatic updates, brute force blocking and a habit of checking what listens.

Read more

AMD EPYC, Ryzen and Xeon generations

Which processor family sits in each of our machines, what each generation changed, and how to read a model name before you order.

Read more

First steps with a new server

The first hour after delivery: log in, check the hardware matches the order, update, add a user, lock down SSH and set a firewall.

Read more

Ubuntu Server

The default pick for most rentals: 24.04 or 22.04 LTS, recent kernels for new EPYC and Ryzen chips, five years of updates.

Read more

Questions and answers

How do I check whether my server is affected by Spectre?

Read /sys/devices/system/cpu/vulnerabilities. Each file names one flaw and shows Not affected, Mitigation or Vulnerable.

Do I need to reboot after a microcode update?

Yes. Microcode is loaded early during boot, so the new revision becomes active only after a restart.

Does the data centre update the processor microcode for me?

The operating system loads microcode at boot from its own package, so keeping the microcode package updated and rebooting is part of your system maintenance.

Is it safe to disable mitigations on a dedicated server?

Only for closed, trusted workloads after measuring a real cost. Web applications and shared shells can still use these flaws.

Are newer processors less affected?

Yes. Recent EPYC and Xeon generations fix many flaws in hardware, so the kernel needs fewer costly workarounds.