Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [day] [month] [year] [list]
Date: Mon, 8 Oct 2012 14:56:47 +0200
From: Timo Warns <Warns@...-Sense.DE>
Subject: [PRE-SA-2012-07] hostapd: Missing EAP-TLS message length validation

The issue described below has been reported to the distros list with
a timeline as follows:

    - notification of Jouni Malinen of the hostapd project

    - verification of the vulnerability and provision of patch
      by Jouni Malinen
    - agreement on an advisory release date of 2012-10-08

    - notification of

    - patch becomes available in hostapd's public git repository

    - release of advisory

PRE-CERT Security Advisory

* Advisory: PRE-SA-2012-07
* Released on: 8 October 2012
* Affected product: Hostapd 0.6 - 1.0
* Impact: denial of service
* Origin: specially crafted EAP-TLS messages
* CVSS Base Score: 7.8
    Impact Subscore: 6.9
    Exploitability Subscore: 10
  CVSS Vector: (AV:N/AC:L/Au:N/C:N/I:N/A:C)
* Credit: Timo Warns (PRESENSE Technologies GmbH)
* CVE Identifier: CVE-2012-4445


The internal EAP authentication server of hostapd does not sufficiently
validate the message length field of EAP-TLS messages, which can be
exploited for a denial-of-service via specially crafted EAP-TLS messages
(before authentication).

Hostapd has a function eap_server_tls_process_fragment() used by its
internal EAP authentication server for handling fragmented EAP-TLS
messages. The function (indirectly) calls wpabuf_overflow() aborting
the application in case of potential buffer overflows. Such a situation
can be triggered by an attacker sending an EAP-TLS message with

    a) the "More Fragments" flag set and
    b) an "TLS Message Length" value that is smaller than the size of
       the "TLS Data" field.

The vulnerability can be exploited only if hostapd is configured to use
its internal EAP authentication server, either directly for IEEE 802.11x
or when using hostapd as a RADIUS authentication server. 

Affected is hostapd in versions 0.6 - 1.0. The issue was introduced with


A patch is available at;a=commitdiff;h=586c446e0ff42ae00315b014924ec669023bd8de


When further information becomes available, this advisory will be
updated. The most recent version of this advisory is available at:


PRE-CERT can be reached under For PGP key
information, refer to

Powered by blists - more mailing lists

Please check out the Open Source Software Security Wiki, which is counterpart to this mailing list.

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.