Bugzilla – Bug 1224862
VUL-0: kernel: keys driver leaks memory during operation
Last modified: 2024-05-23 10:15:03 UTC
This is from upstream against the kernel: commit ffcaa2172cc1a85ddb8b783de96d38ca8855e248 Author: Jarkko Sakkinen <jarkko@kernel.org> Date: Mon May 20 02:31:53 2024 +0300 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. Cc: stable@vger.kernel.org # +v5.13 Fixes: f2219745250f ("security: keys: trusted: use ASN.1 TPM2 key format for the blobs") Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org> You can leak kernel memory by simply operating the device. This needs a CVE fair and square.
reuqested CVE via kernel CNA.
gregkh wants to assign it only after rc1 release on monday.