CVE-2026-68234

drm/amdgpu: fix bo->pin leaking in amdgpu_bo_create_reserved

State
Published
Severity
Not scored
Published
Aug 10, 2026
Updated
Aug 19, 2026
Reserved
Jul 30, 2026

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

drm/amdgpu: fix bo->pin leaking in amdgpu_bo_create_reserved

amdgpu_bo_create_reserved() only allocates a new BO when *bo_ptr (struct amdgpu_bo **bo_ptr as input parameter) is NULL, it simply skips creation when *bo_ptr is non-NULL. But it unconditionally reserves, pins, gart allocates and maps the BO afterwards.

When the same non-NULL BO pointer is passed in again, for example firmware buffers that live in adev and are re-loaded on every resume / cp_resume / start under AMDGPU_FW_LOAD_DIRECT, amdgpu_bo_pin() just increases pin_count unconditionally, however the matching teardown only unpins once, so pin_count never drops to zero, so TTM is not able to move, swap or evict a BO, causing BO leaks.

This commit fixes this issue by only pinning the bo once at creation, and repeated calls no longer take additional pin references.

(cherry picked from commit 3ddc0ae76202c447b6aec61e907b852bc94671cf)

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 53766e5adac75872e9d413cdbfd0e47ae40701f9 to before 7aea619d9f186dcf0f1289879e9edb69d2b56639Affected
  • 53766e5adac75872e9d413cdbfd0e47ae40701f9 to before b572d0814c1366701ca704286589fab025802566Affected
  • 53766e5adac75872e9d413cdbfd0e47ae40701f9 to before e06e0885725a16304b7723aeb478a78cca9dc96aAffected
  • 53766e5adac75872e9d413cdbfd0e47ae40701f9 to before 51eeef1949c11d3dcb5f422a5d9b3f09ebe8a1bcAffected
  • 53766e5adac75872e9d413cdbfd0e47ae40701f9 to before 2f390b4c83011452753fd84972f657d2b00a952bAffected
  • 53766e5adac75872e9d413cdbfd0e47ae40701f9 to before ba7b6444097a73ccd3d3ac9e2be4ebb73d226460Affected
  • 53766e5adac75872e9d413cdbfd0e47ae40701f9 to before 9743f60013273987abf415dc47474683d22aaee9Affected
  • 53766e5adac75872e9d413cdbfd0e47ae40701f9 to before a2f895f3c852063258d62e9f74b081de07ca95dfAffected
LinuxLinux
  • 4.14Affected
  • before 4.14Not affected
  • 5.10.265 through 5.10.*Not affected
  • 5.15.216 through 5.15.*Not affected
  • 6.1.183 through 6.1.*Not affected
  • 6.6.148 through 6.6.*Not affected
  • 6.12.101 through 6.12.*Not affected
  • 6.18.42 through 6.18.*Not affected
  • 7.1.6 through 7.1.*Not affected
  • 7.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.