Processor vulnerability
CVE-2018-3639
A load runs before an older store to the same address is resolved, reads the old value, and exposes it through the cache before the processor corrects itself.
- Name
- Speculative Store Bypass
- Also known as
- Spectre variant 4, Variant 4, SSB
- Kind
- Transient execution
- CVE published
- 2018-05-22 CVE record
- Advisories
- INTEL-SA-00115
- Linux reports it in
spec_store_bypass
Processors predict whether a load depends on an older store whose address is not yet computed, and if they guess that it does not, they run the load early. When the guess is wrong, the load reads the value from before the store, and the instructions after it run with that stale value until the processor notices and replays them. Code that overwrites a secret, or checks a pointer by storing over it, can so leak the old value, which matters most to sandboxes such as JavaScript engines.
Linux reports it on processors that it does not list as not affected and that do not report SSB_NO (bit 4 of IA32_ARCH_CAPABILITIES) or AMD’s equivalent CPUID bit.
Affected processors
42 of the 50 microarchitectures listed are affected in all or some of their models.
| Microarchitecture | Status | Detail | Source |
|---|---|---|---|
| NetBurst (Prescott, Nocona) | Affected | Linux 7.3 sets the bug on INTEL_P4_CEDARMILL, INTEL_P4_PRESCOTT, INTEL_P4_PRESCOTT_2M: cpu_vuln_whitelist does not list them with NO_SPECULATION or NO_SSB; and a processor released before 2018 does not report SSB_NO | Linux 7.3 |
| Core (Merom, Conroe) | Affected | Linux 7.3 sets the bug on INTEL_CORE2_MEROM, INTEL_CORE2_MEROM_L: cpu_vuln_whitelist does not list them with NO_SPECULATION or NO_SSB; and a processor released before 2018 does not report SSB_NO | Linux 7.3 |
| Penryn | Affected | Linux 7.3 sets the bug on INTEL_CORE2_DUNNINGTON, INTEL_CORE2_PENRYN: cpu_vuln_whitelist does not list them with NO_SPECULATION or NO_SSB; and a processor released before 2018 does not report SSB_NO | Linux 7.3 |
| Nehalem | Affected | Linux 7.3 sets the bug on INTEL_NEHALEM, INTEL_NEHALEM_EP, INTEL_NEHALEM_EX, INTEL_NEHALEM_G: cpu_vuln_whitelist does not list them with NO_SPECULATION or NO_SSB; and a processor released before 2018 does not report SSB_NO | Linux 7.3 |
| Westmere | Affected | Linux 7.3 sets the bug on INTEL_WESTMERE, INTEL_WESTMERE_EP, INTEL_WESTMERE_EX: cpu_vuln_whitelist does not list them with NO_SPECULATION or NO_SSB; and a processor released before 2018 does not report SSB_NO | Linux 7.3 |
| Sandy Bridge | Affected | Linux 7.3 sets the bug on INTEL_SANDYBRIDGE, INTEL_SANDYBRIDGE_X: cpu_vuln_whitelist does not list them with NO_SPECULATION or NO_SSB; and a processor released before 2018 does not report SSB_NO | Linux 7.3 |
| Ivy Bridge | Affected | Linux 7.3 sets the bug on INTEL_IVYBRIDGE, INTEL_IVYBRIDGE_X: cpu_vuln_whitelist does not list them with NO_SPECULATION or NO_SSB; and a processor released before 2018 does not report SSB_NO | Linux 7.3 |
| Haswell | Affected | 06_3FH stepping 2 (Haswell Server EP/EP4S): MCU+Software 06_3FH stepping 4 (Haswell Server EX): MCU+Software | Intel’s list |
| Broadwell | Affected | 06_4FH stepping 1 (1. Broadwell Server E/EP/EP4S - 2. Broadwell Server EX): MCU+Software 06_56H stepping 3 (Broadwell DE V2 - V3): MCU+Software 06_56H stepping 4 (Broadwell DE Y0): MCU+Software 06_56H stepping 5 (Hewitt Lake (Broadwell DE)): MCU+Software | Intel’s list |
| Skylake | Affected | 06_5EH stepping 3 (1. Skylake Xeon E3 - 2. Skylake H - 3. Skylake S): MCU+Software | Intel’s list |
| Kaby Lake | Affected | 06_8EH stepping 9 (1. Amber Lake-Y - 2. Kaby Lake U - 3. Kaby Lake U23e - 4. Kaby Lake Y): MCU+Software 06_8EH stepping C (1. Whiskey Lake V - 2. Comet Lake U42 - 3. Amber Lake Y): Hardware+Software 06_9EH stepping 9 (1. Kaby Lake S - 2. Kaby Lake Xeon E3): MCU+Software | Intel’s list |
| Coffee Lake | Affected | 06_8EH stepping A (1. Coffee Lake U43e - 2. Whiskey Lake): MCU+Software 06_8EH stepping B (Whiskey Lake U): MCU+Software 06_8EH stepping C (1. Whiskey Lake V - 2. Comet Lake U42 - 3. Amber Lake Y): Hardware+Software 06_9EH stepping A (Coffee Lake H): MCU+Software 06_9EH stepping C (Coffee Lake S): Hardware+Software 06_9EH stepping D (1. Coffee Lake H - 2. Coffee Lake Xeon E - 3. Coffee Lake S): Hardware+Software | Intel’s list |
| Comet Lake | Affected | 06_8EH stepping C (1. Whiskey Lake V - 2. Comet Lake U42 - 3. Amber Lake Y): Hardware+Software 06_A5H stepping 2 (Comet Lake H): Hardware+Software 06_A5H stepping 3 (Comet Lake-S): Hardware+Software 06_A5H stepping 5 (Comet Lake-S): Hardware+Software 06_A6H stepping 0 (Comet Lake U62): Hardware+Software 06_A6H stepping 1 (Comet Lake U62): Hardware+Software | Intel’s list |
| Ice Lake (client) | Affected | 06_7EH stepping 5 (Ice Lake U - Ice Lake Y): Hardware+Software | Intel’s list |
| Tiger Lake | Affected | 06_8CH stepping 1 (Tiger Lake U): Hardware+Software 06_8CH stepping 1 (Tiger Lake U): Hardware+Software 06_8CH stepping 2 (1. Tiger Lake U Refresh - 2. Tiger Lake H35): Hardware+Software 06_8DH stepping 1 (Tiger Lake H): Hardware+Software 06_8DH stepping 1 (Tiger Lake H): Hardware+Software | Intel’s list |
| Alder Lake | Affected | 06_97H stepping 2 (Alder Lake S (Golden Cove - Gracemont)): Hardware+Software 06_97H stepping 5 (Alder Lake S (Golden Cove - Gracemont)): MCU+Software 06_97H stepping 5 (Catlow (Golden Cove)): MCU+Software 06_9AH stepping 3 (1. Alder Lake H (Golden Cove - Gracemont) - 2. Alder Lake P (Golden Cove - Gracemont)): MCU+Software 06_9AH stepping 4 (Alder Lake U (Golden Cove - Gracemont)): MCU+Software | Intel’s list |
| Rocket Lake | Affected | 06_A7H stepping 1 (Rocket Lake): Hardware+Software | Intel’s list |
| Raptor Lake | Affected | 06_B7H stepping 1 (1. Raptor Lake S - 2. Raptor Lake HX (Raptor Cove/Gracemont)): Hardware+Software 06_B7H stepping 1 (Catlow (Raptor Cove)): Hardware+Software 06_BAH stepping 2 - 3 - 8 (1. Raptor Lake P - 2. Raptor Lake H + refresh - 3. Raptor Lake U + refresh (Raptor Cove/Gracemont)): Hardware+Software 06_BFH stepping 2 - 5 (Raptor Lake S (Raptor Cove/Gracemont)): Hardware+Software | Intel’s list |
| Meteor Lake | Affected | 06_AAH stepping 4 (Meteor Lake U/H/PS (Redwood Cove - Crestmont)): Hardware+Software | Intel’s list |
| Arrow Lake | Affected | 06_B5H stepping 0 (Arrow Lake U (Redwood Cove - Crestmont)): Hardware+Software 06_C5H stepping 2 (Arrow Lake H (Lion Cove - Skymont)): Hardware+Software 06_C6H stepping 2 (Arrow Lake H/HX/S/S Plus (Lion Cove - Skymont)): Hardware+Software | Intel’s list |
| Lunar Lake | Affected | 06_BDH stepping 1 (Lunar Lake (Lion Cove - Skymont)): Hardware+Software | Intel’s list |
| Panther Lake | Affected | 06_CCH stepping 2 - 3 (Panther Lake (Cougar Cove - Darkmont)): Hardware+Software | Intel’s list |
| Skylake-SP | Affected | 06_55H stepping 3 (Skylake Server): MCU+Software 06_55H stepping 4 (1. Skylake Server - 2. Skylake D/Bakerville): MCU+Software | Intel’s list |
| Cooper Lake | Affected | 06_55H stepping B (Cooper Lake): Hardware+Software | Intel’s list |
| Ice Lake (server) | Affected | 06_6AH stepping 6 (Ice Lake Xeon-SP): Hardware+Software 06_6CH stepping All (Ice Lake Xeon D (Idaville)): Hardware+Software | Intel’s list |
| Emerald Rapids | Affected | 06_CFH stepping 2 (Emerald Rapids (Raptor Cove)): Hardware+Software | Intel’s list |
| Sapphire Rapids | Affected | 06_8FH stepping 5 - 6 - 7 - 8 (1. Sapphire Rapids - 2. Sapphire Rapids Edge Enhanced (Golden Cove)): Hardware+Software 06_8FH stepping 5 - 6 - 8 (Sapphire Rapids (Golden Cove) - Sapphire Rapids HBM): Hardware+Software | Intel’s list |
| Granite Rapids | Affected | 06_ADH stepping 1 (Granite Rapids (Redwood Cove)): Hardware+Software 06_ADH stepping 1 (Granite Rapids (Redwood Cove)): Hardware+Software 06_ADH stepping 1 (Granite Rapids R1S (Redwood Cove)): Hardware+Software 06_AEH stepping 1 (Granite Rapids D (Redwood Cove)/Kaseyville): Hardware+Software | Intel’s list |
| Sierra Forest | Affected | 06_AFH stepping 3 (Sierra Forest (Crestmont)): Hardware+Software | Intel’s list |
| Clearwater Forest | Affected | 06_DDH stepping 1 (Clearwater Forest (Darkmont)): Hardware+Software | Intel’s list |
| Goldmont | Affected | 06_5CH stepping A (Apollo Lake): MCU+Software 06_5FH stepping All (Denverton (Goldmont)): MCU+Software | Intel’s list |
| Goldmont Plus | Affected | 06_7AH stepping 8 (Gemini Lake): Hardware+Software | Intel’s list |
| Tremont | Affected | 06_86H stepping 5 (Snow Ridge BTS (Tremont)): Hardware+Software 06_86H stepping 7 (Parker Ridge / Snow Ridge NS/NX/BTS): MCU+Software 06_96H stepping All (Elkhart Lake (Tremont)): Hardware+Software 06_9CH stepping All (Jasper Lake (Tremont)): Hardware+Software | Intel’s list |
| Gracemont | Affected | 06_9AH stepping 4 (Arizona Beach (Gracemont)): Hardware+Software 06_BEH stepping 0 (Alder Lake N (Gracemont)/Twin Lake): Hardware+Software | Intel’s list |
| Bulldozer | Affected | Linux 7.3 sets the bug on AMD family 15h: cpu_vuln_whitelist does not list it with NO_SPECULATION or NO_SSB; and a processor released before 2018 does not report SSB_NO | Linux 7.3 |
| Piledriver | Affected | Linux 7.3 sets the bug on AMD family 15h: cpu_vuln_whitelist does not list it with NO_SPECULATION or NO_SSB; and a processor released before 2018 does not report SSB_NO | Linux 7.3 |
| Steamroller | Affected | Linux 7.3 sets the bug on AMD family 15h: cpu_vuln_whitelist does not list it with NO_SPECULATION or NO_SSB; and a processor released before 2018 does not report SSB_NO | Linux 7.3 |
| Excavator | Affected | Linux 7.3 sets the bug on AMD family 15h: cpu_vuln_whitelist does not list it with NO_SPECULATION or NO_SSB; and a processor released before 2018 does not report SSB_NO | Linux 7.3 |
| Zen | Affected | Linux 7.3 sets the bug on AMD family 17h: cpu_vuln_whitelist does not list it with NO_SPECULATION or NO_SSB; and a processor released before 2018 does not report SSB_NO | Linux 7.3 |
| Bobcat | Affected | Linux 7.3 sets the bug on AMD family 14h: cpu_vuln_whitelist does not list it with NO_SPECULATION or NO_SSB; and a processor released before 2018 does not report SSB_NO | Linux 7.3 |
| Jaguar | Affected | Linux 7.3 sets the bug on AMD family 16h: cpu_vuln_whitelist does not list it with NO_SPECULATION or NO_SSB; and a processor released before 2018 does not report SSB_NO | Linux 7.3 |
| Puma | Affected | Linux 7.3 sets the bug on AMD family 16h: cpu_vuln_whitelist does not list it with NO_SPECULATION or NO_SSB; and a processor released before 2018 does not report SSB_NO | Linux 7.3 |
| Bonnell | Not affected | Linux 7.3 lists INTEL_ATOM_BONNELL, INTEL_ATOM_BONNELL_MID in cpu_vuln_whitelist with NO_SPECULATION | Linux 7.3 |
| Saltwell | Not affected | Linux 7.3 lists INTEL_ATOM_SALTWELL, INTEL_ATOM_SALTWELL_MID, INTEL_ATOM_SALTWELL_TABLET in cpu_vuln_whitelist with NO_SPECULATION | Linux 7.3 |
| Silvermont | Not affected | Linux 7.3 lists INTEL_ATOM_SILVERMONT, INTEL_ATOM_SILVERMONT_D, INTEL_ATOM_SILVERMONT_MID, INTEL_ATOM_SILVERMONT_MID2 in cpu_vuln_whitelist with NO_SSB | Linux 7.3 |
| Airmont | Not affected | Linux 7.3 lists INTEL_ATOM_AIRMONT, INTEL_ATOM_AIRMONT_NP in cpu_vuln_whitelist with NO_SSB | Linux 7.3 |
| Knights Landing | Not affected | Linux 7.3 lists INTEL_XEON_PHI_KNL in cpu_vuln_whitelist with NO_SSB | Linux 7.3 |
| Knights Mill | Not affected | Linux 7.3 lists INTEL_XEON_PHI_KNM in cpu_vuln_whitelist with NO_SSB | Linux 7.3 |
| K8 (Hammer) | Not affected | Linux 7.3 lists AMD family Fh in cpu_vuln_whitelist with NO_SSB | Linux 7.3 |
| K10 (Family 10h) | Not affected | Linux 7.3 lists AMD family 10h, AMD family 12h in cpu_vuln_whitelist with NO_SSB | Linux 7.3 |
Mitigations
- Microcode: Speculative Store Bypass Disable (SSBD): microcode adds bit 2 of IA32_SPEC_CTRL, which stops loads from running ahead of stores with unknown addresses; some AMD processors have their own control in an MSR instead. Instructions: WRMSR. Source.
- Kernel: Because SSBD slows every program, Linux by default turns it on only for processes that ask through prctl() or run under seccomp; the boot option spec_store_bypass_disable chooses otherwise. Source.
How to check a machine
On Linux, /sys/devices/system/cpu/vulnerabilities/spec_store_bypass holds one of these lines:
Not affectedVulnerableMitigation: Speculative Store Bypass disabledMitigation: Speculative Store Bypass disabled via prctlMitigation: Speculative Store Bypass disabled via prctl and seccomp