tpm: tpm_tis_spi: Use wait_woken() in wait_for_tmp_stat()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1a339b658d9dbe1471f67b78237cf8fa08bbbeb5 · < ba33b4f9d3423accd2c91a0b0b0680cd589922f2| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
tpm: tpm_tis_spi: Use wait_woken() in wait_for_tmp_stat()
wait_event_interruptible_timeout() evaluates its condition after setting the current task state to TASK_INTERRUPTIBLE.
With CONFIG_DEBUG_ATOMIC_SLEEP this triggers a warning when the IRQ wait path is used:
tpm_tis_status() tpm_tis_spi_read_bytes() tpm_tis_spi_transfer_full() spi_bus_lock() mutex_lock()
Address this with the following measures:
1. Call wait_tpm_stat_cond() only while tasking is running. 2. Use wait_woken() to wait for changes.
From the CVE record · Linux
The Linux kernel’s TPM SPI driver can trigger a warning when its IRQ wait path is used with CONFIG_DEBUG_ATOMIC_SLEEP enabled. The input does not establish an attacker action, access requirement, or user-interaction requirement.
Engineers running Linux kernels with the TPM SPI driver should check their versions; affected versions are not specified.