Vulnerability in tpm package: Fix Reference Counting for struct tpm_chip
Summary
GSD-2022-1001630: tpm: fix reference counting for struct tpm_chip. Affects Kernel versions >= fdc915f7f71939ad5a3dda3389b8d2d7a7c5ee66, < 2f928c0d5c02dbab49e8c19d98725c822f6fc409. No fix is published. How to fix ↓
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.
No signup required · Results in about 60 seconds
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 →
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.
Follow Vulert in Google
Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.