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 3F9173DDDA1 for ; Wed, 27 May 2026 12:22:41 +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=1779884562; cv=none; b=S3FxiAj/ChOo2rSJ2gddCu+4kAojl8MKZlF6q2qPwbjOaKWo+ej2z5NCKdXoJU0OAZW9dQjB7ggNndLqSTIzh+7lGeYpmF1DoZP47EyPCmxcHCJdoC6xyAv7BUtXKA0gwq8E+PLq+nSsQ495fk0V3wnI/m0y2C5xrwxW/InH5y0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779884562; c=relaxed/simple; bh=Wmuu7ZD4TJGHMc0hAzVrmvRc/QinPh3ieDmZHs/7MSI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=phmhEVXZ4CTGcTBCobS4wiTf7q/OC7Q4KN3wPTrkH5ffEac5c4d21RLRkhNXTKbVoIkhV5ByFeXvqqqn7nfTfDsjOdARzF4ZKHnOeyYNC5Oz4ZVRheXr/ngNBCloU2dakH/Y5ba/UUWN0iPk+fSxoE4AWyFe8eP530sJTmaw11I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=y5r5+GTR; 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="y5r5+GTR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8C4F71F000E9; Wed, 27 May 2026 12:22:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779884561; bh=d57/wQZ0TlQwjk0XHOXEQaDx6BIeKy2VK9laI7pvxVk=; h=From:To:Cc:Subject:Date:Reply-To; b=y5r5+GTR+NBRdFJk8oVST+i6eQCrHSCiRAUMWrciBwLb7by+jWQlrZioCX/uVDZW+ b043yFtqJbt9Woy4Kn2d5dbVKb+uhcnbDTbk44mHexHRaE2n8KW9Hd44NmKJFPWmFR R8+F9VFq/B3IGNQj442sNmiOBWSTjxMzh5DaXxFI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-45900: crypto: caam - fix netdev memory leak in dpaa2_caam_probe Date: Wed, 27 May 2026 14:19:02 +0200 Message-ID: <2026052719-CVE-2026-45900-f587@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=3186; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=tl9UFxubq8mQCX4HBxdc85ICtVCFhtv9rxotemLJtCE=; b=owGbwMvMwCRo6H6F97bub03G02pJDFliD7n59nSIaehbzZu8tvL+ry1Jl29nLwgxfpzG42CZf 2ffNK5/HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCReR0MC87eV3+gwTjjRsAk lwrJ87mvnk6ceI1hnvqPDp0rfDVcCp9j7ty/rrKlJ6DbEwA= 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: caam - fix netdev memory leak in dpaa2_caam_probe When commit 0e1a4d427f58 ("crypto: caam: Unembed net_dev structure in dpaa2") converted embedded net_device to dynamically allocated pointers, it added cleanup in dpaa2_dpseci_disable() but missed adding cleanup in dpaa2_dpseci_free() for error paths. This causes memory leaks when dpaa2_dpseci_dpio_setup() fails during probe due to DPIO devices not being ready yet. The kernel's deferred probe mechanism handles the retry successfully, but the netdevs allocated during the failed probe attempt are never freed, resulting in kmemleak reports showing multiple leaked netdev-related allocations all traced back to dpaa2_caam_probe(). Fix this by preserving the CPU mask of allocated netdevs during setup and using it for cleanup in dpaa2_dpseci_free(). This approach ensures that only the CPUs that actually had netdevs allocated will be cleaned up, avoiding potential issues with CPU hotplug scenarios. The Linux kernel CVE team has assigned CVE-2026-45900 to this issue. Affected and fixed versions =========================== Issue introduced in 6.11 with commit 0e1a4d427f58b843864d835ccb79c32a118c6a77 and fixed in 6.12.75 with commit d5c6f254528caf78d5de7d9646dc21c81d351827 Issue introduced in 6.11 with commit 0e1a4d427f58b843864d835ccb79c32a118c6a77 and fixed in 6.18.14 with commit d7decb572b55d2af33e59e9858fcee5d9ae69175 Issue introduced in 6.11 with commit 0e1a4d427f58b843864d835ccb79c32a118c6a77 and fixed in 6.19.4 with commit e144cce29851610ce9c6eda405ce21118779aa51 Issue introduced in 6.11 with commit 0e1a4d427f58b843864d835ccb79c32a118c6a77 and fixed in 7.0 with commit 7d43252b3060b0ba4a192dce5dba85a3f39ffe39 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-45900 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/caam/caamalg_qi2.c drivers/crypto/caam/caamalg_qi2.h 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/d5c6f254528caf78d5de7d9646dc21c81d351827 https://git.kernel.org/stable/c/d7decb572b55d2af33e59e9858fcee5d9ae69175 https://git.kernel.org/stable/c/e144cce29851610ce9c6eda405ce21118779aa51 https://git.kernel.org/stable/c/7d43252b3060b0ba4a192dce5dba85a3f39ffe39