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 35D473BED6E for ; Fri, 1 May 2026 13:57:12 +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=1777643832; cv=none; b=S+y2K0ZYhj6GqOL2nVuz4yn2Q5TlWStMOUh3zCDBRZLPDvrt8zL6vjxUIEfNrnr9Xw+lQZfg25/htZVZcOLzxnYo4w6BYBExwDd8dYluXqysbyR3AxMjiOqsn1UBtPzxbMjD+YhuURmyqv6IcxwcASuHzAHmNJTeOpNfpMqYeu8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777643832; c=relaxed/simple; bh=T6NZ9TZ3XH/3VfaqoTFSikoyLYvIMksadHl7B6lGpGE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RguK2eI4zDTv9dEKbF3/RP6i4t/TnfqOT2sNhQCLyvzQCV+CUbSlU9iX2CZaqwcvZJePSh5Fb0u/ztb/N0O3WZP2qJBlKCp3dryOxGkmlYzw89kYcwjFYDFWrEh+fptyGrwtipMSny3JrcrD/no5l8a/6T81BrXenJeBKqvKjvY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=lJcA1Kmr; 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="lJcA1Kmr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C64F7C2BCB9; Fri, 1 May 2026 13:57:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777643832; bh=T6NZ9TZ3XH/3VfaqoTFSikoyLYvIMksadHl7B6lGpGE=; h=From:To:Cc:Subject:Date:Reply-To:From; b=lJcA1Kmr8fs5hatcjwfXM2IJvnkjp+ucbV4y1RP61TtZ5Z36kRULv/HmXirKU0w+K LhByU9AIM28BMLcuDA9vxcOkif+fvcGevdtgJDR+WNb3oieQeC3E6dJ/nIRbrOtgE6 lp0ozfng8Fr4I8tEbCMgDwINGK0TN2pDv1TTabZA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31719: crypto: krb5enc - fix async decrypt skipping hash verification Date: Fri, 1 May 2026 15:56:41 +0200 Message-ID: <2026050125-CVE-2026-31719-3da7@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3088; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=OgzWSs+zjwis/Gpl5HhdFp47WX4Avji5vfSN3+JEEA8=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlfNnLe2L8mb8rJt6+v3swzcr9dahD8cda6k4oFOzcZx opY9mmv6IhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJfKhimB+iNIVhxe3H+0Of 3XY/v1k2tCz5rwfDHE7TZ0d5XV301v4omhhn8iB5u6hIGwA= 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: krb5enc - fix async decrypt skipping hash verification krb5enc_dispatch_decrypt() sets req->base.complete as the skcipher callback, which is the caller's own completion handler. When the skcipher completes asynchronously, this signals "done" to the caller without executing krb5enc_dispatch_decrypt_hash(), completely bypassing the integrity verification (hash check). Compare with the encrypt path which correctly uses krb5enc_encrypt_done as an intermediate callback to chain into the hash computation on async completion. Fix by adding krb5enc_decrypt_done as an intermediate callback that chains into krb5enc_dispatch_decrypt_hash() upon async skcipher completion, matching the encrypt path's callback pattern. Also fix EBUSY/EINPROGRESS handling throughout: remove krb5enc_request_complete() which incorrectly swallowed EINPROGRESS notifications that must be passed up to callers waiting on backlogged requests, and add missing EBUSY checks in krb5enc_encrypt_ahash_done for the dispatch_encrypt return value. Unset MAY_BACKLOG on the async completion path so the user won't see back-to-back EINPROGRESS notifications. The Linux kernel CVE team has assigned CVE-2026-31719 to this issue. Affected and fixed versions =========================== Issue introduced in 6.15 with commit d1775a177f7f38156d541c8a3e3c91eaa6e69699 and fixed in 6.18.25 with commit 07cbb1bd424370671814a862913c99a6e1441588 Issue introduced in 6.15 with commit d1775a177f7f38156d541c8a3e3c91eaa6e69699 and fixed in 7.0.2 with commit e51f42114abbdf47f29dda43e7826be28907fcd2 Issue introduced in 6.15 with commit d1775a177f7f38156d541c8a3e3c91eaa6e69699 and fixed in 7.1-rc1 with commit 3bfbf5f0a99c991769ec562721285df7ab69240b 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-2026-31719 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/krb5enc.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/07cbb1bd424370671814a862913c99a6e1441588 https://git.kernel.org/stable/c/e51f42114abbdf47f29dda43e7826be28907fcd2 https://git.kernel.org/stable/c/3bfbf5f0a99c991769ec562721285df7ab69240b