Local root vulnerability in snap-confine
Local root vulnerability in snap-confine
Posted Feb 17, 2022 20:06 UTC (Thu) by jra (subscriber, #55261)Parent article: Local root vulnerability in snap-confine
https://www.qualys.com/2022/02/17/cve-2021-44731/oh-snap-...
"Discovering and exploiting a vulnerability in snap-confine has been
extremely challenging (especially in a default installation of Ubuntu),
because snap-confine uses a very defensive programming style, AppArmor
profiles, seccomp filters, mount namespaces, and two Go helper programs.
...
setup_private_mount() is programmed very defensively (f*() and *at() syscalls, O_DIRECTORY and O_NOFOLLOW flags) to avoid race conditions:"
But that wasn't enough (it never is). Symlinks to the rescue for the malware community !
More evidence (if such were needed) that it is *IMPOSSIBLE* for even security engineers to write symlink-safe code (I sometimes wake up in a cold sweat thinking I missed something in the Samba symlink fixes. Worst of all, I probably did). When will our engineering community finally have enough of this and work to excise symlinks from our file systems ?
