From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f181.google.com (mail-qk1-f181.google.com [209.85.222.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A41DE3D7D8C for ; Mon, 4 May 2026 12:58:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777899525; cv=none; b=VhriP31GVo0nOmp500YMyTwO+a6X+PkJiX3bz8YC+/2/ju68EmHo4bdpPttIwSzzNqe6DRzvjWQ1OSgZiIAWliN8V1/Zhzg23jQ30xJmZlumLG53dFMrbIsEm41kWpen45ubc/Y+0VOv+SvF54NPnTOHuDlnVHClwWz33KZd/Ro= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777899525; c=relaxed/simple; bh=NmoK00K18ee0KWR0BRNW6Sy1q35LGoXy6wYg8Lac6Ro=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=PddRpRWJGlXTYI+t0Q2eXXJhDql1aQn1636QojDNnSQuOT04QCbyS7EGqB4fkY8uaWO/AG7WMPTZrRpl/i8BPkSB2kdXWLFcnj6bLllvxH/QFCiY7MjFB4a1EQhAp6hwDhPT8NuFCtEl+X2JwcedZIR054NH73VYiK4pEmjSjGw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=jGxgXcMF; arc=none smtp.client-ip=209.85.222.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="jGxgXcMF" Received: by mail-qk1-f181.google.com with SMTP id af79cd13be357-8d736211595so272184585a.0 for ; Mon, 04 May 2026 05:58:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1777899523; x=1778504323; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Ypd1QBD8IL5nEI5wKW5JxIvcEM/x3rJY8yhwAEDZ758=; b=jGxgXcMFQYkTOXfAZCzIdJyr2IXdpGEw92l5CjA9XZNUnMhxhXH/LYIPsmMOl2FYhl X7CgKOkL3SKD/83wujPXWnPASXjH0uFdb+SDexSlkXLswQiJFe8kzjjYAhd9UdK3ptxq H2x/bX+WAxMkh0AGMpEYK/v+8L2NO/NIEeUAV5WYvFtJThvZh6Tw+dUQEgCS92ismGws a6XriNoomevi8IIYK3rpMwysiky28dnzQZC8hm80kuO8cJ2WG0MqgvLcGJqdO3+/PN/i XBf2p4yUMwEygnaB23AU5PMkqXQlOjGFnn7a/tpExw3e507jE+WW4wB3B4fA/VBpTtLx PFJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777899523; x=1778504323; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Ypd1QBD8IL5nEI5wKW5JxIvcEM/x3rJY8yhwAEDZ758=; b=qSJ6AtQ5NwFlvx3PQbZ0v7aaeG+bpx/LoLOS7nXcqhQCk3TfzHg8jRCvs/3IXetX7k Xe9I+iAkYUSLpGQJFTnRHNdk/BWpDkcqnRCXnYpMlViDp/t6tnFW9n0J3ccrQkrJTlUj dWk/IlcgW+pz/iFEaS7YhZmjaIVI5S9At7hGdldK/Sq4tyNFqrMYJldKdl+aCgE6uYAZ HQNwSyCjn0O2gVnry5jRW2YXweGlzQHEskAIl366m0/DrZEnCsy/1gbTCt27L9cgnJMe bSNYTDY2YgVGG6eTNCu2cEVaknmmvJxLQEp6+J4lu82IX3sKW5skJEAgVfGOV0Pm9d13 mnow== X-Forwarded-Encrypted: i=1; AFNElJ/lADHuswBHO/tWByHVLMghJMCQkwdk5Fuy0CIIVtIB2xdR2Md2P5T33RXhlsFmsezY4a6aXGzEB9M9YgM=@vger.kernel.org X-Gm-Message-State: AOJu0Yw2krjtntogWByohY66FaRMUJ9JSPNdp8obV5BsWVpNszRtyiuo uW0XNvsQ8kDw0ndUiGe+yWFNMNHT5m/4UBA8Tqo+Xd7oFYg894TC7taUkA1O1g== X-Gm-Gg: AeBDievGBKRkeExY4F+6Ugx0VH1GYf+usm7Q/7BXEb6ba68V8tq+xllChQ4BHCBjZp0 huNyev0kIS2wP1wzsvhn8aOOYMbKguk9z5YYOevBjJfbz2ZzGKCJPJM1KY3LwF13JNWix2Q6tFe uTnzzI34sC3nc476sloBwtPnPPnWzkxbDVjCJUweYsz/dGbhE4fnMOP7eWcomAnm+ke2p73kWQl /LjEDu+q4BQdfJ4Hk3/HhylQNpeIeez7nzQnzAztuIjnXerZROM3ezpPYVBffVoOWSC2BFnUCvf 6hOHZ7fCppMpS5lCClxEQ/1Eg6EJm+xTeZq0oDn4UtgP6E7mjVay81tqxKp8FSDM7nmK3hlA3nh rMBp98xLpQI/v24DiNf5gKN5FbiRosutWP0jvcDB+RUJylzv2mnKfU8HGrm3gm0HqVrYTpJmp/c NI1l8mE2r6dfMOLRwmplZblukNGwdAaKPuuptgK9AzZHV5Hzm6z5/ohQXh0AVM8KC8oUoCPLEsW eqHwAw= X-Received: by 2002:a05:620a:4010:b0:8ed:c0bf:2c24 with SMTP id af79cd13be357-8fd19122e53mr1413514585a.62.1777899522542; Mon, 04 May 2026 05:58:42 -0700 (PDT) Received: from [10.100.121.202] ([152.193.78.90]) by smtp.gmail.com with ESMTPSA id af79cd13be357-8fc2c91cd7dsm1031615585a.37.2026.05.04.05.58.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 04 May 2026 05:58:42 -0700 (PDT) Message-ID: Date: Mon, 4 May 2026 05:58:39 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Complete list of AF_ALG algorithms used by iwd To: Eric Biggers , iwd@lists.linux.dev, Marcel Holtmann Cc: linux-crypto@vger.kernel.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, Demi Marie Obenour References: <20260504045007.GA2289@sol> Content-Language: en-US From: James Prestwood In-Reply-To: <20260504045007.GA2289@sol> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi Eric, On 5/3/26 9:50 PM, Eric Biggers wrote: > With AF_ALG being on its way out due to its frequent vulnerabilities, > iwd will need to be fixed to follow the standard practice of using > userspace crypto code (for example, libcrypto) instead. In the mean > time, AF_ALG is at least going to need to be hardened by removing > unnecessary functionality, for example unnecessary algorithms. > > Based on the iwd and libell source code, it appears iwd is relying on > the following algorithm names from AF_ALG. Please confirm that this > list is correct and that these are the ones we need to keep for iwd: > > cmac(aes) > hmac(md5) > hmac(sha1) > hmac(sha224) > hmac(sha256) > hmac(sha384) > hmac(sha512) > md4 > md5 > sha1 > sha224 > sha256 > sha384 > sha512 > ecb(aes) > cbc(aes) > ctr(aes) > ecb(des) > cbc(des) > cbc(des3_ede) This looks correct from IWD's standpoint, but ELL does support additional checksums: - sha3-224 - sha3-256 - sha3-384 - sha3-512 - hmac(sha3-224) - hmac(sha3-256) - hmac(sha3-384) - hmac(sha3-512) Marcel may be able to comment on what projects are using these, if any. > > Also, does iwd always hold CAP_NET_ADMIN? We're also considering adding > a privilege check to AF_ALG. (It's TBD whether it would be > unconditional or controlled by a sysctl.) Yes we require CAP_NET_ADMIN: https://git.kernel.org/pub/scm/network/wireless/iwd.git/tree/src/iwd.service.in#n15 Thanks, James > > - Eric