Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 CFB713F6C4F for ; Wed, 27 May 2026 12:25:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779884753; cv=none; b=e119mrtq1kM9+Dymsnw3b95n784LjWC8DSL8P+790RnViM9vi4eJB7mq9TFICG+rrnwK6o9b0lDcXSEcUD8goQz5oMfktLnfHEiHD3FuMlvHma0VF/P8JSZAC2zXc3h+1d81qPLeDAJHDCgq3I5dTj/tqrllep6vEopxLUf0yZY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779884753; c=relaxed/simple; bh=iAjNI1RAC2OFzNECTWdkhXgVUJle6D1geU9+3GC8/1o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=JmhrV/JSimKiA0eEVVvQvK4GSlWODW9TR7Zvvrg4WaoQbAcKPRYyGMlNdW4aGiRJgQw7t6x/v2HmP/PNHHbGji5giRoBJGkNkBIrvMLCkWn4KdSd58ZtOIzFnFGPT/SkRWHr5AaNRFaOnl7h+Z56wq/JgW9Pt4810zDPwckwm8I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Q87fYB7U; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Q87fYB7U" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2DAFF1F000E9; Wed, 27 May 2026 12:25:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779884751; bh=o+rmvy1jCQYwz0xmlN8gPTd5e+3cN8qdP+5o2VdHIy0=; h=From:To:Cc:Subject:Date:Reply-To; b=Q87fYB7UPtMHOE2A4ItE9U8/XzQF8dLuhoJqogvZslDABMsw29kx9mOeZ88e68Qyu G8EHti+9g69RE4ErGnwo/SoynumZSDvIDUWDc5MOWYdWwIwbVtpnF2akgYfLXt42WO qhkzlpOZrn9zpdWMqspF3R+6trlYI5iAlqV2NlvY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-45959: crypto: ccp - Fix a crash due to incorrect cleanup usage of kfree Date: Wed, 27 May 2026 14:20:01 +0200 Message-ID: <2026052733-CVE-2026-45959-5456@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=2544; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=W8E8FITC9UoGbd7oUYEBwsG5RMnllkg5xJAzRpji8f0=; b=owGbwMvMwCRo6H6F97bub03G02pJDFliDyVXM2t8LJzY5mnhcdn/8pTJYSabVT/zHHhyWOHj0 +NfU9Umd8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEeGYxzHe3KV/M2vSj7/b3 ii92GS4Lt7CuPccwv5Ztft+FBzOWm8Rz7JrhXnrt9qtzGwE= 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: ccp - Fix a crash due to incorrect cleanup usage of kfree Annotating a local pointer variable, which will be assigned with the kmalloc-family functions, with the `__cleanup(kfree)` attribute will make the address of the local variable, rather than the address returned by kmalloc, passed to kfree directly and lead to a crash due to invalid deallocation of stack address. According to other places in the repo, the correct usage should be `__free(kfree)`. The code coincidentally compiled because the parameter type `void *` of kfree is compatible with the desired type `struct { ... } **`. The Linux kernel CVE team has assigned CVE-2026-45959 to this issue. Affected and fixed versions =========================== Issue introduced in 6.17 with commit a71475582ada92ba021852bf3c2b40ab3718549b and fixed in 6.18.14 with commit 9a3ace9b010ffd8c422c97844ae152f7c53d6b18 Issue introduced in 6.17 with commit a71475582ada92ba021852bf3c2b40ab3718549b and fixed in 6.19.4 with commit 90f9090e3e744a8fe3bb6fa0e61f577347728b0b Issue introduced in 6.17 with commit a71475582ada92ba021852bf3c2b40ab3718549b and fixed in 7.0 with commit d5abcc33ee76bc26d58b39dc1a097e43a99dd438 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-45959 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/crypto/ccp/ccp-ops.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/9a3ace9b010ffd8c422c97844ae152f7c53d6b18 https://git.kernel.org/stable/c/90f9090e3e744a8fe3bb6fa0e61f577347728b0b https://git.kernel.org/stable/c/d5abcc33ee76bc26d58b39dc1a097e43a99dd438