CVE-2024-36967·Kernel vulnerability
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.
- Severity
- medium
- Software
- Kernel
- Fixed in
- 6.9.2
- Published
- 2024-06-08
Affected versions
From: 6.9
Until: 6.9.2
Fixed in: 6.9.2
How to fix this CVE
Update your Linux kernel to version 6.9.2 or later to resolve a memory leak in the TPM2 key encoding function that could lead to denial of service. Systems running kernel versions 6.9 through 6.9.1 should prioritize this update as the vulnerability allows local attackers with user-level privileges to exhaust system memory.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Run `uname -r` to check your current kernel version and confirm if it falls within the 6.9–6.9.1 range
- Check if TPM2 is enabled on your system by running `cat /sys/class/tpm/tpm0/name` or `ls /sys/class/tpm/` to identify active TPM devices
- Monitor system memory usage over time with `free -h` and `watch -n 5 'free -h'` to detect abnormal memory depletion patterns
- Verify the kernel patch was applied by confirming the new version with `uname -r` and checking `/boot/config-*` for TPM2-related settings
FAQ
What is CVE-2024-36967?
CVE-2024-36967 is a memory leak vulnerability in the Linux kernel's TPM2 key encoding function (tpm2_key_encode) where allocated scratch buffer memory is not properly freed, allowing local attackers to trigger denial of service through memory exhaustion.
Is CVE-2024-36967 being actively exploited?
No, there is no evidence of active exploitation or publicly available proof-of-concept exploits for CVE-2024-36967 as of the current date.
What versions of Kernel are affected by CVE-2024-36967?
Linux kernel versions 6.9, 6.9.1, and 6.9.2 are affected; the vulnerability is resolved in kernel 6.9.2 and later stable releases.
How do I check if my server is vulnerable to CVE-2024-36967?
Run `uname -r` to display your kernel version; if it reports 6.9 or 6.9.1, your system is vulnerable. For a more detailed check, also verify TPM2 presence with `dmesg | grep -i tpm`.
Does Defensia detect CVE-2024-36967?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2024-36967 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/189c768932d435045b1fae12bf63e53866f06a28
- https://git.kernel.org/stable/c/1e6914fa8e7798bcf3ce4a5b96ea4ac1d5571cdf
- https://git.kernel.org/stable/c/5d91238b590bd883c86ba7707c5c9096469c08b7
- https://git.kernel.org/stable/c/cf26a92f560eed5d6ddc3d441cc645950cbabc56
- https://git.kernel.org/stable/c/e62835264d0352be6086975f18fdfed2b5520b13
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-36967. Free for 1 server.
Get started free