Cubital tunnel syndrome involves compression or irritation of the ulnar nerve as it passes through the cubital tunnel in the elbow. It can occur due to repetitive elbow flexion, prolonged pressure on the elbow, or anatomical variations.