Path: csiph.com!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!news.dns-netz.com!news.freedyn.net!aioe.org!bofh.it!news.nic.it!robomod From: Ard Biesheuvel Newsgroups: linux.debian.kernel Subject: Re: please consider disabling obsolete crypto in 5.10 and later Date: Sat, 06 Feb 2021 00:10:01 +0100 Message-ID: References: X-Mailbox-Line: From debian-kernel-request@lists.debian.org Fri Feb 5 23:03:10 2021 Old-Return-Path: X-Amavis-Spam-Status: No, score=-7.451 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DIGITS_LETTERS=1, DKIMWL_WL_HIGH=-0.351, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FOURLA=0.1, MD5_SHA1_SUM=-1, RCVD_IN_DNSWL_HI=-5] autolearn=ham autolearn_force=no X-Policyd-Weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 CL_IP_EQ_FROM_MX=-3.1; rate: -4.6 Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612565157; bh=RsJGw9NapDqUR5uL6DmOqgVW58gDh8RaS+Nxs1v5YCo=; h=References:In-Reply-To:From:Date:Subject:To:From; b=aMk0ahiV+AHW1Sgxc4gjXHt7MFWUfxrKJTfv+M0y9YncVQ2pXSuB0hva6xlSsQB/R m9RKFIa3bjb+2sAGSBHLx4fuXDv1ku5jz4rI+BuyW7BWOktBh700CTdYmlzNEmvyEh v8Dsf3ipQv6WUQ2UUDxzKzRW/RWgSswkJiLdC1Vm1PLWEr3Qu7Rt17jfk32BuuwE/w 3aDfbODsOUNR2HuhpeEn29yLdpA2iqP10GyvMh7HA2KPZAvaPrbchdeHWuYWylCnZs yh/gTBacIXD2s0nXC3W96JvdMbFheBUCV3m2yKV8gIsCcKrwBcHTxJuPvKvkYAQ3AO pXEBhoSfFvuxg== X-Gm-Message-State: AOAM532OsmYhJE08Z37kd9NFeF1TRdVPZcFGmHSmTk1LkvnEhrJNzyx2 IRs/SvbO7+SrafVffLxDknUN+VI+wZ7w+juALgA= X-Google-SMTP-Source: ABdhPJyod3vJ2EO3YJRg4W4VYHWJZoQP8ufrap9akRzkdCtS8EVfQ1qoA2UfCcp5IPkPtMyuenX2zJ0OgRJdKpuFaU0= X-Received: by 2002:a05:6830:1614:: with SMTP id g20mr4913034otr.77.1612565156794; Fri, 05 Feb 2021 14:45:56 -0800 (PST) MIME-Version: 1.0 X-Gmail-Original-Message-ID: Content-Type: text/plain; charset="UTF-8" X-Mailing-List: archive/latest/126804 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/CAMj1kXFQUMLF5qpjvG06oDHNpeRsnEy-DkiVzqZ=nTLj-cWtUQ@mail.gmail.com Approved: robomod@news.nic.it Lines: 50 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Fri, 5 Feb 2021 23:45:45 +0100 X-Original-Message-ID: X-Original-References: Xref: csiph.com linux.debian.kernel:69443 On Mon, 1 Feb 2021 at 22:21, Salvatore Bonaccorso wrote: > > Hi Ard, > > On Sat, Jan 30, 2021 at 04:41:16PM +0100, Ard Biesheuvel wrote: > > L.S., > > > > This is a request to consider disabling obsolete crypto in 5.10 and > > later Debian builds of the Linux kernel on any architecture. > > > > We are all familiar with the rigid rules when it comes to not breaking > > userspace by making changes to the kernel, but this rule only takes > > effect when anybody notices, and so I am proposing disabling some code > > downstream before removing it entirely. > > > > 5.10 introduces a new Kconfig symbol > > > > CONFIG_CRYPTO_USER_API_ENABLE_OBSOLETE > > > > which is enabled by default, but depends on support for the AF_ALG > > socket API being enabled. In turn, block ciphers that are obsolete and > > unlikely to be used anywhere have been made to depend on this new > > symbol. > > > > This means that these obsolete block ciphers will disappear entirely > > when the AF_ALG socket API is omitted, but we can get rid of these > > block ciphers explicitly too, by not setting the new symbol. I.e., > > adding > > > > # CONFIG_CRYPTO_USER_API_ENABLE_OBSOLETE is not set > > > > to the kernel configs. Note that Fedora have already done so in release 33 [0] > > > > The block ciphers in question are RC4, Khazad, SEED, and > > TEA/XTEA/XETA, none of which are used by the kernel itself, or known > > to be used via the socket API (although a change was applied to > > iwd/libell recently to get rid of an occurrence of RC4 - this change > > has already been pulled into bullseye afaik) > > > > Note that this is not a statement on whether these algorithms are > > secure or not -there is simply no point in carrying and shipping code > > that nobody uses or audits, but which can be autoloaded and exercised > > via an unprivileged interface. > > FTR (posteriori), we tried that in > https://salsa.debian.org/kernel-team/linux/-/commit/633e1992f7d915c22b2a2adea87981e7503bb737 > (and is in the 5.10.12-1 upload to unstable). > Confirmed, thanks.