CVE-2024-36967Published Jun 8, 2024 · Jun 8Updated Oct 28
KEYS: trusted: Fix memory leak in tpm2_key_encode()
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ f2219745250f388edacabe6cca73654131c67d0a · < ffcaa2172cc1a85ddb8b783de96d38ca8855e248| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's trusted keys code has a memory leak in tpm2_key_encode(): it does not free the scratch buffer on success or error. The input does not specify how an attacker could trigger the leak or whether authentication or user interaction is required.
Engineers running the Linux kernel should check their versions; affected versions are not specified in the input.