All reports
Medium

kernel: KEYS: trusted: Fix memory leak in tpm2_key_encode()

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2024-36967

Probability of exploitation in the next 30 days: 0.21%

FIRST EPSS · 2026-11-19

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.

in linux kernel, tpm2_key_encode() has a memory leak due to 'scratch' never being freed. This can lead to denial of service.