Vulnerability in tpm package: Fix Reference Counting for struct tpm_chip

Kernel Updated 02 Oct 2025

Summary

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

GSD-2022-1001630: tpm: fix reference counting for struct tpm_chip. Affects Kernel versions >= fdc915f7f71939ad5a3dda3389b8d2d7a7c5ee66, < 2f928c0d5c02dbab49e8c19d98725c822f6fc409. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The tpm package is a component of the Linux Kernel that provides support for Trusted Platform Modules (TPMs). TPMs are hardware devices that provide cryptographic functions and secure storage for sensitive data. The tpm_chip structure is a key component of the tpm package, representing a TPM chip instance. This vulnerability in the tpm package affects the reference counting mechanism for the struct tpm_chip, leading to potential security issues.

Vulnerability Detail

The vulnerability arises from a flaw in the reference counting implementation for struct tpm_chip in the tpm package. This flaw can be exploited by an attacker to manipulate the reference count, potentially leading to use-after-free or double-free vulnerabilities. These vulnerabilities can be leveraged to execute arbitrary code or cause a denial-of-service condition. The vulnerability was introduced in version v4.12 of the Linux Kernel and has been fixed in version v5.16.19.

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.16.19 or later. This update includes the commit 2f928c0d5c02dbab49e8c19d98725c822f6fc409, which addresses the reference counting issue in the tpm package. Updating the Kernel will ensure that the fix is applied and the vulnerability is mitigated.

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

Workaround

There is no specific workaround mentioned for this vulnerability. The recommended approach is to update the Linux Kernel to the fixed version.

Conclusion

The vulnerability in the tpm package's reference counting mechanism for struct tpm_chip can have severe security implications. It is crucial to update the Linux Kernel to version v5.16.19 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The tpm package is a component of the Linux Kernel that provides support for Trusted Platform Modules (TPMs). TPMs are hardware devices that provide cryptographic functions and secure storage for sensitive data.

struct tpm_chip is a data structure in the tpm package that represents a TPM chip instance. It contains information and state related to the TPM chip.

Reference counting is a technique used in programming to track the number of references to a resource. It ensures that the resource is not deallocated or freed prematurely while it is still being used.

The vulnerability can be exploited to execute arbitrary code or cause a denial-of-service condition. It may allow an attacker to manipulate the reference count, leading to use-after-free or double-free vulnerabilities.

You can use Vulert's playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities, using just a manifest file like package-lock.json.

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.16.19 or later. This update includes the commit 2f928c0d5c02dbab49e8c19d98725c822f6fc409, which addresses the reference counting issue in the tpm package. Updating the Kernel will ensure that the fix is applied and the vulnerability is mitigated.

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.