[PATCH 5.15.y] soc: qcom: mdt_loader: Ensure we don't read past the ELF header