The compare_tor_addr_to_addr_policy function in or/policies.c in Tor before 0.2.2.39, and 0.2.3.x before 0.2.3.21-rc, allows remote attackers to cause a denial of service (assertion failure and daemon exit) via a zero-valued port field that is not properly handled during policy comparison.
https://trac.torproject.org/projects/tor/ticket/6690
https://lists.torproject.org/pipermail/tor-talk/2012-September/025434.html
https://gitweb.torproject.org/tor.git/commit/62d96284f7e0f81c40d5df7e53dd7b4dfe7e56a5
https://gitweb.torproject.org/tor.git/blob/release-0.2.2:/ReleaseNotes
http://security.gentoo.org/glsa/glsa-201301-03.xml
http://secunia.com/advisories/50583
http://openwall.com/lists/oss-security/2012/09/13/2
http://lists.opensuse.org/opensuse-updates/2012-10/msg00005.html
http://lists.fedoraproject.org/pipermail/package-announce/2012-September/088006.html