Vulnerability in Kernel package: tpm: efi: Use local variable for calculating final log size

Kernel Updated 02 Oct 2025

Summary

31/05/2021
N/A
No i
Unrated
Not published

GSD-2021-1000066: tpm: efi: Use local variable for calculating final log size. Affects Kernel versions >= 166a2809d65b282272c474835ec22c882a39ca1b, < ac07c557ca12ec9276c0375517bac7ae5be4e50c. 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 Kernel package is a vital component of the Linux operating system, responsible for managing the system's core functionality. It provides an interface between the hardware and software layers, allowing applications to communicate with the underlying hardware. The tpm: efi module within the Kernel package is specifically designed to handle Trusted Platform Module (TPM) operations in the EFI (Extensible Firmware Interface) environment. TPM is a hardware-based security feature that provides cryptographic functions and secure storage for sensitive data. However, a vulnerability has been discovered in the tpm: efi module that could potentially be exploited by attackers.

Vulnerability Detail

The vulnerability in the tpm: efi module arises from the improper calculation of the final log size. By not using a local variable for this calculation, the module is susceptible to potential buffer overflows or underflows. This could lead to memory corruption, arbitrary code execution, or other security breaches. The vulnerability was introduced in version v5.3 of the Linux Kernel and has been fixed in version v5.12.3.

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

As a temporary workaround, users can disable the tpm: efi module if it is not essential for their system's functionality. This can be done by modifying the Kernel configuration and rebuilding the Kernel without including the tpm: efi module. However, this workaround should only be considered if the module is not required, as it may impact the system's security posture.

Conclusion

In conclusion, the tpm: efi module in the Kernel package has a vulnerability that can be exploited to compromise system security. It is crucial to update the Kernel package to version v5.12.3 or later to mitigate this vulnerability. If you require further assistance or support in addressing this vulnerability, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The vulnerability could potentially allow attackers to exploit the tpm: efi module and gain unauthorized access to sensitive data, execute arbitrary code, or cause system instability.

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 the Vulert Playground will analyze it for any open-source vulnerabilities, including this one.

At the time of this report, there are no known public exploits for this vulnerability. However, it is important to apply the recommended fix or workaround to mitigate any potential risks.

No, the fix for this vulnerability is included in the updated Kernel package. It is recommended to update the entire package to the latest version to ensure the vulnerability is properly addressed.

You can refer to the vulnerability details in the GSD Database (https://github.com/cloudsecurityalliance/gsd-database/blob/main/2021/1000xxx/GSD-2021-1000066.json) for more information about this specific vulnerability.

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