Linux kernel -stable discussions
 help / color / mirror / Atom feed
* [PATCH] crypto: algif_aead - Allow gcm(aes) for privileged users
@ 2026-11-06  3:41 Walter McKelvie
  2026-11-06  3:49 ` Eric Biggers
  0 siblings, 1 reply; 7+ messages in thread
From: Walter McKelvie @ 2026-11-06  3:41 UTC (permalink / raw)
  To: herbert, davem; +Cc: linux-crypto, ebiggers, Walter McKelvie, stable

iwd (via ell) implements TLS for the EAP-TLS/TTLS/PEAP authentication
methods and uses AF_ALG for the AES-GCM AEAD of the
TLS_*_WITH_AES_{128,256}_GCM_SHA{256,384} cipher suites.  With
af_alg_restrict=1 these suites are silently dropped from the
ClientHello, and authentication fails against RADIUS servers that only
accept GCM suites (common for eduroam deployments).  This contradicts
the stated intent of commit 2f204fe718f5 ("crypto: af_alg - Add
af_alg_restrict sysctl, defaulting to 1"), which was to keep iwd
working under the default restriction level.

iwd runs with CAP_NET_ADMIN, so add gcm(aes) to the privileged part of
the AEAD allowlist, next to ccm(aes) which iwd also uses.

Fixes: 2f204fe718f5 ("crypto: af_alg - Add af_alg_restrict sysctl, defaulting to 1")
Link: https://github.com/NixOS/nixpkgs/issues/583203
Cc: stable@vger.kernel.org
Signed-off-by: Walter McKelvie <walt@mckelvie.org>
---
 crypto/algif_aead.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/crypto/algif_aead.c b/crypto/algif_aead.c
index 5574e2d70539..a5c9e29b64be 100644
--- a/crypto/algif_aead.c
+++ b/crypto/algif_aead.c
@@ -36,6 +36,7 @@
 
 static const struct af_alg_allowlist_entry aead_allowlist[] = {
 	{ "ccm(aes)" }, /* bluez */
+	{ "gcm(aes)" }, /* iwd */
 	{},
 };
 
-- 
2.55.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-11-06  4:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-06  3:41 [PATCH] crypto: algif_aead - Allow gcm(aes) for privileged users Walter McKelvie
2026-11-06  3:49 ` Eric Biggers
2026-11-06  4:07   ` Walter McKelvie
2026-11-06  4:14     ` Eric Biggers
2026-11-06  4:25       ` Walter McKelvie
2026-11-06  4:34         ` [PATCH v2] " Walter McKelvie
2026-11-06  4:39           ` Eric Biggers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox