Even with a verified module, issues can arise:
Here is a story that illustrates the journey of a user navigating this technical challenge. The Ghost in the Partition
The most common way Magisk interacts with the IMEI is through the framework (the modern successor to Riru/Xposed).
: He patched his boot image using topjohnwu’s Magisk , giving him the MagiskSU needed to write to the device’s protected EFS partition.