Vulnerability in Kernel: tee: amdtee: fix an IS_ERR() vs NULL bug

Kernel Updated 02 Oct 2025

Summary

27/12/2021
N/A
No i
Unrated
Not published

GSD-2021-1002736: tee: amdtee: fix an IS_ERR() vs NULL bug. Affects Kernel versions >= 757cc3e9ff1d72d014096399d6e2bf03974d9da1, < 832f3655c6138c23576ed268e31cc76e0f05f2b1. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The Kernel is a critical component of the Linux operating system that provides core functionalities and interfaces with hardware devices. It is responsible for managing system resources, executing processes, and facilitating communication between software and hardware components. The tee subsystem within the Kernel enables secure communication between trusted execution environments (TEEs) and the rest of the system. The amdtee driver is a specific implementation of the tee subsystem for AMD processors. It allows TEEs to execute code securely on AMD platforms. However, a vulnerability has been discovered in the amdtee driver that could potentially be exploited by attackers.

Vulnerability Detail

The vulnerability in the amdtee driver is related to an IS_ERR() vs NULL bug. This bug allows an attacker to bypass certain error checks and potentially execute malicious code within the TEE. By exploiting this vulnerability, an attacker could gain unauthorized access to sensitive data, modify system configurations, or launch further attacks on the system. The bug was introduced in version v5.6 of the Linux Kernel and has been fixed in version v5.15.11.

How To Fix

No fixed version is published for this vulnerability.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.15.11 or later. This can be done by downloading the latest Kernel source code from the official repository (https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/) and compiling it for the target system. Alternatively, users can wait for their Linux distribution to provide an updated package containing the fixed Kernel version.

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

Workaround

There is no known workaround for this vulnerability. It is essential to apply the fix by updating the Linux Kernel to the patched version.

Conclusion

The vulnerability in the amdtee driver of the Linux Kernel poses a significant security risk, allowing attackers to execute arbitrary code within the trusted execution environment. To address this issue, it is essential to update the Linux Kernel to version v5.15.11 or later. Failure to apply the fix could result in unauthorized access, data breaches, or further compromise of the system. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

This vulnerability could allow an attacker to execute arbitrary code within the trusted execution environment, potentially leading to unauthorized access, data breaches, or further system compromise.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your package-lock.json file, and Vulert will analyze it for any known vulnerabilities, including this one.

No, the vulnerability is specific to the amdtee driver implementation within the Linux Kernel. It can affect any system running the affected versions of the Kernel, regardless of the processor architecture.

At the time of this report, there are no known public exploits targeting this specific vulnerability. However, it is crucial to apply the fix promptly to mitigate any potential risks.

No, updating the Linux Kernel to the fixed version is the recommended approach to mitigate the risk associated with this vulnerability. Applying security patches is crucial to ensure the system's integrity and protect against potential attacks.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

How To Fix

No fixed version is published for this vulnerability.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.15.11 or later. This can be done by downloading the latest Kernel source code from the official repository (https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/) and compiling it for the target system. Alternatively, users can wait for their Linux distribution to provide an updated package containing the fixed Kernel version.

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

Follow Vulert in Google

Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.