CVE-2024-36967

published 8 Jun 2024 · updated 11 May 2026

KEYS: trusted: Fix memory leak in tpm2_key_encode()

5.5MediumCVSS 5.5EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 189c768932d435045b1fae12bf63e53866f06a28, Kernel 1e6914fa8e7798bcf3ce4a5b96ea4ac1d5571cdf, Kernel 5d91238b590bd883c86ba7707c5c9096469c08b7 and 3 more.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=5.13, >=f2219745250f388edacabe6cca73654131c67d0a <189c768932d435045b1fae12bf63e53866f06a28, >=f2219745250f388edacabe6cca73654131c67d0a <1e6914fa8e7798bcf3ce4a5b96ea4ac1d5571cdf, >=f2219745250f388edacabe6cca73654131c67d0a <5d91238b590bd883c86ba7707c5c9096469c08b7, >=f2219745250f388edacabe6cca73654131c67d0a <cf26a92f560eed5d6ddc3d441cc645950cbabc56, >=f2219745250f388edacabe6cca73654131c67d0a <e62835264d0352be6086975f18fdfed2b5520b13, >=f2219745250f388edacabe6cca73654131c67d0a <ffcaa2172cc1a85ddb8b783de96d38ca8855e248189c768932d435045b1fae12bf63e53866f06a28, 1e6914fa8e7798bcf3ce4a5b96ea4ac1d5571cdf, 5d91238b590bd883c86ba7707c5c9096469c08b7, cf26a92f560eed5d6ddc3d441cc645950cbabc56, e62835264d0352be6086975f18fdfed2b5520b13, ffcaa2172cc1a85ddb8b783de96d38ca8855e248

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-36967 severity on Zeptric[![CVE-2024-36967](https://zeptric.io/badge/cve/CVE-2024-36967.svg)](https://zeptric.io/cve/CVE-2024-36967)