The CVNs will not enter the Persian Gulf. They're very capable and can launch strike aircraft from hundreds of miles away. They'll stay in the Arabian Sea, protected by rings of defensive ships and aircraft that would relish finding an Iranian coffin, er, submarine trying to approach. Like a big dog finding a toy.
Trust today's Navy to know what they're doing. They really don't want to lose a carrier!
Which strike aircraft can attack a submarine?