tpm: st33zp24: Return zero on status read failure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 251a7b08213af82e40e4a70cac056e245853c410 · < 14feaa498c20c1b7ddefe27de5329aaff822cc0d| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
tpm: st33zp24: Return zero on status read failure
st33zp24_status() ignores the result of the transport read and returns data even when no byte was received. The I2C transport, for example, skips i2c_master_recv() when the register-select write is short or fails, leaving data uninitialized. The resulting stack value can be interpreted as TPM_STS flags and let status checks complete spuriously.
The status callback cannot propagate a transport error. Return zero unless recv() reports exactly one byte. With no status bits set, callers retry or take their existing timeout or error path instead of acting on an invalid status value.
This issue was found by a static analysis checker and confirmed by manual source review.
From the CVE record · Linux
The st33zp24 TPM driver can use an uninitialized value as status flags when a transport read fails. This can cause status checks to complete spuriously; the input does not describe an attacker path or specify authentication or user-interaction requirements.
Engineers running Linux kernels with the st33zp24 TPM driver should check their versions; affected versions are not specified.