Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1605052 - (CVE-2018-8011) CVE-2018-8011 httpd: mod_md: NULL pointer dereference causing httpd child process crash
CVE-2018-8011 httpd: mod_md: NULL pointer dereference causing httpd child pro...
Status: NEW
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
impact=moderate,public=20180718,repor...
: Security
Depends On: 1605093 1605094
Blocks: 1605053
  Show dependency treegraph
 
Reported: 2018-07-20 00:56 EDT by Sam Fowler
Modified: 2018-10-19 17:52 EDT (History)
61 users (show)

See Also:
Fixed In Version: httpd 2.4.34
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
mod_md CVE-2018-8011 patch (974 bytes, patch)
2018-07-20 05:27 EDT, Joe Orton
no flags Details | Diff

  None (edit)
Description Sam Fowler 2018-07-20 00:56:25 EDT
Apache httpd before version 2.4.34 has a vulnerability in mod_md. By specially crafting HTTP requests, the mod_md challenge handler would dereference a NULL pointer and cause the child process to segfault. This could be used to DoS the server.


External References:

https://httpd.apache.org/security/vulnerabilities_24.html#CVE-2018-8011
Comment 1 Tomas Hoger 2018-07-20 03:32:23 EDT
The affected mod_md module was only introduced upstream in version 2.4.30 as an experimental module:

  *) mod_md: new experimental, module for managing domains across virtual hosts,
     implementing the Let's Encrypt ACMEv1 protocol to signup and renew 
     certificates. Please read the modules documentation for further instructions
     on how to use it. [Stefan Eissing]

http://archive.apache.org/dist/httpd/CHANGES_2.4.32
https://httpd.apache.org/docs/2.4/mod/mod_md.html

Note that versions 2.4.30 and 2.4.31 were not released, so the first released version with this functionality was 2.4.32.
Comment 2 Tomas Hoger 2018-07-20 03:34:01 EDT
Created httpd tracking bugs for this issue:

Affects: fedora-all [bug 1605093]
Comment 5 Tomas Hoger 2018-07-20 05:07:04 EDT
This should be the patch, as applied to the mod_md git repo:

https://github.com/icing/mod_md/commit/e71001955809247b3aa4d269e1e0741b4fe0fc3d

It notes the following fix for the mod_md 1.1.11:

  * fixes a Null Dereference when specially crafted requests are sent to the
    server. Reported by Daniel Caminada <daniel.caminada@ergon.ch>.

However, that commit includes additional unrelated changes (from mod_md 1.1.12).  The relevant part should be the second and the third change to the mod_md.c file.

The fix integrated to httpd trunk via this commit:

http://svn.apache.org/viewvc?view=revision&revision=1832935
https://github.com/apache/httpd/commit/7bd724657c3b0a4a6016ca72f1be26ac9ebd8cd2

The fix to the 2.4 branch was even combined with lot of other changes, updating mod_md from version 1.0.8 to 1.1.15:

https://github.com/apache/httpd/commit/acfdb68fb80618fe5af06dcfa1dd8ca7b0e6d76d
Comment 6 Joe Orton 2018-07-20 05:27 EDT
Created attachment 1464893 [details]
mod_md CVE-2018-8011 patch

According to (previously private) discussion at security@httpd.apache.org, the specific fix for the mod_md issue is as attached. I am making it public here for full disclosure.

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