Meltdown and Spectre : Patching Linux
Here’s a quick guide on how to patch some of the many Linux distros against the Meltdown and Spectre vulnerabilities! After spending the week monitoring each distribution, and deciding the best time to patch (after waiting for results).
Don’t forget to reboot your machine/server after applying the updates!
CentOS 7
x86_64
$ sudo yum clean all && yum install kernel-3.10.0-693.11.6.el7.x86_64 $ sudo reboot
Patched Kernel : kernel-3.10.0-693.11.6.el7.x86_64
Source: https://lists.centos.org/pipermail/centos-announce/2018-January/022696.html
CentOS 6
x86_64
$ sudo yum clean all && yum install kernel-2.6.32-696.18.7.el6.x86_64 $ sudo reboot
Patched Kernel : kernel-2.6.32-696.18.7.el6.x86_64
i386
$ sudo yum clean all && yum install kernel-2.6.32-696.18.7.el6.i686 $ sudo reboot
Patched Kernel : kernel-2.6.32-696.18.7.el6.i686
Source: https://lists.centos.org/pipermail/centos-announce/2018-January/022701.html
Ubuntu
x86_64
$ sudo apt-get update $ sudo apt-get dist-upgrade $ sudo reboot
Patched 16.04 LTS Kernel : linux-image-4.4.0-108-generic
Source: https://usn.ubuntu.com/usn/usn-3522-1/
Debian
x86_64
$ sudo apt-get update $ sudo apt-get dist-upgrade $ sudo reboot
Patched Kernel : linux-image-4.9.0-5-amd64
Source: https://packages.debian.org/stretch/kernel/linux-image-4.9.0-5-amd64
CloudLinux 7
x86_64
$ yum clean all –enablerepo=cloudlinux-updates-testing && yum update linux-firmware microcode_ctl && yum install kernel-3.10.0-714.10.2.lve1.5.8.el7 –enablerepo=cloudlinux-updates-testing $ reboot
Patched Kernel : kernel-3.10.0-714.10.2.lve1.5.8.el7
Source: https://www.cloudlinux.com/cloudlinux-os-blog/entry/intel-cpu-bug-kernelcare-and-cloudlinux
CloudLinux 6
x86_64
$ yum clean all –enablerepo=cloudlinux-updates-testing && yum install kernel-2.6.32-896.16.1.lve1.4.50.el6 –enablerepo=cloudlinux-updates-testing $ reboot
Patched Kernel : kernel-2.6.32-896.16.1.lve1.4.50.el6
Source: https://www.cloudlinux.com/cloudlinux-os-blog/entry/cloudlinux-6-kernel-updated-1-5
OpenVZ
x86_64
$ yum install vzkernel-2.6.32-042stab127.2.x86_64 $ reboot
Patched Kernel : vzkernel-2.6.32-042stab127.2.x86_64.rpm
Source: https://openvz.org/Download/kernel/rhel6/042stab127.2
Warning
At the time of posting, the kernel versions were the latest. If a new kernel is available, use the latest version.
If in doubt:
(centos, rhel, fedora, oracle, scientific linux)
$ yum update all
or (debian/ubuntu)
$ apt-get update && apt-get dist-upgrade
I’ll be adding more as I find stable releases.