This issue occurs when using legacy BIOS option when creating the virtual machine. The virtual machine is created with CPU entries for the maximum amount of CPUs (64 or 128) even if they are not in use. Running the dmidecode command will return all the entries provisioned to the virtual machine, not only the CPUs in use. This issue does occur with Extensible Firmware Interface (EFI).