From mboxrd@z Thu Jan 1 00:00:00 1970 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 CC8883FFF80 for ; Tue, 9 Jun 2026 12:36:14 +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=1781008575; cv=none; b=c6+zl1Ks3cQ59mBKzB0GceZmiVTG7q/a7S67c+KJMes0ciB/xfd+T5c3bbl9HqH6mJ0YPmk+Ek8JFi0mgL3NtxlsQF6jZDv4P7Tt65iMPYlgtXG2XYLP1ybD6XZiRmB0XknFkgqADVCt2oapNYLwHLLhnEVIP/ugJYa2vsJdNq0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781008575; c=relaxed/simple; bh=oTyfv6l5BrKiMSHZWZuC0ROrKjYgRRYKRmqylJy0Q0k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uFpb6eFshiM0aCX5sNnkCIBH8g6lp5u84Cs8W8p56LDNX1Yi8jcXvy/uk3CezkQJ6i1r+rzATbkH1OqqsrRyr6y1Kkv9hZBe3D+ds4ooQi40LXovKQA1KYD/ejvJ+V1kPxWr2hsuPgSSXlFm+akXDUheUy7MR/ZFKv1ypa3wcwE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=u+oxOEIR; 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="u+oxOEIR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CDEA21F00893; Tue, 9 Jun 2026 12:36:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1781008574; bh=3nRYn5K8WP55PVrGacPd9uHGAFJeffqoNJFDkVtkJVg=; h=From:To:Cc:Subject:Date:Reply-To; b=u+oxOEIRPpbw0G241KEOl9VuMsDI16+8TYe1gz5Oq7MQuC+STzEXyKu2y5IA+cm4q l7JSYi2pXadJLQhr38dG+J9MfnC77eSSqbXJZ+XRBope2JqbL0o2AtaGaSTFXPQYMv THVE6lg7fIdnRswW844lM6M6n1jLKs9t/oSe9OBI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-52904: drm/nouveau: fix nvkm_device leak on aperture removal failure Date: Tue, 9 Jun 2026 14:35:13 +0200 Message-ID: <2026060913-CVE-2026-52904-cdce@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=2762; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=RVtZhMq5tHeeeQ0rzTz1TxqQ/0NCRHJVg1kkpzUfNH0=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkaHI3tHzMZ+Rd8dp5k5v965a95X5atW9PyIWndgX+xp jGRqec2dsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE5vsyLFgf56DTpWF9dncf b9+3zX2LDK7wizEs2ModOItz6r9TGclPk3d9efa4VdluGQA= 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: drm/nouveau: fix nvkm_device leak on aperture removal failure When aperture_remove_conflicting_pci_devices() fails during probe, the error path returns directly without unwinding the nvkm_device that was just allocated by nvkm_device_pci_new(). This leaks both the device wrapper and the pci_enable_device() reference taken inside it. Jump to the existing fail_nvkm label so nvkm_device_del() runs and balances both. The leak was introduced when the intermediate nvkm_device_del() between detection and aperture removal was dropped in favor of creating the pci device once. The Linux kernel CVE team has assigned CVE-2026-52904 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12 with commit c0bfe34330b5fafdbbc63a7124841711651b96b9 and fixed in 6.12.86 with commit 5edd564ccb002ffc830e7818c1c4a992db774678 Issue introduced in 6.12 with commit c0bfe34330b5fafdbbc63a7124841711651b96b9 and fixed in 6.18.27 with commit 4404d7d2dda4f3cc84a8fb6ac5417a2afc3b22d6 Issue introduced in 6.12 with commit c0bfe34330b5fafdbbc63a7124841711651b96b9 and fixed in 7.0.4 with commit 843c0247cf21364e33bb5a8ffc9af57107d04d05 Issue introduced in 6.12 with commit c0bfe34330b5fafdbbc63a7124841711651b96b9 and fixed in 7.1-rc1 with commit 6597ff1d8de3f583be169587efeafd8af134e138 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-52904 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/gpu/drm/nouveau/nouveau_drm.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/5edd564ccb002ffc830e7818c1c4a992db774678 https://git.kernel.org/stable/c/4404d7d2dda4f3cc84a8fb6ac5417a2afc3b22d6 https://git.kernel.org/stable/c/843c0247cf21364e33bb5a8ffc9af57107d04d05 https://git.kernel.org/stable/c/6597ff1d8de3f583be169587efeafd8af134e138