Bug 1029664 - (CVE-2013-4560) CVE-2013-4560 lighttpd: Use after free if FAMMonitorDirectory fails
CVE-2013-4560 lighttpd: Use after free if FAMMonitorDirectory fails
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
: Security
Depends On: 1029666 1029667 1029669
  Show dependency treegraph
Reported: 2013-11-12 16:22 EST by Kurt Seifried
Modified: 2016-03-04 06:06 EST (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2015-09-05 15:10:11 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Kurt Seifried 2013-11-12 16:22:52 EST
Stefan Bühler of the lighthttpd project reports:

 Use after free if FAMMonitorDirectory fails


If the "fam" is enabled:

    server.stat-cache-engine = "fam"

and there are directories reachable from configured doc roots and aliases on 
which FAMMonitorDirectory fails (probably depends on file system), a remote 
client could trigger a DoS.

This bug was found with the clang static analyzer.

 Detailed analysis

If FAMMonitorDirectory fails, the memory intended to store the context is 
released; some lines below the "version" compoment of that context is read.
Reading invalid data doesn't matter, but the memory access could trigger a 

 Affected versions

All versions before 1.4.33.


See http://download.lighttpd.net/lighttpd/security/lighttpd-1.4.33_fix_fam_use_after_free.patch

 Fixed in

1.4.x: http://redmine.lighttpd.net/projects/lighttpd/repository/revisions/2921
1.4.34: not released yet (http://www.lighttpd.net/)

 Solutions or workaround

Don't enable "fam".


[1] http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-XXXX (TBD)
[2] http://redmine.lighttpd.net/projects/lighttpd/repository/revisions/2921/diff/

 GPG signatures

* http://download.lighttpd.net/lighttpd/security/lighttpd-1.4.33_fix_fam_use_after_free.patch.asc
* http://download.lighttpd.net/lighttpd/security/lighttpd_sa_2013_03.txt.asc
Comment 1 Kurt Seifried 2013-11-12 16:24:38 EST
Created lighttpd tracking bugs for this issue:

Affects: fedora-all [bug 1029666]
Comment 2 Kurt Seifried 2013-11-12 16:26:28 EST
Created lighttpd tracking bugs for this issue:

Affects: epel-all [bug 1029667]

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