V23.05.2 with different kernel versions?

The vermagic is a hash of the chosen kernel options. The best advice is to build using the config.seed file from your target.