CVE-2023-53152

5.5 MEDIUM

📋 TL;DR

This CVE describes a memory management vulnerability in the AMDGPU driver for Linux kernels where buffer objects (BOs) allocated for the Platform Security Processor (PSP) are not properly freed during driver removal. This causes a kernel warning call trace but does not allow arbitrary code execution. The vulnerability affects Linux systems with AMD graphics hardware using specific kernel versions.

💻 Affected Systems

Products:
  • Linux kernel with AMDGPU driver
Versions: Specific kernel versions between the introduction of the bug and the fix (exact range depends on kernel distribution)
Operating Systems: Linux distributions with affected kernel versions
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects systems with AMD graphics hardware using the AMDGPU driver. Requires specific conditions with XGMI support and SMU v13_0_2.

📦 What is this software?

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

⚠️ Risk & Real-World Impact

🔴

Worst Case

Kernel panic or system instability during driver removal, potentially causing system crashes or denial of service.

🟠

Likely Case

Kernel warning messages in system logs during driver removal or system shutdown, with no direct security compromise.

🟢

If Mitigated

Minor system log noise with no functional impact if proper kernel patches are applied.

🌐 Internet-Facing: LOW - This is a local kernel driver issue requiring physical or local access to trigger.
🏢 Internal Only: LOW - Requires local system access and specific driver removal operations to trigger.

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ✅ No
Complexity: MEDIUM

Exploitation requires local access and specific conditions to trigger the driver removal scenario. This is primarily a stability issue rather than a security vulnerability.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Kernel versions with commits 01382501509871d0799bab6bd412c228486af5bf, 756d674117f5c451f415d1c4046b927052a90c14, or ab6f446c220db0c131f2071846afd835799be0fb

Vendor Advisory: https://git.kernel.org/stable/c/01382501509871d0799bab6bd412c228486af5bf

Restart Required: No

Instructions:

1. Update Linux kernel to version containing the fix commits. 2. For distributions: Use package manager to update kernel package. 3. For custom kernels: Apply the relevant git commits and rebuild kernel.

🔧 Temporary Workarounds

Avoid driver removal operations

all

Prevent triggering the vulnerability by avoiding amdgpu driver removal operations

🧯 If You Can't Patch

  • Monitor system logs for call trace warnings related to amddrm_buddy_fini
  • Avoid removing or reloading the amdgpu driver module

🔍 How to Verify

Check if Vulnerable:

Check kernel version and if amdgpu module is loaded. Vulnerable if using affected kernel version with AMD graphics.

Check Version:

uname -r

Verify Fix Applied:

Check kernel version includes the fix commits or is newer than the patched versions. Verify no call trace warnings appear in dmesg during driver operations.

📡 Detection & Monitoring

Log Indicators:

  • Kernel call trace warnings containing 'amddrm_buddy_fini' in dmesg or system logs

Network Indicators:

  • None - this is a local kernel issue

SIEM Query:

search 'amddrm_buddy_fini' in kernel logs

🔗 References

📤 Share & Export