Bug 1463205 - (CVE-2017-7668) CVE-2017-7668 httpd: ap_find_token() buffer overread
CVE-2017-7668 httpd: ap_find_token() buffer overread
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=20170620,repor...
: Security
Depends On: 1465916 1466263 1473693 1463208 1464876 1464877 1466264 1473691 1473692
Blocks: 1464082 1463212
  Show dependency treegraph
 
Reported: 2017-06-20 07:29 EDT by Andrej Nemec
Modified: 2017-08-29 10:01 EDT (History)
47 users (show)

See Also:
Fixed In Version: httpd 2.2.34, httpd 2.4.26
Doc Type: If docs needed, set a value
Doc Text:
A buffer over-read flaw was found in the httpd's ap_find_token() function. A remote attacker could use this flaw to cause httpd child process to crash via a specially crafted HTTP request.
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)

  None (edit)
Description Andrej Nemec 2017-06-20 07:29:23 EDT
The HTTP strict parsing changes added in 2.2.32 and 2.4.24 introduced a bug in token list parsing, which allows ap_find_token() to search past the end of its input string. By maliciously crafting a sequence of request headers, an attacker may be able to cause a segmentation fault, or to force ap_find_token() to return an incorrect value.

External References:

https://httpd.apache.org/security/vulnerabilities_24.html
https://httpd.apache.org/security/vulnerabilities_22.html
Comment 1 Andrej Nemec 2017-06-20 07:38:04 EDT
Created httpd tracking bugs for this issue:

Affects: fedora-all [bug 1463208]
Comment 6 Tomas Hoger 2017-06-26 16:45:00 EDT
(In reply to Andrej Nemec from comment #0)
> The HTTP strict parsing changes added in 2.2.32 and 2.4.24 introduced a bug
> in token list parsing, which allows ap_find_token() to search past the end
> of its input string.

The strict HTTP parsing was a fix for flaw with CVE id CVE-2016-8743 and is tracked via bug 1406822.  The change was already backported to multiple Red Hat products, even if they contain older httpd version.
Comment 15 errata-xmlrpc 2017-08-15 14:26:21 EDT
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2017:2479 https://access.redhat.com/errata/RHSA-2017:2479
Comment 16 errata-xmlrpc 2017-08-16 19:07:09 EDT
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 7
  Red Hat Software Collections for Red Hat Enterprise Linux 6
  Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS

Via RHSA-2017:2483 https://access.redhat.com/errata/RHSA-2017:2483

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