diff -Nru apport-0.98/debian/apport.cron.daily apport-0.98.1/debian/apport.cron.daily --- apport-0.98/debian/apport.cron.daily 2007-05-14 08:28:06.000000000 +0200 +++ apport-0.98.1/debian/apport.cron.daily 2009-04-15 21:55:06.000000000 +0200 @@ -1,5 +1,5 @@ #!/bin/sh -e # clean all crash reports which are older than a week. [ -d /var/crash ] || exit 0 -find /var/crash -mindepth 1 -mtime +7 -print0 | xargs -0 rm -f -find /var/crash -mindepth 1 -empty -print0 | xargs -0 rm -f +find /var/crash -mindepth 1 -maxdepth 1 \( -type f -o -type l \) -mtime +7 -print0 | xargs -0 rm -f +find /var/crash -mindepth 1 -maxdepth 1 \( -type f -o -type l \) -empty -print0 | xargs -0 rm -f diff -Nru apport-0.98/debian/changelog apport-0.98.1/debian/changelog --- apport-0.98/debian/changelog 2007-10-06 12:42:57.000000000 +0200 +++ apport-0.98.1/debian/changelog 2009-04-15 21:55:27.000000000 +0200 @@ -1,3 +1,14 @@ +apport (0.98.1) gutsy-security; urgency=low + + * etc/cron.daily/apport: Only attempt to remove files and symlinks, do not + descend into subdirectories of /var/crash/. Doing so might be exploited by + a symlink attack in an evil fuse file system or a race condition between + find traversing a huge directory tree, changing an existing subdir into a + symlink to e. g. /etc/, and finally getting that piped to rm. Thanks to + Stephane Chazelas for discovering this! (LP: #357024) + + -- Martin Pitt Wed, 15 Apr 2009 21:55:09 +0200 + apport (0.98) gutsy; urgency=low [ Martin Pitt ]