Null Return of kmalloc_array() in drm/amdkfd

Kernel Updated 02 Oct 2025

Summary

24/04/2022
N/A
No i
Unrated
Not published

GSD-2022-1002386: drm/amdkfd: Check for potential null return of kmalloc_array(). Affects Kernel versions < 40bf32dbfef866c83a3e74800b81d79e52b6d20b. No fix is published. 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 drm/amdkfd package is a component of the Linux Kernel ecosystem. It provides support for AMD GPUs and is responsible for managing the Kernel Fusion Driver (KFD) for AMD GPUs. The package enables GPU compute functionality and facilitates communication between the GPU and the CPU. The vulnerability in question pertains to a potential null return of the kmalloc_array() function within the drm/amdkfd package.

Vulnerability Detail

The vulnerability arises from a lack of proper error handling in the kmalloc_array() function. If the function returns null due to memory allocation failure, subsequent operations relying on the allocated memory can lead to unexpected behavior, including crashes or privilege escalation. Attackers may exploit this vulnerability to execute arbitrary code or gain elevated privileges. The vulnerability has been addressed in Linux Kernel version v4.14.276 by commit 40bf32dbfef866c83a3e74800b81d79e52b6d20b.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

No specific workaround has been provided for this vulnerability.

Conclusion

The vulnerability in drm/amdkfd that allowed for a potential null return of the kmalloc_array() function has been addressed in Linux Kernel version v4.14.276. Users are advised to update their Linux Kernel to the fixed version to mitigate the risk of exploitation. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The vulnerability can potentially allow attackers to execute arbitrary code or gain elevated privileges on systems running the affected version of the Linux Kernel.

The exploitability of this vulnerability depends on various factors, including system configuration and network accessibility. However, remote exploitation is possible in certain scenarios.

There are no known instances of this vulnerability being exploited in the wild at the time of this report.

The recommended approach to mitigate this vulnerability is to update the Linux Kernel to the fixed version. However, implementing additional security measures, such as network segmentation and access controls, can help reduce the risk of exploitation.

More information about the fix can be found in the commit 40bf32dbfef866c83a3e74800b81d79e52b6d20b in the official Linux Kernel repository. Details about the vulnerability can be found in the provided references link.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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