
概念验证 /
漏洞利用 /
检查系统是否受到变体 3:恶意数据缓存加载(CVE-2017-5754),又名 MELTDOWN 的影响。
其基本思路是让用户了解当前运行的系统是否已通过 KAISER 补丁集(https://lkml.org/lkml/2017/10/31/884)之类的方案正确修补。
*** 目前仅适用于 Linux ***
它通过 /proc/kallsyms 查找系统调用表,并检查通过利用 MELTDOWN 找到的系统调用地址是否与 /proc/kallsyms 中相应的地址匹配。
那是因为您的系统可能由于 /proc/sys/kernel/kptr_restrict 被设置为 1,而阻止程序读取 /proc/kallsyms 中的内核符号。 以下命令可以解决这个问题:
sudo sh -c "echo 0 > /proc/sys/kernel/kptr_restrict"
如果您有办法在此场景下改用其他方案,请提交一个 issue。
运行 make 编译项目

Checking whether system is affected by Variant 3: rogue data cache load (CVE-2017-5754), a.k.a MELTDOWN ...
Checking syscall table (sys_call_table) found at address 0xffffffffaea001c0 ...
0xc4c4c4c4c4c4c4c4 -> That's unknown
0xffffffffae251e10 -> That's SyS_write
System affected! Please consider upgrading your kernel to one that is patched with KAISER
Check https://security.googleblog.com/2018/01/todays-cpu-vulnerability-what-you-need.html for more details