Use-After-Free Vulnerability in Linux Kernel's AMD KFD Driver

linux Updated 02 Oct 2025

Summary

09/05/2025
N/A
Yes i
Unrated
Not published

CVE-2025-37854: In the Linux kernel, the following vulnerability has been resolved: drm/amdkfd: Fix mode1 reset crash issue If HW scheduler hangs and mode1 reset is used to recover GPU, KFD signal user space to abort the processes. Affects linux versions < 6.1.135-1. Fixed in 6.1.135-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Linux kernel is the core component of many operating systems, providing essential services for hardware management and system resources. The AMD Kernel Fusion Driver (KFD) is a part of the Linux kernel that manages GPU resources for AMD graphics cards. This driver is crucial for enabling efficient GPU operations, particularly in high-performance computing and graphics rendering. However, it has been found to have a vulnerability that can lead to system crashes and data corruption.

Vulnerability Detail

In the Linux kernel, a use-after-free race condition exists within the AMD KFD driver. When the hardware scheduler hangs and a mode1 reset is initiated to recover the GPU, the KFD signals user space to abort processes. After the process aborts, user queues may still access freed system memory before the hardware reset occurs. This leads to a situation where KFD can allocate and reuse this freed memory, allowing user queues to write to it, which corrupts data structures and ultimately causes the driver to crash. This vulnerability poses significant risks, including system instability and potential data loss.

How To Fix

Minimum fixed version

6.1.135-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

Currently, there are no specific workarounds mentioned for this vulnerability. However, users are advised to avoid using the mode1 reset feature until the kernel is updated to the patched version.

Conclusion

The identified use-after-free vulnerability in the Linux kernel's AMD KFD driver poses significant risks to system stability and data integrity. Users are encouraged to update their systems to the patched versions to mitigate these risks. Regular updates and monitoring for vulnerabilities are essential practices for maintaining system security.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

A use-after-free vulnerability occurs when a program continues to use a memory location after it has been freed, potentially leading to data corruption or crashes.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. By using the Vulert playground, you can check if your application is affected without needing to sign up.

The primary risks include system crashes, data corruption, and potential loss of data integrity, which can affect the overall stability of the system.

While there are no specific workarounds, avoiding the use of the mode1 reset feature can help mitigate risks until the kernel is updated.

It is recommended to regularly check for updates and apply them promptly to ensure that your system is protected against known vulnerabilities.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

6.1.135-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback