CVE-2024-36967 Details
Description
In the Linux kernel, the following vulnerability has been resolved: KEYS: trusted: Fix memory leak in tpm2_key_encode() 'scratch' is never freed. Fix this by calling kfree() in the success, and in the error case.
A memory leak vulnerability has been identified in the Linux kernel's handling of trusted keys, specifically within the TPM2 key encoding function. The issue arises because the 'scratch' buffer used in the encoding process is not properly freed, leading to a memory leak. This vulnerability affects the Linux kernel stable tree, particularly in versions through 5.13. The root cause of the vulnerability is the failure to deallocate memory in both successful and error cases of the key encoding function, which can be exploited by causing the function to exit prematurely without freeing the allocated buffer.
Users can upgrade to the latest version of the Linux kernel stable tree, where this vulnerability has been addressed by modifying the TPM2 key encoding function to ensure that the 'scratch' buffer is properly freed in all cases.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 10, 2024References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-401 | Missing Release of Memory after Effective Lifetime | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 5.13, < 5.15.160 >= 5.16, < 6.1.92 >= 6.2, < 6.6.32 >= 6.7, < 6.8.11 >= 6.9, < 6.9.2 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 21, 2024 | CVE Modified | CVE |
| Jul 17, 2024 | Initial Analysis | [email protected] |
| Jun 8, 2024 | New CVE Received | kernel.org |