I’ve stopped & started my m5d.large EC2 instances to pickup the new microcode : 0x200005e. This is the latest rev of microcode released by Intel for Skylake CPUs per the May 14th, 2019 pdf. My instances microcode went from 4e → 5e and 5a → 5e. I had to do a full shutdown and start to get new microcode.
My instances are running RHEL 7.6, 3.10.0-957.12.2.el7.x86_64. Testing with spectre-meltdown-checker it fails on the latest side channel CVEs. Vmware had KB articles on how to update ESXI hosts & cluster to make sure it pushes updated cpu flags. I had to do this on my in house Vmware cluster, and I get green across the board internally, but not in AWS.
While AWS has pushed the updated microcode, it doesn’t appear (at least for me) they are pushing updated cpu flags to enable the OS to apply Kernel mitigation:
CVE-2018-12130 aka ‘ZombieLoad, microarchitectural fill buffer data sampling (MFBDS)’
* Mitigated according to the /sys interface: NO (Vulnerable: Clear CPU buffers attempted, no microcode; SMT Host state unknown)
* CPU supports the MD_CLEAR functionality: NO
* Kernel supports using MD_CLEAR mitigation: YES (found md_clear implementation evidence in kernel image)
* Kernel mitigation is enabled and active: NO
* SMT is either mitigated or disabled: NO
> STATUS: VULNERABLE (Vulnerable: Clear CPU buffers attempted, no microcode; SMT Host state unknown)
cat /proc/cpuinfo | grep micro
microcode : 0x200005e
microcode : 0x200005e
cat /sys/devices/system/cpu/vulnerabilities/mds
Vulnerable: Clear CPU buffers attempted, no microcode; SMT Host state unknown
You should probably open a support ticket for that.
If you aren’t familiar with the shared responsibility model that AWS adheres to, I’d say that is soundly in the “security of the cloud” realm, which is their responsibility.
I had opened a ticket at the same time as posting here, thinking great minds on Reddit would have a answer quicker than a support email. As of right now, ticket has been escalated, awaiting response.
I fired up a new T2.micro with RHEL 8.0, updated, shutdown, restarted, & verified latest microcode on the T2.micro and it has the same issue. Fails the side channel tests as well. The T2.micro was using a Haswell cpu on microcode 0x43, which again is the correct microcode. Both XEN and KVM have updates to pass md_clear to guests. Might be awhile before we see it downstream.
# EC2 instances are patched on the infrastructure level and it cannot be detected from guest
Since the patches are applied at hardware level but the guest is not aware of it. The tools will show the EC2 as vulnerable but the underlying logic is working in place and the EC2 is protected. The internal team has confirmed the same. Although I will not be able to provide further details due to our policy but rest assured that the team is making sure that the EC2 running on our hosts are protected.
I understand this is not the answer you’re looking for but this is by design after considering multiple factors by our service team.
I hope this helps. If you have any other query or concern, do let me know.
Have a great day ahead!
The problem I have with this script, is all that it does is do a dmesg | grep EC2, and if so, you get a pass. Not very reassuring.
I thought that kernel mitigations had to be applied, and are only applied if certain CPU Flags are present?!?
[ 1.631630] MDS: Vulnerable: Clear CPU buffers attempted, no microcode
I’m going to assume they haven’t updated their host machine bios with updated microcode, and only applied the microcode update via a microcode_ctl -u, which is why we’re getting a half applied fix, and no md_clear cpu flags.