1 SPECTRE - MELTDOWN Checks - Haswell
2 -----------------------------------
4 Following section displays the output of a running shell script to tell if
5 system is vulnerable against the several "speculative execution" CVEs that were
6 made public in 2018. Script is available on `Spectre & Meltdown Checker Github
7 <https://github.com/speed47/spectre-meltdown-checker>`_.
9 - CVE-2017-5753 [bounds check bypass] aka 'Spectre Variant 1'
10 - CVE-2017-5715 [branch target injection] aka 'Spectre Variant 2'
11 - CVE-2017-5754 [rogue data cache load] aka 'Meltdown' aka 'Variant 3'
12 - CVE-2018-3640 [rogue system register read] aka 'Variant 3a'
13 - CVE-2018-3639 [speculative store bypass] aka 'Variant 4'
14 - CVE-2018-3615 [L1 terminal fault] aka 'Foreshadow (SGX)'
15 - CVE-2018-3620 [L1 terminal fault] aka 'Foreshadow-NG (OS)'
16 - CVE-2018-3646 [L1 terminal fault] aka 'Foreshadow-NG (VMM)'
19 $ sudo ./spectre-meltdown-checker.sh --no-color
21 Spectre and Meltdown mitigation detection tool v0.40
23 Checking for vulnerabilities on current system
24 Kernel is Linux 4.15.0-36-generic #39-Ubuntu SMP Mon Sep 24 16:19:09 UTC 2018 x86_64
25 CPU is Intel(R) Xeon(R) CPU E5-2699 v3 @ 2.30GHz
28 * Hardware support (CPU microcode) for mitigation techniques
29 * Indirect Branch Restricted Speculation (IBRS)
30 * SPEC_CTRL MSR is available: YES
31 * CPU indicates IBRS capability: YES (SPEC_CTRL feature bit)
32 * Indirect Branch Prediction Barrier (IBPB)
33 * PRED_CMD MSR is available: YES
34 * CPU indicates IBPB capability: YES (SPEC_CTRL feature bit)
35 * Single Thread Indirect Branch Predictors (STIBP)
36 * SPEC_CTRL MSR is available: YES
37 * CPU indicates STIBP capability: YES (Intel STIBP feature bit)
38 * Speculative Store Bypass Disable (SSBD)
39 * CPU indicates SSBD capability: YES (Intel SSBD)
40 * L1 data cache invalidation
41 * FLUSH_CMD MSR is available: YES
42 * CPU indicates L1D flush capability: YES (L1D flush feature bit)
43 * Enhanced IBRS (IBRS_ALL)
44 * CPU indicates ARCH_CAPABILITIES MSR availability: NO
45 * ARCH_CAPABILITIES MSR advertises IBRS_ALL capability: NO
46 * CPU explicitly indicates not being vulnerable to Meltdown (RDCL_NO): NO
47 * CPU explicitly indicates not being vulnerable to Variant 4 (SSB_NO): NO
48 * CPU/Hypervisor indicates L1D flushing is not necessary on this system: NO
49 * Hypervisor indicates host CPU might be vulnerable to RSB underflow (RSBA): NO
50 * CPU supports Software Guard Extensions (SGX): NO
51 * CPU microcode is known to cause stability problems: NO (model 0x3f family 0x6 stepping 0x2 ucode 0x3d cpuid 0x306f2)
52 * CPU microcode is the latest known available version: YES (latest version is 0x3d dated 2018/04/20 according to builtin MCExtractor DB v84 - 2018/09/27)
53 * CPU vulnerability to the speculative execution attack variants
54 * Vulnerable to CVE-2017-5753 (Spectre Variant 1, bounds check bypass): YES
55 * Vulnerable to CVE-2017-5715 (Spectre Variant 2, branch target injection): YES
56 * Vulnerable to CVE-2017-5754 (Variant 3, Meltdown, rogue data cache load): YES
57 * Vulnerable to CVE-2018-3640 (Variant 3a, rogue system register read): YES
58 * Vulnerable to CVE-2018-3639 (Variant 4, speculative store bypass): YES
59 * Vulnerable to CVE-2018-3615 (Foreshadow (SGX), L1 terminal fault): NO
60 * Vulnerable to CVE-2018-3620 (Foreshadow-NG (OS), L1 terminal fault): YES
61 * Vulnerable to CVE-2018-3646 (Foreshadow-NG (VMM), L1 terminal fault): YES
63 CVE-2017-5753 aka 'Spectre Variant 1, bounds check bypass'
64 * Mitigated according to the /sys interface: YES (Mitigation: __user pointer sanitization)
65 * Kernel has array_index_mask_nospec: YES (1 occurrence(s) found of x86 64 bits array_index_mask_nospec())
66 * Kernel has the Red Hat/Ubuntu patch: NO
67 * Kernel has mask_nospec64 (arm64): NO
68 > STATUS: NOT VULNERABLE (Mitigation: __user pointer sanitization)
70 CVE-2017-5715 aka 'Spectre Variant 2, branch target injection'
71 * Mitigated according to the /sys interface: YES (Mitigation: Full generic retpoline, IBPB, IBRS_FW)
73 * Kernel is compiled with IBRS support: YES
74 * IBRS enabled and active: YES (for kernel and firmware code)
75 * Kernel is compiled with IBPB support: YES
76 * IBPB enabled and active: YES
78 * Kernel has branch predictor hardening (arm): NO
79 * Kernel compiled with retpoline option: YES
80 * Kernel compiled with a retpoline-aware compiler: YES (kernel reports full retpoline compilation)
81 > STATUS: NOT VULNERABLE (Full retpoline + IBPB are mitigating the vulnerability)
83 CVE-2017-5754 aka 'Variant 3, Meltdown, rogue data cache load'
84 * Mitigated according to the /sys interface: YES (Mitigation: PTI)
85 * Kernel supports Page Table Isolation (PTI): YES
86 * PTI enabled and active: YES
87 * Reduced performance impact of PTI: YES (CPU supports INVPCID, performance impact of PTI will be greatly reduced)
88 * Running as a Xen PV DomU: NO
89 > STATUS: NOT VULNERABLE (Mitigation: PTI)
91 CVE-2018-3640 aka 'Variant 3a, rogue system register read'
92 * CPU microcode mitigates the vulnerability: YES
93 > STATUS: NOT VULNERABLE (your CPU microcode mitigates the vulnerability)
95 CVE-2018-3639 aka 'Variant 4, speculative store bypass'
96 * Mitigated according to the /sys interface: YES (Mitigation: Speculative Store Bypass disabled via prctl and seccomp)
97 * Kernel supports speculation store bypass: YES (found in /proc/self/status)
98 > STATUS: NOT VULNERABLE (Mitigation: Speculative Store Bypass disabled via prctl and seccomp)
100 CVE-2018-3615 aka 'Foreshadow (SGX), L1 terminal fault'
101 * CPU microcode mitigates the vulnerability: N/A
102 > STATUS: NOT VULNERABLE (your CPU vendor reported your CPU model as not vulnerable)
104 CVE-2018-3620 aka 'Foreshadow-NG (OS), L1 terminal fault'
105 * Mitigated according to the /sys interface: YES (Mitigation: PTE Inversion)
106 * Kernel supports PTE inversion: YES (found in kernel image)
107 * PTE inversion enabled and active: YES
108 > STATUS: NOT VULNERABLE (Mitigation: PTE Inversion)
110 CVE-2018-3646 aka 'Foreshadow-NG (VMM), L1 terminal fault'
111 * Information from the /sys interface: VMX: conditional cache flushes, SMT disabled
112 * This system is a host running an hypervisor: NO
114 * EPT is disabled: NO
116 * L1D flush is supported by kernel: YES (found flush_l1d in /proc/cpuinfo)
117 * L1D flush enabled: YES (conditional flushes)
118 * Hardware-backed L1D flush supported: YES (performance impact of the mitigation will be greatly reduced)
119 * Hyper-Threading (SMT) is enabled: NO
120 > STATUS: NOT VULNERABLE (this system is not running an hypervisor)
122 > SUMMARY: CVE-2017-5753:OK CVE-2017-5715:OK CVE-2017-5754:OK CVE-2018-3640:OK CVE-2018-3639:OK CVE-2018-3615:OK CVE-2018-3620:OK CVE-2018-3646:OK
124 Need more detailed information about mitigation options? Use --explain
125 A false sense of security is worse than no security at all, see --disclaimer