I am running 24.10 and the previous workaround would give me no shim
error and would immediately return back to the boot menu. I forced a
phased grub update on an HP Victus 15-fb1XXX and memtest I had
previously signed as previously now works fine.
sudo apt --with-new-pkgs upgrade grub-efi-amd64
I found a workaround that doesn't require to disable secure boot:
Get the latest memtest (or at least above 6.10)
Use these instructions to create a machine owner key (remove the .2 at the end
of the extendedKeyUsage line in the config file) and enroll it (you don't need
to reboot twice to Ubuntu