CVE-2021-3156: Baron Samedit (sudo Heap Overflow)
What is Baron Samedit?
A heap-based buffer overflow in sudo that allows any unprivileged user to gain root privileges on default Linux installations. The vulnerability has been present in sudo since July 2011 — a 10-year-old bug in one of Linux's most critical utilities.
Impact & Exploitation
Affects nearly every Linux distribution. Enables local privilege escalation to root without password. Present for 10 years in sudo — installed on virtually every Unix-like system.
How Precogs AI Detects Baron Samedit (sudo Heap Overflow)
Precogs AI Binary SAST identifies sudo versions in compiled Linux distributions and container images, detecting Baron Samedit and similar heap overflow conditions in SUID binaries.