| Message ID | 20261103221236.4042336-1-rmekonnen@chromium.org |
|---|---|
| State | New |
| Headers | show
Return-Path:
<hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org>
X-Original-To: incoming@patchwork.ozlabs.org
Delivered-To: patchwork-incoming@legolas.ozlabs.org
Authentication-Results: legolas.ozlabs.org;
dkim=pass (2048-bit key;
secure) header.d=lists.infradead.org header.i=@lists.infradead.org
header.a=rsa-sha256 header.s=bombadil.20210309 header.b=DYdALGut;
dkim=fail reason="signature verification failed" (1024-bit key;
unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256
header.s=google header.b=jfzw5DzN;
dkim-atps=neutral
Authentication-Results: legolas.ozlabs.org;
spf=pass (sender SPF authorized) smtp.mailfrom=lists.infradead.org
(client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org;
envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org;
receiver=patchwork.ozlabs.org)
Received: from bombadil.infradead.org (bombadil.infradead.org
[IPv6:2607:7c80:54:3::133])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)
(No client certificate requested)
by legolas.ozlabs.org (Postfix) with ESMTPS id 4jK2sh2Cvxz1xrS
for <incoming@patchwork.ozlabs.org>; Wed, 04 Nov 2026 09:14:00 +1100 (AEDT)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
d=lists.infradead.org; s=bombadil.20210309; h=Sender:
Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post:
List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc
:To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:
Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:
List-Unsubscribe-Post:List-Owner;
bh=SGnpMZiQGC2eP9o/crKn9UoMldauRmuAxr51IYHPJOE=; b=DYdALGut7CFoJqlpHgahhqIbtq
Y7A9HhZQTNxpRHrGZtFJSwTnsl/38/IW6E8HfnziuHjxCUCxsr6pGmzfeLO339JLB25GvgUR7N5EU
YzDzZNQJiztIhBR5pnAajfuqJs2o/iQNyICZJ7+UNS6U3R20LV1R7B84+Xd2KHTNVMUjsrRBjLsy6
j5euI/F7AUx9cmAN7ZBiHZh5S/vW8MQFx0U77dwWd64XRtfZ8+V5EbJboJuQwvtkWtOFr3qRjwPf1
mkF9HsKl5c1+DWMdlyC2/Yb+snO6ZUPFp6b9Dajxn+h10zAPBpNma4Z6+mOhZ2DfElUIybomkN4aO
A0C5fCmQ==;
Received: from localhost ([::1] helo=bombadil.infradead.org)
by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux))
id 1xOMkH-00000003nuy-03Dj;
Tue, 03 Nov 2026 22:12:45 +0000
Received: from mail-pj1-x102e.google.com ([2607:f8b0:4864:20::102e])
by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux))
id 1xOMkD-00000003nud-2Qoa
for hostap@lists.infradead.org;
Tue, 03 Nov 2026 22:12:42 +0000
Received: by mail-pj1-x102e.google.com with SMTP id
98e67ed59e1d1-3ac78f4c10bso64736a91.1
for <hostap@lists.infradead.org>;
Tue, 03 Nov 2026 14:12:41 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=chromium.org; s=google; t=1793743960; x=1794348760;
darn=lists.infradead.org;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:from:to:cc:subject:date:message-id:reply-to:content-type;
bh=FivOoPpoZBGvtZYy9SmYqMegxRs/CXYClDX30MgjhNk=;
b=jfzw5DzNTFii03CKBiGW2eUus0TnSk40MPfmeAUYhs0VCKOzfdnwYVedqMBfiol9ji
uNv3eC9u7+Bb/CPP0TJSeSZLCE3zkWLYpFMZB4np4WaLHH3rrToh/QkCbfDNShdWiepQ
9QDCFGQ3gNHHNNzkxdWuKOfV89fDnfGPwOL/w=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1793743960; x=1794348760;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=FivOoPpoZBGvtZYy9SmYqMegxRs/CXYClDX30MgjhNk=;
b=viwmdkc0gnLY/v7OT1BuGfEcVSy/jzAd07b6owlQ5cFqybb4lWGnKXong6QDWRy3LQ
3mS3tmEcCIuKYia4W08Vlb59KHeiRjqGKnOrV/z7Koq8wkQSLmfbCUFswSmsd0xq2nYM
EnAZ91u8BxRmAXcxGVZKF5IL4BW6LavwkhCT/hRIsXT8s0tzkyAVuLiZryZFK4EkdHor
lJ8cstcWenIUeZELZny4UnS858tqqC3vPNBD8slmsA81B2S7g3V3nMfkwjCgpk5fJCbx
iGfgDNOkzvAfX0FyuHopziCiRi3BEVODB0V+uTlq2nKQZS69ZBfDgM5cGPCQlZd02Uqs
G3mA==
X-Gm-Message-State: APuU4Z90phRGSK/ECiH4q4ixXFEkm7pc4pV/6b7dQXHFjRYkooL9YOQW
cgknsMPgZwwPTeymStOUkuH0KhSnU9FiMGpFK4QyIofTgdinZmYmnbERXiDT056pGjnifoRr5a/
e94CsFlDw
X-Gm-Gg: AYBFou00BlWRGhWvFzciuxnhxmMD71k/W5PPkDAvtT0cltesuOUEX4RIxaqF+4SS1t2
kwZeuqJyI4WKttAmkIXsbMlGm5ThYlmta0AkkEQSo9jweJCVTJlNMXoVVTWCiGhULbMGdSomJ4h
LwQ5JVoqo7nTnz4BV9fqbskdZXvqHgNI38MOtQbLQdpJ4uufEJ136XZ9NXTGcoNi6j787BfaMcI
c1wZvfyUXAJcXQKmkSuiNREboHtmG6PpUXHtLDPwhrKK58Ov94bQ0ytZ16u1PXdtIgPEPXGi82k
6hBWosKJqQ1rAONebF0mdkiWG/97W2gDuAAMQhI87WklVF0Cf/e3nWzUeKJIv0UuyI9sE7XLN7n
dHp2P6BjFqxq/KOS1eKeQ+t9F+VXPowRyYWIuvTi0A806KBE07VFUyJDYGl4pXom9k/lWkN8afR
Oeto94M2t+gyUCEuTUDmTaarrCDECFhAaG49l+7MvJ85pZHqPQ9MV8ZBaR+uiOlSk0Tyd1ixoR2
E/ACnIPniGh5YGHpl47YrZtE8t60I1jA3dzP2uUh8BcZo9Iwip3M++1SHD779mgGHGmvrqUxAIH
R5GWbQ+Fzd9b6p0ZZHw9tfkj/2jwdvqnT7pruVoGWVXzho2505Gyy3XlCtzm3/cW05AO5UY=
X-Received: by 2002:a17:90a:e7c5:b0:3ad:5c64:c7ae with SMTP id
98e67ed59e1d1-3ae897b67cfmr11692835a91.57.1793743960424;
Tue, 03 Nov 2026 14:12:40 -0800 (PST)
Received: from localhost (61.155.125.34.bc.googleusercontent.com.
[34.125.155.61])
by smtp.gmail.com with UTF8SMTPSA id
98e67ed59e1d1-3b0969b35c7sm183958a91.3.2026.11.03.14.12.39
(version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
Tue, 03 Nov 2026 14:12:39 -0800 (PST)
From: Ruth Mekonnen <rmekonnen@chromium.org>
To: hostap@lists.infradead.org
Cc: Ruth Mekonnen <rmekonnen@chromium.org>
Subject: [PATCH] EAP-TTLS: Reject non-TNC inner EAP methods when starting TNC
Date: Tue, 3 Nov 2026 22:12:31 +0000
Message-ID: <20261103221236.4042336-1-rmekonnen@chromium.org>
X-Mailer: git-send-email 2.56.0.398.g882cbad275-goog
MIME-Version: 1.0
X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3
X-CRM114-CacheID: sfid-20261103_141241_671762_9A6CA669
X-CRM114-Status: GOOD ( 11.49 )
X-Spam-Score: -2.1 (--)
X-Spam-Report: Spam detection software,
running on the system "bombadil.infradead.org",
has NOT identified this incoming email as spam. The original
message has been attached to this so you can view it or label
similar future email. If you have any questions, see
the administrator of that system for details.
Content preview: When TNC starts after a non-EAP Phase 2 authentication, the
peer did not check that the server's next request was actually an EAP-TNC
message,
allowing the server to request other inner EAP methods. Add a check
to ensure only EAP-TNC is accepted when TNC is active.
Content analysis details: (-2.1 points, 5.0 required)
pts rule name description
---- ----------------------
--------------------------------------------------
0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record
-0.0 SPF_PASS SPF: sender matches SPF record
-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from
author's
domain
-0.1 DKIM_VALID Message has at least one valid DKIM or DK
signature
-0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from
envelope-from domain
0.1 DKIM_SIGNED Message has a DKIM or DK signature,
not necessarily valid
-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no
trust
[2607:f8b0:4864:20:0:0:0:102e listed in]
[list.dnswl.org]
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
-0.0 DKIMWL_WL_HIGH DKIMwl.org - High trust sender
-0.0 DMARC_PASS DMARC pass policy
X-BeenThere: hostap@lists.infradead.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: <hostap.lists.infradead.org>
List-Unsubscribe: <http://lists.infradead.org/mailman/options/hostap>,
<mailto:hostap-request@lists.infradead.org?subject=unsubscribe>
List-Archive: <http://lists.infradead.org/pipermail/hostap/>
List-Post: <mailto:hostap@lists.infradead.org>
List-Help: <mailto:hostap-request@lists.infradead.org?subject=help>
List-Subscribe: <http://lists.infradead.org/mailman/listinfo/hostap>,
<mailto:hostap-request@lists.infradead.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: "Hostap" <hostap-bounces@lists.infradead.org>
Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org
|
| Series |
EAP-TTLS: Reject non-TNC inner EAP methods when starting TNC
|
expand
|
diff --git a/src/eap_peer/eap_ttls.c b/src/eap_peer/eap_ttls.c index 6adc22277..77c79994f 100644 --- a/src/eap_peer/eap_ttls.c +++ b/src/eap_peer/eap_ttls.c @@ -419,7 +419,8 @@ static int eap_ttls_phase2_request_eap_method(struct eap_sm *sm, if (data->tnc_started) { if (data->phase2_eap_type.vendor != EAP_VENDOR_IETF || - data->phase2_eap_type.method == EAP_TYPE_TNC) { + data->phase2_eap_type.method == EAP_TYPE_TNC || + vendor != EAP_VENDOR_IETF || method != EAP_TYPE_TNC) { wpa_printf(MSG_DEBUG, "EAP-TTLS: Unexpected EAP " "type %d for TNC", method); return -1;
When TNC starts after a non-EAP Phase 2 authentication, the peer did not check that the server's next request was actually an EAP-TNC message, allowing the server to request other inner EAP methods. Add a check to ensure only EAP-TNC is accepted when TNC is active. Signed-off-by: Ruth Mekonnen <rmekonnen@chromium.org> --- src/eap_peer/eap_ttls.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)