Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CED24C433E9 for ; Thu, 11 Mar 2021 12:34:37 +0000 (UTC) Received: from mail.server123.net (mail.server123.net [78.46.64.186]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 32AD664FE9 for ; Thu, 11 Mar 2021 12:34:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 32AD664FE9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dm-crypt-bounces@saout.de X-Virus-Scanned: amavisd-new at saout.de Authentication-Results: mail.server123.net (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:4864:20::431; helo=mail-wr1-x431.google.com; envelope-from=gmazyland@gmail.com; receiver= Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Thu, 11 Mar 2021 13:31:28 +0100 (CET) Received: by mail-wr1-x431.google.com with SMTP id h98so1644559wrh.11 for ; Thu, 11 Mar 2021 04:31:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:message-id:date:user-agent:mime-version; bh=tBQ+l0cx7OO5AeqBIVjO6YrPu38PoT82FNNr52dYe2M=; b=jhhHEzt9Y44wXrgB1eKfVw2px8fp4RGWfk/fL+tDD9CXywZUtLwZDJzCjlUxT94PLB 8hSPEKhGn3J97gIjIIFp+TziTsM8WVvy6BcE+B+jCFAff9BlwfqltIxcC+zuhG7qXdC4 aNKwuXT8G5PhI1nw7VP4jV+Suu1BDdu+GLndn3IjQ1i832AX7X8FRvGXWtauck91JV6H VP9Sudiuu9f79HsgJT2j6HFBNZSL2MY3DzXZb5EOTOMjR2Yo4gfSNXs7U5eDRU3ZnFXI tJrDofo8MuhJ1fbmEybYlNFKqFajOoih4ifIs5Lz6drYpb6+0wkTEcd/5BnYtNkRgeyI fquA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:message-id:date:user-agent :mime-version; bh=tBQ+l0cx7OO5AeqBIVjO6YrPu38PoT82FNNr52dYe2M=; b=gSv+YVyyvf+hj21VbxcGG67SnNC4LXe2T7SJ3yHWDOyHkMZrWJ/W+1WO1ZeHWvNa/Z NtKQ4h7oX5NXoU0xpa84Qsrt/+eoy8sto9iWGWDyWMaqdf8PjNSfIQidmlCjnuqkdSUd qy5koF+kvhxb4dwbR8HA8zSNAhi/R5dXp1L6P2Nm9lMbCJ1eewhk2p0FS1INhO2AYr9m HGhRJEHyAuFEObfyJ48UuoAssWkzFnLrt7KQuA1Z8Xv8O/sRlzoqVTY5wxOnUN2Qz9sS UgAcdPpFyCOktttl9gP+ajPMKnmeyADYTJWVWWOa7jMkXREHOaD5F5mwYL12nZBn2YIu zCOw== X-Gm-Message-State: AOAM530bfh9KFYg3tnGRQycTgE9U7470ipbgxEaK6dg/WnWr0PCFw+D6 IbPSv90SLOjkn57jIMS/8atn+J/amT0= X-Google-Smtp-Source: ABdhPJyTl7WlW2zkZnji1zC5d0EjmzWidE2bZG1fWj2PmNtOQrv7NonIGmWgIyOKfBjpSCgX4+zzCw== X-Received: by 2002:adf:fa41:: with SMTP id y1mr8352154wrr.256.1615465887514; Thu, 11 Mar 2021 04:31:27 -0800 (PST) Received: from [192.168.2.27] (39.35.broadband4.iol.cz. [85.71.35.39]) by smtp.gmail.com with ESMTPSA id g202sm3453850wme.20.2021.03.11.04.31.26 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 11 Mar 2021 04:31:26 -0800 (PST) From: Milan Broz To: dm-crypt Message-ID: Date: Thu, 11 Mar 2021 13:31:19 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 Message-ID-Hash: ZUKW3K3AZHN4VWVITCZDHP7FWGHETBXU X-Message-ID-Hash: ZUKW3K3AZHN4VWVITCZDHP7FWGHETBXU X-MailFrom: gmazyland@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-dm-crypt.saout.de-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.3.2 Precedence: list Subject: [dm-crypt] [ANNOUNCE] cryptsetup 2.3.5 List-Id: List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============6211454699665746706==" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============6211454699665746706== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="tfd0g1jgCJKlZmXPwdMpMd53nVkFebAGt" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --tfd0g1jgCJKlZmXPwdMpMd53nVkFebAGt Content-Type: multipart/mixed; boundary="bgSKfcFUwVZ7EaMVTDRitLW7oGfeZpf2q"; protected-headers="v1" From: Milan Broz To: dm-crypt Message-ID: Subject: [ANNOUNCE] cryptsetup 2.3.5 --bgSKfcFUwVZ7EaMVTDRitLW7oGfeZpf2q Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable The cryptsetup 2.3.5 stable release is available at https://gitlab.com/cryptsetup/cryptsetup Please note that release packages are located on kernel.org https://www.kernel.org/pub/linux/utils/cryptsetup/v2.3/ Feedback and bug reports are welcomed. Cryptsetup 2.3.5 Release Notes =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D Stable bug-fix release with minor extensions. All users of cryptsetup 2.x and later should upgrade to this version. Changes since version 2.3.4 ~~~~~~~~~~~~~~~~~~~~~~~~~~~ * Fix partial reads of passphrase from an interactive terminal. Some stable kernels (5.3.11) started to return buffer from a terminal in parts of maximal size 64 bytes. This breaks the reading of passphrases longer than 64 characters entered through an interactive terminal. The change is already fixed in later kernel releases, but tools now support such partial read from terminal properly. * Fix maximal length of password entered through a terminal. Now the maximal interactive passphrase length is exactly 512 characters (not 511). * integritysetup: support new dm-integrity HMAC recalculation options. In older kernels (since version 4.19), an attacker can force an automatic recalculation of integrity tags by modifying the dm-integrity superblock. This is a problem with a keyed algorithms (HMAC), where it expects nobody can trigger such recalculation without the key. (Automatic recalculation will start after the next activation.) Note that dm-integrity in standalone mode was *not* supposed to provide cryptographic data integrity protection. Despite that, we try to keep the system secure if keyed algorithms are used. Thank Daniel Gl=C3=B6ckner for the original report of this problem. Authenticated encryption that provides data integrity protection (in combination with dm-crypt and LUKS2) is not affected by this problem. The fix in the kernel for this problem contains two parts. Firstly, the dm-integrity kernel module disables integrity recalculation if keyed algorithms (HMAC) are used. This change is included in long-term stable kernels. Secondly, since the kernel version 5.11, dm-integrity introduces modified protection where a journal-integrity algorithm guards superblock; also, journal sections are protected. An attacker cannot copy sectors from one journal section to another, and the superblock also contains salt to prevent header replacement from another device. If you want to protect data with HMAC, you should always also use HMAC for --journal-integrity. Keys can be independent. If HMAC is used for data but not for the journal, the recalculation option is disabled. If you need to use (insecure) backward compatibility implementation, two new integritysetup options are introduced: - Use --integrity-legacy-recalc (instead of --integrity-recalc) to allow recalculation on legacy devices. - Use --integrity-legacy-hmac in format action to force old insecure HMAC format. Libcryptsetup API also introduces flags CRYPT_COMPAT_LEGACY_INTEGRITY_HMAC and CRYPT_COMPAT_LEGACY_INTEGRITY_RECALC to set these through crypt_set_compatibility() call. * integritysetup: display of recalculating sector in dump command. * veritysetup: fix verity FEC if stored in the same image with hashes. Optional FEC (Forward Error Correction) data should cover the whole data area, hashes (Merkle tree), and optionally additional metadata (located after hash area). Unfortunately, if FEC data is stored in the same file as hash, the calculation wrongly used the whole file size, thus overlaps with the FEC area itself. This produced unusable and too large FEC data. There is no problem if the FEC image is a separate image. The problem is now fixed, introducing FEC blocks calculation as: - If the hash device is in a separate image, metadata covers the whole rest of the image after the hash area. (Unchanged behavior.) - If hash and FEC device is in the image, metadata ends on the FEC area offset. Note: there is also a fix for FEC in the dm-verity kernel (on the way to stable kernels) that fixes error correction with larger RS roots. * veritysetup: run FEC repair check even if root hash fails. Note: The userspace FEC verify command reports are only informational for now. Code does not check verity hash after FEC recovery in userspace. The Reed-Solomon decoder can then report the possibility that it fixed data even if parity is too damaged. This will be fixed in the next major release. * veritysetup: do not process hash image if hash area is empty. Sometimes the device is so small that there is only a root hash needed, and the hash area is not used. Also, the size of the hash image is not increased for hash block alignment in this case. * veritysetup: store verity hash algorithm in superblock in lowercase. Otherwise, the kernel could refuse the activation of the device. * bitlk: fix a crash if the device disappears during BitLocker scan. * bitlk: show a better error when trying to open an NTFS device. Both BitLocker version 1 and NTFS have the same signature. If a user opens an NTFS device without BitLocker, it now correctly informs that it is not a BITLK device. * bitlk: add support for startup key protected VMKs. The startup key can be provided in --key-file option for open command. * Fix LUKS1 repair code (regression since version 1.7.x). We cannot trust possibly broken keyslots metadata in repair, so the code recalculates them instead. This makes the repair code working again when the master boot record signature overwrites the LUKS header. * Fix luksKeyChange for LUKS2 with assigned tokens. The token references are now correctly assigned to the new keyslot number. * Fix cryptsetup resize using LUKS2 tokens. Code needlessly asked for passphrase even though volume key was already unlocked via LUKS2 token. * Print a visible error if device resize is not supported. * Add error message when suspending wrong non-LUKS device. * Fix default XTS mode key size in reencryption. The same luksFormat logic (double key size because XTS uses two keys) is applied in the reencryption code. * Rephrase missing locking directory warning and move it to debug level. The system should later provide a safe transition to tempdir configuration, so creating locking directory inside libcryptsetup call is safe. * Many fixes for the use of cipher_null (empty debug cipher). Support for this empty cipher was intended as a debug feature and for measuring performance overhead. Unfortunately, many systems started to use it as an "empty shell" for LUKS (to enable encryption later). This use is very dangerous and it creates a false sense of security. Anyway, to not break such systems, we try to support these configurations. Using cipher_null in any production system is strongly discouraged! Fixes include: - allow LUKS resume for a device with cipher_null. - do not upload key in keyring when data cipher is null. - switch to default cipher when reencrypting cipher_null device. - replace possible bogus cipher_null keyslots before reencryption. - fix broken detection of null cipher in LUKS2. cipher_null is no longer possible to be used in keyslot encryption in LUKS2, it can be used only for data for debugging purposes. * Fixes for libpasswdqc 2.0.x (optional passphrase quality check). * Fixes for problems discovered by various tools for code analysis. Fixes include a rework of libpopt command line option string leaks. * Various fixes to man pages. --bgSKfcFUwVZ7EaMVTDRitLW7oGfeZpf2q-- --tfd0g1jgCJKlZmXPwdMpMd53nVkFebAGt Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEKikYJD/eRmSNBob52bBXe9k+mPwFAmBKDZcACgkQ2bBXe9k+ mPxG8xAAmyvFhj5lmkWgJK1BpZYIjbZ6VPdNBoeYdsreLrqm7muSLk/lvaYnVudo ++rvX3wEcBXbxssScUYRUKIwW0Y2DzxJczukNKnvMNTi0q2c6RXffKhi344Rd4av VnwO34Pnq5uDIrwaarow8f4gi+/9Mntw8Ml45WYqWS1TyOwEhdqnO3qBeUcOOLIA W+pMHHt1XZJR6aadQxde6bgcWhSLofQnKpNjhyFa8mvvgrLH6oMTz5D7bwKHF3+v RZD0gCzYivvodrN9ZTeRZ7ggTLWFFIdmKyxtraQmM/+bFgOR7vm8CAGJZ735PG/a BYXOc74sf2quneC+qWmi1VfCzZU3qrZXgJUEOslVLx3ri+ucEDSU6IeZ8d//W+rh JyIemRp5dU5v/mBRvG1XBzq5JUoz1JQmmwPqOXiIrj6ydEWQ2ofJf1nJ3shdejn9 3R/zoGOhAhRpriXplVmLoepPHjWtvygyOX9lsas0vL78qDxlE1C02B8eMXppxcp/ mwWVUM9Vsctcq0VHOjc+RiqrF3sC0RZknO8wC/KkFeQ6JQd0Dc0i9oYeAT/R9RA+ QZ2kcDW5dWwtF4DiJC+SGRONTsxIoNOvxPL15898iV1NgdNy6fvg1KsHgdb3WD0l 9Yq+HFZUYxjQ5OYS+3mGKA6HjsVsLA+bJ3DvoCwHregrrH/anh0= =yHbT -----END PGP SIGNATURE----- --tfd0g1jgCJKlZmXPwdMpMd53nVkFebAGt-- --===============6211454699665746706== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dm-crypt mailing list -- dm-crypt@saout.de To unsubscribe send an email to dm-crypt-leave@saout.de --===============6211454699665746706==--