Stack-based buffer overflow in the is_git_directory function in setup.c in Git before 1.7.2.1 allows local users to gain privileges via a long gitdir: field in a .git file in a working copy.
git.kernel.org/?p=git/git.git%3Ba=commit%3Bh=3c9d0414ed2db0167e6c828b547be8fc9f88fccc
lists.opensuse.org/opensuse-security-announce/2011-02/msg00004.html
secunia.com/advisories/43457
www.kernel.org/pub/software/scm/git/docs/RelNotes-1.7.2.1.txt
www.openwall.com/lists/oss-security/2010/07/22/1
www.openwall.com/lists/oss-security/2010/07/22/4
www.securityfocus.com/bid/41891
www.vupen.com/english/advisories/2011/0464
bugzilla.redhat.com/show_bug.cgi?id=618108