CVE-2023-52825·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: drm/amdkfd: Fix a race condition of vram buffer unref in svm code prange->svm_bo unref can happen in both mmu callback and a callback after migrate to system ram. Both are async call in different tasks. Sync svm_bo unref operation to avoid random "use-after-free".
- Severity
- medium
- Software
- Kernel
- Fixed in
- 6.6.3
- Published
- 2024-05-21
Affected versions
From: 6.6
Until: 6.6.3
Fixed in: 6.6.3
How to fix this CVE
Update your Linux kernel to version 6.6.3 or later to resolve a race condition in the AMD KFD driver's SVM (Shared Virtual Memory) subsystem that could lead to memory access violations. This patch synchronizes VRAM buffer dereferencing operations to prevent use-after-free conditions that may occur during asynchronous memory migration tasks.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your kernel version with: uname -r | grep -oE '^[0-9]+\.[0-9]+\.[0-9]+'
- Step 2: Verify if AMD KFD is active by checking: cat /proc/modules | grep amdkfd
- Step 3: Search for kernel panic logs or memory access violations in dmesg: sudo dmesg | grep -i 'use.after.free\|double.free\|heap.corruption\|amdkfd'
- Step 4: Confirm the patch was applied by verifying kernel version is 6.6.3 or higher: uname -r
FAQ
What is CVE-2023-52825?
This vulnerability is a race condition in the Linux kernel's AMD KFD (Kernel Fusion Driver) SVM module where concurrent asynchronous operations can both attempt to dereference the same VRAM buffer object, causing a use-after-free memory safety issue.
Is CVE-2023-52825 being actively exploited?
No, this vulnerability is not listed in CISA's Known Exploited Vulnerabilities (KEV) catalog and no public exploit code is available. However, local attackers with kernel access could potentially trigger the race condition.
What versions of Kernel are affected by CVE-2023-52825?
Linux kernel versions 6.6 through 6.6.2 are vulnerable. The vulnerability was fixed in kernel 6.6.3.
How do I check if my server is vulnerable to CVE-2023-52825?
Run: uname -r | grep -E '^6\.6\.[0-2]$' && echo 'Vulnerable' || echo 'Patched or unaffected'. If your kernel version matches 6.6.0, 6.6.1, or 6.6.2, you are vulnerable.
Does Defensia detect CVE-2023-52825?
Yes — Defensia's CVE advisory scanner compares installed kernel versions against the NVD database. If Linux kernel 6.6.0 through 6.6.2 is installed on a monitored server, CVE-2023-52825 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/50f35a907c4f9ed431fd3dbb8b871ef1cbb0718e
- https://git.kernel.org/stable/c/709c348261618da7ed89d6c303e2ceb9e453ba74
- https://git.kernel.org/stable/c/7d43cdd22cd81a2b079e864c4321b9aba4c6af34
- https://git.kernel.org/stable/c/c772eacbd6d0845fc922af8716bb9d29ae27b8cf
- https://git.kernel.org/stable/c/fc0210720127cc6302e6d6f3de48f49c3fcf5659
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2023-52825. Free for 1 server.
Get started free