r/sysadmin • • 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

7 comments sorted by

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

3

u/SnooDoughnuts2426 2d ago

Versions 7 - 13

3

u/justlikeyouimagined Everything Admin 1d ago

Right, so even if your CPUs had the instruction, the VMs would not see it and therefore still be safe.

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.

1

u/SnooDoughnuts2426 2d ago

Thank you for confirming!

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!