The build_tablename function in pgsql.c in the PostgreSQL (aka pgsql) extension in PHP through 5.6.7 does not validate token extraction for table names, which allows remote attackers to cause a denial of service (NULL pointer dereference and application crash) via a crafted name.
https://support.apple.com/HT205267
https://security.gentoo.org/glsa/201606-10
http://www.securityfocus.com/bid/71932
http://www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html
http://www.oracle.com/technetwork/topics/security/bulletinjul2015-2511963.html
http://www.mandriva.com/security/advisories?name=MDVSA-2015:079
http://rhn.redhat.com/errata/RHSA-2015-1053.html
http://openwall.com/lists/oss-security/2015/01/24/9
http://marc.info/?l=bugtraq&m=143403519711434&w=2
http://lists.apple.com/archives/security-announce/2015/Sep/msg00008.html
http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=124fb22a13fafa3648e4e15b4f207c7096d8155e