Bug#521107: unsafe /tmp usage
On Tue, Mar 24, 2009 at 02:50:25PM -0700, Kees Cook wrote:
> Package: xfs
> Version: 1:1.0.8-2.1
> Severity: normal
> Tags: security
> User: ubuntu-devel@lists.ubuntu.com
> Usertags: origin-ubuntu jaunty
>
> Hello,
>
> There is a bug in the Ubuntu bug tracker about xfs's init script being used
> in an unsafe fashion. It seems that OpenSUSE has solved this as well:
>
> "set_up_socket_dir moves /tmp/.font-unix to /tmp/.font-unix.$$.
> Unfortunately $$ is predictable and there is no test, that
> /tmp/.font-unix.$$ does not already exist. So especially symlink attacks
> are possible. The attack is only possible, if /tmp/.font-unix does not
> already exist. Then an attacker could create an /tmp/.font-unix file (not
> directory) and create some symlinks in the form /tmp/.font-unix.XXXX (where
> XXXX are possible PID numbers). The start script than moves /tmp/.font-unix
> to an symlinked directory /tmp/.font-unix.XXXX."
This appears to be a re-introduction of the fix from xfs 1:1.0.4-2?
Cheers,
Moritz
Reply to: