NetSight
medium5.5

CVE-2024-36967

In the Linux kernel, the following vulnerability has been resolved: KEYS: trusted: Fix memory leak in tpm2_key_encode() 'scratch' is never freed.

Impact

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 products

VendorProductAffected versions
LinuxLinux Kernel
from 5.13 before 5.15.160
from 5.16 before 6.1.92
from 6.2 before 6.6.32
from 6.7 before 6.8.11
from 6.9 before 6.9.2

Weakness classification

References