Bug 316511 - (CVE-2007-4772) CVE-2007-4772 postgresql DoS via infinite loop in regex NFA optimization code
CVE-2007-4772 postgresql DoS via infinite loop in regex NFA optimization code
Status: CLOSED ERRATA
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
public=20080107,reported=20070927,sou...
: Reopened, Security
Depends On: 427135 427136 427137 427138 427220 427221 427772 427773 427774 432510 432511 867793
Blocks: 816611
  Show dependency treegraph
 
Reported: 2007-10-03 03:43 EDT by Tomas Hoger
Modified: 2016-03-04 06:47 EST (History)
4 users (show)

See Also:
Fixed In Version: 8.2.6-1.fc8
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-01-08 03:57:44 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Tomas Hoger 2007-10-03 03:43:35 EDT
Will Drewry of the Google Security Team reported a problem in regular
expressions code use by PostreSQL which results in a non-terminating infinite
loop during
nondeterministic finite automata optimization.  These loops remain
even after the client disconnects and can be used to hog CPU and
connections to the database until a full-fledged denial of service
condition occurs.
Comment 2 Tom Lane 2007-10-03 10:48:53 EDT
Note that these same looping behaviors have been reproduced in Tcl.  Not sure if that should get its own 
CVE or not.
Comment 4 Tomas Hoger 2007-10-03 11:03:47 EDT
If it's same code used in multiple products / projects (usually taken from one
project to another), single CVE id is usually used.
Comment 12 Tomas Hoger 2008-01-07 08:56:31 EST
Public now, lifting embargo:

http://www.postgresql.org/about/news.905
http://www.postgresql.org/support/security.html
Comment 14 Tomas Hoger 2008-01-08 04:40:03 EST
TCL fixed in 8.5.0, patch:

http://tcl.cvs.sourceforge.net/tcl/tcl/generic/regc_nfa.c?r1=1.9&r2=1.10
Comment 17 Fedora Update System 2008-01-11 17:14:08 EST
postgresql-8.2.6-1.fc8 has been pushed to the Fedora 8 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 18 Fedora Update System 2008-01-11 17:24:14 EST
postgresql-8.2.6-1.fc7 has been pushed to the Fedora 7 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 23 errata-xmlrpc 2013-01-07 23:51:32 EST
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5

Via RHSA-2013:0122 https://rhn.redhat.com/errata/RHSA-2013-0122.html

Note You need to log in before you can comment on or make changes to this bug.