{"id":"CVE-2024-36967","summary":"KEYS: trusted: Fix memory leak in tpm2_key_encode()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nKEYS: trusted: Fix memory leak in tpm2_key_encode()\n\n'scratch' is never freed. Fix this by calling kfree() in the success, and\nin the error case.","modified":"2026-04-02T12:16:35.705476Z","published":"2024-06-08T12:52:59.895Z","related":["MGASA-2024-0263","MGASA-2024-0266","SUSE-SU-2024:2372-1","SUSE-SU-2024:2394-1","SUSE-SU-2024:2571-1","SUSE-SU-2024:2896-1","SUSE-SU-2024:2939-1","SUSE-SU-2024:2973-1","SUSE-SU-2025:20008-1","SUSE-SU-2025:20028-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/36xxx/CVE-2024-36967.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/189c768932d435045b1fae12bf63e53866f06a28"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1e6914fa8e7798bcf3ce4a5b96ea4ac1d5571cdf"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5d91238b590bd883c86ba7707c5c9096469c08b7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/cf26a92f560eed5d6ddc3d441cc645950cbabc56"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e62835264d0352be6086975f18fdfed2b5520b13"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ffcaa2172cc1a85ddb8b783de96d38ca8855e248"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/36xxx/CVE-2024-36967.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-36967"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"f2219745250f388edacabe6cca73654131c67d0a"},{"fixed":"1e6914fa8e7798bcf3ce4a5b96ea4ac1d5571cdf"},{"fixed":"5d91238b590bd883c86ba7707c5c9096469c08b7"},{"fixed":"e62835264d0352be6086975f18fdfed2b5520b13"},{"fixed":"189c768932d435045b1fae12bf63e53866f06a28"},{"fixed":"cf26a92f560eed5d6ddc3d441cc645950cbabc56"},{"fixed":"ffcaa2172cc1a85ddb8b783de96d38ca8855e248"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-36967.json"}}],"schema_version":"1.7.5"}