CVE-2025-68170
Description
From CVE.org
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)
Statement
A flaw was found in the Linux kernel drm/radeon driver (drivers/gpu/drm/radeon/radeon_kms.c), rated by Red Hat as low impact. After the driver's main structure (rdev) was changed to be allocated with devm_drm_dev_alloc(), rdev became managed by devres, but the driver's error path still calls kfree() on it. If the radeon driver probe fails, devres cleanup releases rdev after it has already been freed, resulting in a double free that can crash the kernel and cause a denial of service. The Red Hat CVSS vector reflects a local attack vector requiring low privileges, with impact to availability only. In Red Hat Enterprise Linux, this flaw affects the kernel and kernel-rt in RHEL 9.6.z, 9.7.z, and 9.8, and the kernel in RHEL 10.0.z, 10.1.z, and 10.2, where the vulnerable code was introduced with the backport of upstream DRM changes (v6.11..v6.12). RHEL 7 and 8, the earlier RHEL 9.0.0.z, 9.2.0.z, and 9.4.z streams, and Red Hat In-Vehicle OS 1.1 are not affected because the vulnerable code is not present in those streams, and RHEL 6 ELS is out of support scope. The fix for the affected streams is currently deferred given the low impact of this issue; the residual risk is limited to a kernel crash (denial of service) on systems where the radeon graphics driver probe fails. Red Hat's severity assessment (CVSS 5.5, availability impact only) is lower than the upstream CVE.org score of 7.8, which additionally claims confidentiality and integrity impact that this flaw does not provide.
Mitigation
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.
Common Vulnerability Scoring System (CVSS) Score Details
Info alert:Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).
The following CVSS metrics and score provided are preliminary and subject to review.
CVSS v3 Score Breakdown
| Red Hat | NVD | cve.org | |
|---|---|---|---|
| Base Score | 5.5 | N/A | 7.8 |
| Attack Vector | Local | N/A | Local |
| Attack Complexity | Low | N/A | Low |
| Privileges Required | Low | N/A | Low |
| User Interaction | None | N/A | None |
| Scope | Unchanged | N/A | Unchanged |
| Confidentiality | None | N/A | High |
| Integrity Impact | None | N/A | High |
| Availability Impact | High | N/A | High |
Vector
Red Hat: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
cve.org: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Understanding the Weakness (CWE)
Integrity,Availability,Confidentiality
Technical Impact: Modify Memory; DoS: Crash, Exit, or Restart; Execute Unauthorized Code or Commands
This weakness may result in the corruption of memory, and perhaps instructions, possibly leading to a crash. If the corrupted memory can be effectively controlled, it may be possible to execute arbitrary code.
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.