Local root vulnerability in snap-confine
Local root vulnerability in snap-confine
Posted Feb 18, 2022 8:59 UTC (Fri) by epa (subscriber, #39769)In reply to: Local root vulnerability in snap-confine by jra
Parent article: Local root vulnerability in snap-confine
Would it be fair to say that most of these security holes are not caused by symlinks alone, but by race conditions with symlinks?
The legitimate uses of symlinks are mostly static -- a shared library linked to a different name, an old user who no longer exists. They don't change much. Can we somehow restrict the times at which symbolic links can be created or changed? Perhaps a process should only be able to see the symlinks that existed when that process started, unless it calls a refresh_symlinks() system call. That would avoid path traversal race conditions while still letting us have the uses of symlinks we've come to depend on.
