r/sysadmin • u/SnooDoughnuts2426 • 2d ago
Question Java4Shell Question regarding to VMware VMs
Sanity check me here. On Linux VMware virtual machines, the following command is not returning any of the AVX512 flags, which is good, am I missing something? Am I correct in thinking that none of my Linux virtual machines that have Java are vulnerable to Java4Shell if this command comes back blank?
grep -m1 '^flags' /proc/cpuinfo | tr ' ' '\n' | grep -E '^(avx512f|avx512bw|avx512vbmi|bmi2)$'
0
Upvotes
4
u/justlikeyouimagined Everything Admin 2d ago
What is your VM virtual hardware version?
AFAIK the AVX-512 VBNI instruction is not exposed to the guest below v17
2
u/cjcox4 2d ago
Correct. For now, for this particular exploit, the architecture has to support the instructions. If they are not present, the exploit, in this case, cannot be used.
2
u/CircuitsFit44 1d ago
Blank output means that VM can't run the exploit as it's currently presented, so your reading is right. One caveat: what the guest sees depends on the host CPU and the cluster's EVC mode, and a VM that moves to a newer host (or gets power-cycled on one) can pick up different flags. With hardware versions that old it's likely masked, but it's worth confirming no host in the cluster exposes AVX-512 VBMI, or setting an EVC baseline below it. Otherwise, re-run the same grep after any host or hardware version change.
2
u/bananna_roboto 1d ago
Cascade lake baby, security through antiquity!