[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025121628-CVE-2025-68170-6a22@gregkh>
Date: Tue, 16 Dec 2025 14:43:31 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2025-68170: drm/radeon: Do not kfree() devres managed rdev
From: Greg Kroah-Hartman <gregkh@...nel.org>
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
Powered by blists - more mailing lists