How to patch Meltdown and Spectre vulnerabilities on FreeBSD

Originally published at: https://www.cyberciti.biz/faq/how-to-patch-meltdown-and-spectre-vulnerabilities-on-freebsd/

All supported versions of FreeBSD affected by Meltdown (CVE-2017-5754), Spectre variant 1 (CVE-2017-5753), and Spectre variant 2 (CVE-2017-5715). How do I patch Meltdown and Spectre vulnerabilities on FreeBSD (speculative execution vulnerabilities) server powered by 64 bit Intel CPU?