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 7907A307AFC for ; Fri, 24 Oct 2025 11:44:45 +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=1761306285; cv=none; b=mZkJGmxkTbRyS5NyLjg/qINxIFXKyzGilfwsU/Ufo92OFb7bpxaoXQ+rUEbYM+6hYQPINYV+v/piFpIlw6kR7pXajI8GieKiFB88OdiTAxRA3RHOGvePb2ubHgv/8fPFfUwYCTYjVXBnkM39ujiu7ksFhDYDg2yz23G+4IKpcpk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761306285; c=relaxed/simple; bh=7RfjQFs6Iecd2CivY6IjfQM4oBot3PVLTkZQutQV2hA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SMgWSlhDchHSdvzk8+nLjQOBZlFwBDyBE4Oi1LqPbSU0L/5K3qmxgBrShhTUL2/JrxO2goQtX+Aj9OjjTkG0oegh2bHBchOwsBpKUbwP+prD/pTZTN78qfB+Vj9SLkekUgfj3dHjoVn6Zt7yoj9UhVYn8asNOhXVKuseghdGDeo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=DX3IKzZZ; 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="DX3IKzZZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B4DDFC4CEF5; Fri, 24 Oct 2025 11:44:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1761306285; bh=7RfjQFs6Iecd2CivY6IjfQM4oBot3PVLTkZQutQV2hA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=DX3IKzZZwjlcKTvYthjm/RLsZ2CMGfYQ6OjnmrdDTFN5j0DtZMHiHxWh+KYhSlw0T 0lVxaXdtyBrvTr7U8Gj467JQn/0Q5ea835E46qxBjQcqY486Q0MNI1rYs6kYpb5ySg 5Jpzds7oEKchakATdxhpMYLTABSDcTwIXY3VHcNE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40019: crypto: essiv - Check ssize for decryption and in-place encryption Date: Fri, 24 Oct 2025 13:44:35 +0200 Message-ID: <2025102433-CVE-2025-40019-a8e7@gregkh> X-Mailer: git-send-email 2.51.1 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=2799; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=BMNZ0nkuuSTqrkzK8SY86SnXzlsjIW/5O1KqQDnHQ1E=; b=owGbwMvMwCRo6H6F97bub03G02pJDBm/0xZar8t98q7rXurjzZlrF6/psbkSOfvxQcVdhWLfV /u4Jfd86IhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJyHoxLFj3W/vJ298nDp30 D5Jb0xBx+napRznDPHtG98RnaZbz1e+8sr3YUjXTVEXEAgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: crypto: essiv - Check ssize for decryption and in-place encryption Move the ssize check to the start in essiv_aead_crypt so that it's also checked for decryption and in-place encryption. The Linux kernel CVE team has assigned CVE-2025-40019 to this issue. Affected and fixed versions =========================== Issue introduced in 5.4 with commit be1eb7f78aa8fbe34779c56c266ccd0364604e71 and fixed in 5.15.195 with commit df58651968f82344a0ed2afdafd20ecfc55ff548 Issue introduced in 5.4 with commit be1eb7f78aa8fbe34779c56c266ccd0364604e71 and fixed in 6.1.157 with commit 248ff2797ff52a8cbf86507f9583437443bf7685 Issue introduced in 5.4 with commit be1eb7f78aa8fbe34779c56c266ccd0364604e71 and fixed in 6.6.113 with commit f37e7860dc5e94c70b4a3e38a5809181310ea9ac Issue introduced in 5.4 with commit be1eb7f78aa8fbe34779c56c266ccd0364604e71 and fixed in 6.12.54 with commit dc4c854a5e7453c465fa73b153eba4ef2a240abe Issue introduced in 5.4 with commit be1eb7f78aa8fbe34779c56c266ccd0364604e71 and fixed in 6.17.4 with commit da7afb01ba05577ba3629f7f4824205550644986 Issue introduced in 5.4 with commit be1eb7f78aa8fbe34779c56c266ccd0364604e71 and fixed in 6.18-rc1 with commit 6bb73db6948c2de23e407fe1b7ef94bf02b7529f 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-2025-40019 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: crypto/essiv.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/df58651968f82344a0ed2afdafd20ecfc55ff548 https://git.kernel.org/stable/c/248ff2797ff52a8cbf86507f9583437443bf7685 https://git.kernel.org/stable/c/f37e7860dc5e94c70b4a3e38a5809181310ea9ac https://git.kernel.org/stable/c/dc4c854a5e7453c465fa73b153eba4ef2a240abe https://git.kernel.org/stable/c/da7afb01ba05577ba3629f7f4824205550644986 https://git.kernel.org/stable/c/6bb73db6948c2de23e407fe1b7ef94bf02b7529f