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 EB82E251795 for ; Wed, 27 May 2026 13:00:55 +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=1779886857; cv=none; b=t2EUM8Jiv3ts2keoHiNKrKaciBFhSyndC4mKesa8572+e9k0tntdAUxNhVcHzhBKoVlghtPaIIGEThGFdYfVsi9k+k8+2XxxeOdlVSh+iRXyYW6lvW5wAsGj7bN00ry1EjnGdADWhtFv2sWOs1siBaAbTQMMG9gB/WagcwRMn/0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779886857; c=relaxed/simple; bh=pGLdrE4aLRkZ7bhaU9ctxV9DyFgdX+4S9INoz+7FgRQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=aCZibsiE0IrYmb2x+Y0PKzohlNAo8D+UMkM/8gbcSWMobUGKK+CDiKnYAuBjwhyOaVETbrenckiLXGcLv288SRUUPygMXWxan6HLahNMSHDw1uDYC2InaCPyPvZaRApCyc9aOBC+Y9d30gutLMsVJ4pAwyg9B3UK56zLh+lHnF4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=bHOSrUlD; 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="bHOSrUlD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 024D41F000E9; Wed, 27 May 2026 13:00:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779886855; bh=U9Q+TitHea/j2DsNakN3i64VInGYazRSuS7uT5bT8cs=; h=From:To:Cc:Subject:Date:Reply-To; b=bHOSrUlDrutgVzB1V7QE1NfGfRKgQC1JnVvxf8+RYFBuykHDHjZ/TEmQtjUh+4rg8 zzl9fE2uxl6aH0Yn5Zgl6jKyktf5fgGgLJQoDyI5UPA9V1xXMfytiHcIlvnFgKsbZS 50BV7NpBzCcz8iEZ67TIk3dp/o7zK9TWT9kbkkdk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-45989: of: unittest: fix use-after-free in testdrv_probe() Date: Wed, 27 May 2026 14:58:40 +0200 Message-ID: <2026052739-CVE-2026-45989-b32d@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=2986; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=WLhii7rYOhaSxnRrzH+s1Jrv1UPxyIDXViChPAwQWrs=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlir+oPTQ58FrWwoORHe7io2LdZKj/65Mpq9zSpLVxd5 JknP/dhRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkYRTDPCOG12I3VlnO12qZ 1JisVXD76UTxZIa5ku+jWX9c2SEtanpxhckxlfclu26VAgA= 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: of: unittest: fix use-after-free in testdrv_probe() The function testdrv_probe() retrieves the device_node from the PCI device, applies an overlay, and then immediately calls of_node_put(dn). This releases the reference held by the PCI core, potentially freeing the node if the reference count drops to zero. Later, the same freed pointer 'dn' is passed to of_platform_default_populate(), leading to a use-after-free. The reference to pdev->dev.of_node is owned by the device model and should not be released by the driver. Remove the erroneous of_node_put() to prevent premature freeing. The Linux kernel CVE team has assigned CVE-2026-45989 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6 with commit 26409dd045892904b059dc411403e9c8ce7543ca and fixed in 6.6.140 with commit 0ba03e06f037df704d9b032e36d417633e2326bc Issue introduced in 6.6 with commit 26409dd045892904b059dc411403e9c8ce7543ca and fixed in 6.12.86 with commit d68347b07b9801791c9eaab8f772770b52b8cd5c Issue introduced in 6.6 with commit 26409dd045892904b059dc411403e9c8ce7543ca and fixed in 6.18.27 with commit 5b6122a67a295f8a08b7c18d908a1bd974dfaec8 Issue introduced in 6.6 with commit 26409dd045892904b059dc411403e9c8ce7543ca and fixed in 7.0.4 with commit 6b2023286d2c6ed3bf964fb92e34c9c14d42eb69 Issue introduced in 6.6 with commit 26409dd045892904b059dc411403e9c8ce7543ca and fixed in 7.1-rc1 with commit 07fd339b2c253205794bea5d9b4b7548a4546c56 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-45989 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/of/unittest.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/0ba03e06f037df704d9b032e36d417633e2326bc https://git.kernel.org/stable/c/d68347b07b9801791c9eaab8f772770b52b8cd5c https://git.kernel.org/stable/c/5b6122a67a295f8a08b7c18d908a1bd974dfaec8 https://git.kernel.org/stable/c/6b2023286d2c6ed3bf964fb92e34c9c14d42eb69 https://git.kernel.org/stable/c/07fd339b2c253205794bea5d9b4b7548a4546c56