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 4AC8536C587 for ; Tue, 16 Dec 2025 13:45:01 +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=1765892701; cv=none; b=KOMjEgBv71miV0ptPy/ovK0YJ7fm6CCsNvXoZE0baD/FlgrYp4B3grNl8pEzV6vDmsrZMJLEzHZm4pD0JY6JrqYyTkYEVSk142DJY8yaLLKDF5DbeFDcSFD336Dl0jpSj6q6GY/918sRYIYgZ6Fr2Ox/LXMQQi4QrpP/8AoZ2wE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765892701; c=relaxed/simple; bh=fW80VE2RYDKxlnHiMbC/5J/wfMqXN8pCXwQjq8v5nkQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fEy4Vyom5wjxs6VGFbO0D/pefCDiZ/PYmpLuVcyeaTG5t/ftyjfcXJXnv8LiCPNmJIkfNGxkdqIuXfVhFM7I8eZ9talXPgbet2tsXpDHDS2sK93Nzk6jv69rKSin+62aUsXNBRFkfBj4wqlONuIoKJWj66RTRMkstu78mQ2Fjzk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hbp13zGv; 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="hbp13zGv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B1DCFC4CEF1; Tue, 16 Dec 2025 13:45:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765892701; bh=fW80VE2RYDKxlnHiMbC/5J/wfMqXN8pCXwQjq8v5nkQ=; h=From:To:Cc:Subject:Date:Reply-To:From; b=hbp13zGvr5oGwODNjcfkhMFkC5IrD81op1+SDERIPbQPj9b+exQgsXtHtgZ3UeAr7 YYEnMM2BsKKVIzYyTwIqEJlF4Z7iDSznnYhsk8U5vkEf0+P2VOnFzpn4rDNQqcRoa3 fN7MP7T8rZm9wGJ1Hn0wENuY5FkCmC/5D1+4Hq88= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68170: drm/radeon: Do not kfree() devres managed rdev Date: Tue, 16 Dec 2025 14:43:31 +0100 Message-ID: <2025121628-CVE-2025-68170-6a22@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=2339; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=cv/WXLeeb+buYd5xh6DsfqhU7kP7gyLy/1DdJEwlMNk=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmOSQw2z5b9zBYvrDI45nnMZIbYBvn1bHtmVhbMET9km S6nwnaiI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbiNp1hQa/t7pw7iZYfXsvG OTrUPfIXm806iWHBed7ph03cjnw1OiagOWlLiewdEeZdAA== 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/radeon: Do not kfree() devres managed rdev Since the allocation of the drivers main structure was changed to devm_drm_dev_alloc() rdev is managed by devres and we shouldn't be calling kfree() on it. This fixes things exploding if the driver probe fails and devres cleans up the rdev after we already free'd it. (cherry picked from commit 16c0681617b8a045773d4d87b6140002fa75b03b) The Linux kernel CVE team has assigned CVE-2025-68170 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12 with commit a9ed2f052c5c14e4be58c5ec8794dffc87588123 and fixed in 6.12.58 with commit f7482516002a11317912e29577bbf33cf59a0fb1 Issue introduced in 6.12 with commit a9ed2f052c5c14e4be58c5ec8794dffc87588123 and fixed in 6.17.8 with commit 2413bbd1d692aed245c2aa38a369a1fa7590db84 Issue introduced in 6.12 with commit a9ed2f052c5c14e4be58c5ec8794dffc87588123 and fixed in 6.18 with commit 3328443363a0895fd9c096edfe8ecd372ca9145e 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-68170 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/radeon/radeon_kms.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/f7482516002a11317912e29577bbf33cf59a0fb1 https://git.kernel.org/stable/c/2413bbd1d692aed245c2aa38a369a1fa7590db84 https://git.kernel.org/stable/c/3328443363a0895fd9c096edfe8ecd372ca9145e