REDHAT-BUG-1178921: Medium severity wpa_supplicant wpa_supplicant vulnerability
It was reported [1] that wpasupplicant does not properly check certificate subject name, which might lead to "man in the middle" attack. Relevant part of the original report: ...
wpasupplicant, linked against openssl performs this check:
if (depth == 0 && match && osstrstr(buf, match) == NULL) { wpaprintf(MSGWARNING, "TLS: Subject '%s' did not " "match with '%s'", buf, match); preverifyok = 0; openssltlsfailevent(conn, errcert, err, depth, buf, "Subject mismatch", TLSFAILSUBJECTMISMATCH); }
strstr() is vulnerable to extension attack, for instance, one would like to match on /CN=wireless.nikhef.nl, but explicitly not match on wireless.nikhef.nl.honestachmed.tr. There is no way to implement a secure EAP-TTLS/PEAP configuration using public certificates this way.
When linked against GnuTLS, the problem is even worse:
if (i == 0) { / TODO: validate subjectmatch and altsubjectmatch / }
Now, it is current best practice to run EAP-TTLS/PEAP with public certificates, because on Windows, this automatically pins the CN and CA from the certificate. ...
[1]: https://bugzilla.redhat.com/showbug.cgi?id=1178263
Affected Software
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-1178921?
The severity of REDHAT-BUG-1178921 is considered critical due to the potential for a man-in-the-middle attack.
How do I fix REDHAT-BUG-1178921?
To fix REDHAT-BUG-1178921, update wpa_supplicant to the latest version that includes the security patch.
Which software is affected by REDHAT-BUG-1178921?
The affected software for REDHAT-BUG-1178921 is wpa_supplicant.
What kind of attack can REDHAT-BUG-1178921 lead to?
REDHAT-BUG-1178921 can lead to a man-in-the-middle attack due to improper certificate subject name checks.
How can I verify if I am vulnerable to REDHAT-BUG-1178921?
To verify if you are vulnerable to REDHAT-BUG-1178921, check if you are using an outdated version of wpa_supplicant that lacks the necessary security fix.