tpm: Use auth only after NULL check in tpm_buf_check_hmac_response()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.]
From the CVE record · Linux
The Linux kernel's tpm_buf_check_hmac_response() can dereference a NULL auth pointer when TCG_TPM2_HMAC is enabled and tpm2_sessions_init() has not been called. A call under those conditions can trigger a NULL dereference; the input does not specify attacker access or user-interaction requirements.
Teams running Linux kernels with TCG_TPM2_HMAC enabled should check their versions; affected versions are not specified.