CVE-2025-68181: drm/radeon: Remove calls to drm_put_dev()
In the Linux kernel, the following vulnerability has been resolved:
drm/radeon: Remove calls to drmputdev()
Since the allocation of the drivers main structure was changed to devmdrmdevalloc() drmputdev()'ing to trigger it to be free'd should be done by devres.
However, drmputdev() is still in the probe error and device remove paths. When the driver fails to probe warnings like the following are shown because devres is trying to drmputdev() after the driver already did it.
[ 5.642230] radeon 0000:01:05.0: probe with driver radeon failed with error -22 [ 5.649605] ------------[ cut here ]------------ [ 5.649607] refcountt: underflow; use-after-free. [ 5.649620] WARNING: CPU: 0 PID: 357 at lib/refcount.c:28 refcountwarnsaturate+0xbe/0x110
(cherry picked from commit 3eb8c0b4c091da0a623ade0d3ee7aa4a93df1ea4)
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-68181?
The severity of CVE-2025-68181 is classified as moderate.
How do I fix CVE-2025-68181?
To fix CVE-2025-68181, update your kernel to the latest version that resolves this vulnerability.
Which systems are affected by CVE-2025-68181?
CVE-2025-68181 affects the Linux kernel, particularly systems using the radeon DRM driver.
What is the impact of CVE-2025-68181 on affected systems?
CVE-2025-68181 can potentially lead to memory management issues due to improper resource handling.
Has CVE-2025-68181 been patched?
Yes, CVE-2025-68181 has been patched in newer releases of the Linux kernel.