Cavitating lung metastases typically arise from squamous cell carcinomas, of which the head and neck is a common primary location.