Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2DFB9152187 for ; Wed, 3 Apr 2024 17:32:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712165561; cv=none; b=gL3CirCeCGIPZn6GQB28xmjEA/PSdrKGQYAQYzqmlndCEVcMACGPYKFhUm+m7ww7zvnkucA5T7EoJ/Yf92959zn94BFht6cphhqSzOWz0I0UwwoMNskI34AKw2CMSVaEhgk+w6q1bZw5uMunwVzuSO7ZIodNMHlm/rqzLc1NINA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712165561; c=relaxed/simple; bh=qiZyaYKiWWfd8fcmxVQS+2O/+idaozgrsD78BHuNhY8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tSXJotFXA6QR6jvXOQ4vOx1ORS2/IhvZpLn5Dqr0jzjL36YBsfCuwT+3/lFwZBIFod9uk6AtLzCLnnGcx61f9rNozXmWkh4oN9QRAynn66lzGqntlZmzP5uTVwmk3E5rGG6t4oyKUaR11szg7UFHJ9ZFUQ9n8Dpegf57m/zjiQM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RlaiXR/Q; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="RlaiXR/Q" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3672DC43390; Wed, 3 Apr 2024 17:32:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1712165560; bh=qiZyaYKiWWfd8fcmxVQS+2O/+idaozgrsD78BHuNhY8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=RlaiXR/QKghhUB5HSoTqDw5sLogr2oTlwpbO61UygDS7JusDQhhDdCQz0YUfRfJ/E bKdv61iLRK34jHb7gi7kwVdQM9Cyk/3UaVEx7fWZtd8Ca8LY5F1zA5PomDsZ9zMkVt hWgcBljssnsxI7a3NcVyYi/aLE6koF8fPyhL7k7g= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26763: dm-crypt: don't modify the data when using authenticated encryption Date: Wed, 3 Apr 2024 19:31:30 +0200 Message-ID: <2024040305-CVE-2024-26763-4627@gregkh> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2742; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=qiZyaYKiWWfd8fcmxVQS+2O/+idaozgrsD78BHuNhY8=; b=owGbwMvMwCRo6H6F97bub03G02pJDGm8kyK50rrtS5I5d9pUdtu/irTbv9Pi1/zWfr39Mxbbm HBtFmjuiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIn0T2BYsK1L+3zJh6LoGUWu fU/3yYitmHY1kmF+uN2e1ZudzKPaxZU/CscdOGlpOV8dAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: dm-crypt: don't modify the data when using authenticated encryption It was said that authenticated encryption could produce invalid tag when the data that is being encrypted is modified [1]. So, fix this problem by copying the data into the clone bio first and then encrypt them inside the clone bio. This may reduce performance, but it is needed to prevent the user from corrupting the device by writing data with O_DIRECT and modifying them at the same time. [1] https://lore.kernel.org/all/20240207004723.GA35324@sol.localdomain/T/ The Linux kernel CVE team has assigned CVE-2024-26763 to this issue. Affected and fixed versions =========================== Fixed in 4.19.308 with commit 43a202bd5529 Fixed in 5.4.270 with commit 0dccbb93538f Fixed in 5.10.211 with commit 3c652f6fa1e1 Fixed in 5.15.150 with commit 1a4371db68a3 Fixed in 6.1.80 with commit e08c2a8d27e9 Fixed in 6.6.19 with commit 64ba01a36598 Fixed in 6.7.7 with commit d9e3763a505e Fixed in 6.8 with commit 50c70240097c Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2024-26763 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/md/dm-crypt.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/43a202bd552976497474ae144942e32cc5f34d7e https://git.kernel.org/stable/c/0dccbb93538fe89a86c6de31d4b1c8c560848eaa https://git.kernel.org/stable/c/3c652f6fa1e1f9f02c3fbf359d260ad153ec5f90 https://git.kernel.org/stable/c/1a4371db68a31076afbe56ecce34fbbe6c80c529 https://git.kernel.org/stable/c/e08c2a8d27e989f0f5b0888792643027d7e691e6 https://git.kernel.org/stable/c/64ba01a365980755732972523600a961c4266b75 https://git.kernel.org/stable/c/d9e3763a505e50ba3bd22846f2a8db99429fb857 https://git.kernel.org/stable/c/50c70240097ce41fe6bce6478b80478281e4d0f7