A local privilege escalation to root via an exploitable service? Doesn't Linux have one of these CVEs...each week?
Not quite every week, but yeah it has a lot. And if the target uses sudo at all you don't even need an exploit! But nobody mentioned Linux. There's no need for whataboutism. They both shouldn't have these vulnerabilities.
Why would a target executable use sudo? There are proper mechanisms for automated elevation of permissions and sudo isn’t it.
sudo is designed for user interactivity. And by default prompts for a password. However some people get lazy and disable the password entry requirement.