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 EBA8025F98B for ; Wed, 24 Dec 2025 10:37:22 +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=1766572644; cv=none; b=sCx0Kdxw3H6maTtGSOG782usf1B+Wzw+gYdcZLAA7UVck+52L1QWQc8I9F15+NHWcLTB9yA508n6nGdWZL7G+n4knVjeijl+e+Bm/2vG64z6iRmFfbyUXFvP7QQvo6G8rm/ayRJaYifpdC4aJ6UgKMarRRVrG36oGECpCUHG80M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766572644; c=relaxed/simple; bh=Ccbs1k/hMdajpvgql0fir0T/1Ijw7OdqrNeyTa6sUI0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=P46ZFrXcWd+cl4CGT6wVZOoy6yDXGCihwUH0J0r0TxXQ1JOmHPlZdQYcZuvOYKNeL7sXhWANOux1uK0Ot+7jtCLS5Q9CUls2JG15g4LS9Q+OI9P88tBwWyt6j+EULjAlgIZYo4csltLKhJk0jPaQjE5ezSQpicD0lrjQuTAmKrc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=LU0JlPXV; 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="LU0JlPXV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 15DBFC4CEFB; Wed, 24 Dec 2025 10:37:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766572642; bh=Ccbs1k/hMdajpvgql0fir0T/1Ijw7OdqrNeyTa6sUI0=; h=From:To:Cc:Subject:Date:Reply-To:From; b=LU0JlPXVivAJ+ObeyRZzVhnM2Fe/VuHMF/2sfwXV4wWbuiHnNtrqAaTAGFbyrh1Xm lJY1eTLA1manaM43/p+9jT1JH8Z7u1ABofeegvMMJXp5aw0TZ0E8iEujBirQ6mwhyD yicndkjL8DnllJk6EH0Bca0gFcmMyfcxiPT3MXXo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68724: crypto: asymmetric_keys - prevent overflow in asymmetric_key_generate_id Date: Wed, 24 Dec 2025 11:35:26 +0100 Message-ID: <2025122404-CVE-2025-68724-4d3c@gregkh> X-Mailer: git-send-email 2.52.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=2658; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Y/Xcm/LodnBI+32554lBXkzB/zEKjBSwJra98Uow/9U=; b=owGbwMvMwCRo6H6F97bub03G02pJDJneB2+IlzCkvg7I03lcLvpgSqQFnwLTo6mHvWXtMpScg 9ZtOVfbEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABO5oMEwhztHT1yxeaOOFN/y z8+TT2XmHH33l2F+Gluju3//t018z5VdLD7eFQv5tHc7AA== 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: asymmetric_keys - prevent overflow in asymmetric_key_generate_id Use check_add_overflow() to guard against potential integer overflows when adding the binary blob lengths and the size of an asymmetric_key_id structure and return ERR_PTR(-EOVERFLOW) accordingly. This prevents a possible buffer overflow when copying data from potentially malicious X.509 certificate fields that can be arbitrarily large, such as ASN.1 INTEGER serial numbers, issuer names, etc. The Linux kernel CVE team has assigned CVE-2025-68724 to this issue. Affected and fixed versions =========================== Issue introduced in 3.18 with commit 7901c1a8effbe5f89673bfc09d6e37b8f334f1a7 and fixed in 6.12.63 with commit c73be4f51eed98fa0c7c189db8f279e1c86bfbf7 Issue introduced in 3.18 with commit 7901c1a8effbe5f89673bfc09d6e37b8f334f1a7 and fixed in 6.17.13 with commit 6af753ac5205115e6c310c8c4236c01b59a1c44f Issue introduced in 3.18 with commit 7901c1a8effbe5f89673bfc09d6e37b8f334f1a7 and fixed in 6.18.2 with commit b7090a5c153105b9fd221a5a81459ee8cd5babd6 Issue introduced in 3.18 with commit 7901c1a8effbe5f89673bfc09d6e37b8f334f1a7 and fixed in 6.19-rc1 with commit df0845cf447ae1556c3440b8b155de0926cbaa56 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-68724 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/asymmetric_keys/asymmetric_type.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/c73be4f51eed98fa0c7c189db8f279e1c86bfbf7 https://git.kernel.org/stable/c/6af753ac5205115e6c310c8c4236c01b59a1c44f https://git.kernel.org/stable/c/b7090a5c153105b9fd221a5a81459ee8cd5babd6 https://git.kernel.org/stable/c/df0845cf447ae1556c3440b8b155de0926cbaa56