CVE-2024-42255 tpm: Use auth only after NULL check in tpm_buf_check_hmac_response()
A local attacker can cause a kernel crash via NULL pointer dereference in the TPM subsystem when TCG_TPM2_HMAC is enabled.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-42255?
CVE-2024-42255 is a medium-severity vulnerability in Linux kernel, published on 8 Aug 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
tpm: Use auth only after NULL check in tpm_buf_check_hmac_response()
Dereference auth after NULL check in tpm_buf_check_hmac_response(). Otherwise, unless tpm2_sessions_init() was called, a call can cause NULL dereference, when TCG_TPM2_HMAC is enabled.
[jarkko: adjusted the commit message.]
Weakness: CWE-476
Which versions are affected by CVE-2024-42255?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-42255?
Apply the vendor's patch.
Is CVE-2024-42255 being exploited?
There is no known exploitation of CVE-2024-42255 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-42255, GHSA-j5gm-gf6p-7hpm, UBUNTU-CVE-2024-42255.