If you turn on airplane mode it disables the cellular modem, also if the modem is compromised it can't affect the OS because it's isolated via IOMMU. The only thing a compromised modem could do is ignore airplane mode commands.