The internal carotid artery exits the cavernous sinus and enters the subarachnoid space at the dural constriction known as the carotid ring or clinoidal ring.
https://www.barrowneuro.org/wp-content/uploads/Figure-1.-Anatomy-of-the-clinoidal-segment-of-the-internal-carotid-artery..jpg