How to check Linux for Spectre and Meltdown vulnerability

spectre-meltdown-checker.sh is a simple shell script to find out if your Linux kernel (installation) is vulnerable against the 3 “speculative execution” CVEs. Use this script to check or see if you are still vulnerable to Meltdown and Spectre CPU bugs after applying kernel patches.

$ cd /tmp/
$ wget https://raw.githubusercontent.com/speed47/spectre-meltdown-checker/master/spectre-meltdown-checker.sh

oder

$ git clone https://github.com/speed47/spectre-meltdown-checker.git

sudo sh spectre-meltdown-checker.sh

Source:

https://www.cyberciti.biz/faq/check-linux-server-for-spectre-meltdown-vulnerability/